/* macOS Dark Mode Theme */
:root {
    /* SAP Fiori Dark Theme Colors */
    --sap-background: #1c2228;
    --sap-surface: #2f3c48;
    --sap-header: #263138;
    --sap-text: #fafafa;
    --sap-text-secondary: #89969f;
    --sap-border: #3f4f5f;
    --sap-primary: #0070f2;
    --sap-primary-hover: #0064d9;
    --sap-success: #107e3e;
    --sap-warning: #e9730c;
    --sap-error: #bb0000;
    --sap-hover: #374553;
    --sap-active: #4a5967;
    --sap-selected: #0b4c85;
    --sap-field-background: #354a5f;

    /* macOS Variables */
    --macos-bg: #1e1e1e;
    --macos-surface: #2d2d2d;
    --macos-header: #323232;
    --macos-border: #404040;
    --macos-text: #ffffff;
    --macos-text-secondary: #999999;
    --macos-accent: #0290fe;
    --macos-accent-hover: #0272ca;
    --macos-success: #28c840;
    --macos-warning: #ff9f0a;
    --macos-error: #ff3b30;
    --macos-sidebar: #262626;
    --macos-toolbar: #333333;
    --macos-shadow: rgba(0, 0, 0, 0.3);
    --macos-blur: rgba(30, 30, 30, 0.8);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:hover {
    color: #bdbdbd !important;
  }
  a {
    color: #eaeaea !important;
    text-decoration: none;
  }

body {
    background-color: var(--macos-bg);
    color: var(--macos-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Layout Components */
.main-wrapper {
    padding-bottom: 0px; /* Höhe des Footers + etwas Abstand */

}

.content-wrapper {
    flex: 1 0 auto;
    margin-top: 44px; /* Höhe der Navbar */
    padding: 1px;
}

/* Header & Navigation */
.header {
    background-color: var(--macos-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--macos-border);
    box-shadow: 0 1px 3px var(--macos-shadow);
    height: 44px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    margin-bottom: 20px;
}

/* Navbar Base */
.navbar {
    background: transparent;
    padding: 0;
    height: 44px;
}

.container-fluid {
    height: 44px;
    padding: 1px;
    max-width: 90% !important;
}


.navbar-brand {
    color: var(--macos-text) !important;
    font-size: 14px;
    font-weight: 500;
    height: 44px;
    display: flex;
    align-items: center;
}

/* Navigation Items */
.navbar-nav {
    height: 44px;
}

.nav-item {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 10px
}

.nav-link {
    color: var(--macos-text) !important;
    height: 44px;
    line-height: 44px;
    padding: 1px !important;
    font-size: 14px;
}

.nav-link:hover {
    background-color: var(--macos-surface);
}

.nav-link.active {
    background-color: var(--macos-surface);
    border-bottom: 2px solid var(--macos-accent);
}

/* Dropdown Navigation Styles */
.navbar-nav .dropdown-menu {
    background-color: var(--macos-surface);
    border: 1px solid var(--macos-border);
    margin-top: 0;
    box-shadow: 0 4px 12px var(--macos-shadow);
    padding: 8px 0;
}

.nav-item.dropdown {
    height: 44px;
}

.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link.dropdown-toggle::after {
    border-top-color: var(--macos-text-secondary);
    margin-top: 2px;
}

.dropdown-item {
    color: var(--macos-text);
    font-size: 14px;
    padding: 1px;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: var(--macos-accent);
    color: white;
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -8px;
    margin-left: 1px;
}

.dropdown-submenu .dropdown-item::after {
    display: inline-block;
    margin-left: auto;
    content: "";
    border-top: 4px solid transparent;
    border-right: 0;
    border-bottom: 4px solid transparent;
    border-left: 4px solid;
}

/* Mobile Navigation */
.navbar-toggler {
    padding: 0.25rem;
    border: none;
    color: var(--macos-text);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Responsive Dropdowns */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--macos-surface);
    }

    .dropdown-menu {
        background-color: var(--macos-header);
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-submenu .dropdown-menu {
        position: static;
        margin: 0;
        padding-left: 1rem;
    }

    .nav-link.dropdown-toggle::after {
        margin-left: auto;
    }
}

/* Cards & Containers */
.dashboard-card {
    background-color: var(--macos-surface);
    border: 1px solid var(--macos-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--macos-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 5px 15px var(--macos-shadow);
}

.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--macos-text);
    border-bottom: 1px solid var(--macos-border);
    padding-bottom: 0.5rem;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.period-selector {
    display: flex;
    align-items: center;
}

.period-selector label {
    margin-right: 10px;
    color: var(--macos-text-secondary);
}

/* Statistik-Karten */
.stats-overview {
    margin-bottom: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    height: 100%;
}

.stat-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: var(--macos-accent);
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    color: var(--macos-text-secondary);
    border: none;
    padding: 0;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--macos-text);
    margin-bottom: 0.2rem;
}

.stat-period {
    font-size: 0.8rem;
    color: var(--macos-text-secondary);
}

/* Chart-Karten */
.chart-card {
    padding-bottom: 1rem;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Tabellen im Dashboard */
.dashboard-card .table-container {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.dashboard-card .table {
    margin-bottom: 0;
}

.dashboard-card .table th {
    position: sticky;
    top: 0;
    background-color: var(--macos-surface);
    z-index: 1;
}

/* Progress Bars */
.progress {
    height: 8px;
    background-color: var(--macos-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Alte Statistik-Elemente (für Kompatibilität) */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.stat-label {
    color: var(--macos-text-secondary);
}

.stat-value {
    font-weight: 600;
}

/* Lizenz-Chart (altes Design) */
.license-chart {
    margin-top: 15px;
}

.license-bar {
    height: 20px;
    background-color: rgba(75, 192, 192, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.license-used {
    height: 100%;
    background-color: rgba(255, 99, 132, 0.8);
    border-radius: 10px 0 0 10px;
}

.license-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
}

.available-legend {
    color: rgba(75, 192, 192, 1);
}

.used-legend {
    color: rgba(255, 99, 132, 1);
}

/* Tables */
.table-container {
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--macos-border);
    border-radius: 0px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.table {
    margin-bottom: 0;
    color: var(--macos-text);
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    background-color: rgba(40, 40, 40, 0.7);
    color: var(--macos-text);
    font-weight: 500;
    font-size: 13px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--macos-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid var(--macos-border);
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(60, 60, 60, 0.5);
}

.table tbody td {
    padding: 8px 15px;
    font-size: 13px;
    vertical-align: middle;
}

/* Buttons */
.btn {
    border-radius: 0px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px;
    transition: all 0.2s;
    height: auto;
    line-height: 1.2;
    margin: 5px;
    background-color: rgba(50, 50, 50, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    color: var(--macos-text);
}

.btn:hover {
    background-color: rgba(60, 60, 60, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(to bottom, rgba(0, 122, 255, 0.7), rgba(0, 102, 215, 0.7));
    border: 1px solid rgba(0, 122, 255, 0.3);
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, rgba(20, 142, 255, 0.8), rgba(10, 112, 225, 0.8));
}

.btn-secondary {
    background: linear-gradient(to bottom, rgba(60, 60, 60, 0.7), rgba(50, 50, 50, 0.7));
    border: 1px solid rgba(80, 80, 80, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, rgba(70, 70, 70, 0.8), rgba(60, 60, 60, 0.8));
}

.btn-success {
    background: linear-gradient(to bottom, rgba(40, 167, 69, 0.7), rgba(30, 147, 59, 0.7));
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(to bottom, rgba(50, 177, 79, 0.8), rgba(40, 157, 69, 0.8));
}

.btn-danger {
    background: linear-gradient(to bottom, rgba(220, 53, 69, 0.7), rgba(200, 43, 59, 0.7));
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(to bottom, rgba(230, 63, 79, 0.8), rgba(210, 53, 69, 0.8));
}

.btn-warning {
    background: linear-gradient(to bottom, rgba(255, 193, 7, 0.7), rgba(235, 173, 0, 0.7));
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(to bottom, rgba(255, 203, 17, 0.8), rgba(245, 183, 10, 0.8));
}

.btn-info {
    background: linear-gradient(to bottom, rgba(23, 162, 184, 0.7), rgba(13, 152, 174, 0.7));
    border: 1px solid rgba(23, 162, 184, 0.3);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(to bottom, rgba(33, 172, 194, 0.8), rgba(23, 162, 184, 0.8));
}

.btn-light {
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0.7), rgba(238, 239, 240, 0.7));
    border: 1px solid rgba(248, 249, 250, 0.3);
    color: #212529;
}

.btn-light:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(245, 245, 245, 0.8));
}

.btn-dark {
    background: linear-gradient(to bottom, rgba(52, 58, 64, 0.7), rgba(42, 48, 54, 0.7));
    border: 1px solid rgba(52, 58, 64, 0.3);
    color: white;
}

.btn-dark:hover {
    background: linear-gradient(to bottom, rgba(62, 68, 74, 0.8), rgba(52, 58, 64, 0.8));
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background-color: rgba(50, 50, 50, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--macos-text);
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-icon:hover {
    background-color: rgba(60, 60, 60, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-group .btn {
    margin: 0;
    border-right-width: 0;
}

.btn-group .btn:last-child {
    border-right-width: 1px;
}

/* Forms */
.form-control {
    background-color: var(--macos-surface);
    border: 1px solid var(--macos-border);
    color: var(--macos-text);
    font-size: 13px;
    transition: border-color 0.2s;
    height: 32px;
    padding: 1px;
}

.form-control:focus {
    background-color: var(--macos-surface);
    border-color: var(--macos-accent);
    box-shadow: 0 0 0 3px rgba(2, 144, 254, 0.2);
    color: var(--macos-text);
}

/* Modals */
.modal-content {
    background-color: rgba(10, 15, 21, 0.45);
    border: 1px solid var(--macos-border);
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

.modal-header {
    border-bottom: 1px solid var(--macos-border);
    padding: 15px;
    background-color: rgba(40, 40, 40, 0.7);
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--macos-text);
    display: flex;
    align-items: center;
}

.modal-title i {
    margin-right: 8px;
    color: var(--macos-accent);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--macos-border);
    padding: 15px;
    background-color: rgba(40, 40, 40, 0.7);
}

.btn-close {
    background-color: rgba(60, 60, 60, 0.7);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.2s;
}

.btn-close:hover {
    opacity: 1;
    background-color: rgba(80, 80, 80, 0.9);
}

/* Alerts */
.alert {
    border-radius: 0;
    border: 1px solid transparent;
    padding: 12px 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #fff;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: #fff;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
    color: #fff;
}

.alert-info {
    background-color: rgba(2, 144, 254, 0.2);
    border-color: rgba(2, 144, 254, 0.5);
    color: #fff;
}

/* Form Elements */
.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--macos-text);
}

.form-text {
    font-size: 12px;
    color: var(--macos-text-secondary);
    margin-top: 5px;
}

/* Footer */
.footer {
    flex-shrink: 0;
    background-color: var(--macos-surface);
    border-top: 1px solid var(--macos-border);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    height: 44px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1px;
}

.footer-logo {
    color: var(--macos-text);
    font-weight: 500;
}

.footer-version {
    color: var(--macos-text-secondary);
    font-size: 11px;
    padding: 2px 6px;
    background-color: var(--macos-header);
}

.footer-links {
    display: flex;
    gap: 1px;
}

.footer-links a {
    color: var(--macos-text-secondary);
    text-decoration: none;
    padding: 1px;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--macos-text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 11px;
}

.footer-copyright {
    color: var(--macos-text-secondary);
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    color: var(--macos-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--macos-text);
}

/* Utilities */
.text-secondary {
    color: var(--macos-text-secondary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-card {
        border-radius: 0px;
    }
    
    .modal-content {
        border-radius: 0px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--macos-border);
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--macos-text-secondary);
}

/* Orders Page Specific Styles */
.page-title {
    color: var(--macos-text);
    font-size: 24px;
    font-weight: 500;
}

.filter-card {
    background-color: var(--macos-surface);
    border: 1px solid var(--macos-border);
    border-radius: 0px;
}

.form-control, .form-select {
    background-color: var(--macos-header);
    border: 1px solid var(--macos-border);
    color: var(--macos-text);
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    background-color: var(--macos-header);
    border-color: var(--macos-accent);
    color: var(--macos-text);
    box-shadow: 0 0 0 2px rgba(2, 144, 254, 0.2);
}

.nav-tabs {
    border-bottom: 1px solid var(--macos-border);
}

.nav-tabs .nav-link {
    color: var(--macos-text-secondary) !important;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    margin-bottom: -1px;
    background: transparent;
    font-size: 14px;
}

.nav-tabs .nav-link:hover {
    border-bottom: 2px solid var(--macos-border);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--macos-accent) !important;
    border-bottom: 2px solid var(--macos-accent);
    background: transparent;
}

.table-footer {
    background-color: rgba(40, 40, 40, 0.7);
    padding: 10px 15px;
    border-top: 1px solid var(--macos-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.pagination {
    margin: 0;
    display: flex;
    gap: 5px;
}

.pagination .page-link {
    background-color: rgba(50, 50, 50, 0.5);
    border: 1px solid var(--macos-border);
    color: var(--macos-text);
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 0;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background-color: rgba(70, 70, 70, 0.7);
    border-color: var(--macos-accent);
}

.pagination .page-item.active .page-link {
    background-color: var(--macos-accent);
    border-color: var(--macos-accent);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: var(--macos-text-secondary);
    background-color: rgba(40, 40, 40, 0.3);
    border-color: var(--macos-border);
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge.bg-success { 
    background-color: rgba(40, 167, 69, 0.7) !important; 
    border: 1px solid rgba(40, 167, 69, 0.9);
}
.badge.bg-warning { 
    background-color: rgba(255, 193, 7, 0.7) !important; 
    border: 1px solid rgba(255, 193, 7, 0.9);
}
.badge.bg-info { 
    background-color: rgba(2, 144, 254, 0.7) !important; 
    border: 1px solid rgba(2, 144, 254, 0.9);
}
.badge.bg-danger { 
    background-color: rgba(220, 53, 69, 0.7) !important; 
    border: 1px solid rgba(220, 53, 69, 0.9);
}
.badge.bg-secondary { 
    background-color: rgba(108, 117, 125, 0.7) !important; 
    border: 1px solid rgba(108, 117, 125, 0.9);
}

/* Supplier Page Specific Styles */
.can-wrap {
    white-space: normal;
    min-width: 200px;
}

.btn-group {
    display: flex;
    gap: 1px;
}

.btn-icon {
    width: 21px;
    height: 21px;
    padding: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--macos-border);
    background-color: var(--macos-surface);
    color: var(--macos-text);
    border-radius: 0px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-icon:hover {
    background-color: var(--macos-accent);
    color: white;
    border-color: var(--macos-accent);
}

.btn-icon i {
    font-size: 14px;
    line-height: 1;
}

/* Spezifische Icon-Button Varianten */
.btn-icon[title="Bearbeiten"]:hover {
    background-color: var(--macos-accent);
}

.btn-icon[title="Löschen"]:hover {
    background-color: var(--macos-error);
    border-color: var(--macos-error);
}

.btn-icon[title="Produkte"]:hover {
    background-color: var(--macos-success);
    border-color: var(--macos-success);
}

/* Anpassung der Abstände */
.mb-4 {
    margin-bottom: 1px !important;
}

.mt-4 {
    margin-top: 1px !important;
}

.gap-8 {
    gap: 1px;
}

/* Order Links */
.order-link {
    color: var(--macos-text);
    text-decoration: none;
    transition: color 0.2s;
}

.order-link:hover {
    color: var(--macos-accent);
    text-decoration: underline;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

/* Order Details Styles */
.order-details-container {
    display: flex;
    gap: 2rem;
    padding: 20px;
}

.main-content {
    flex: 1;
    background: var(--macos-surface);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 300px;
    background: var(--macos-surface);
    border-radius: 8px;
    padding: 20px;
}

.section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--macos-border);
}

.product-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--macos-surface-secondary);
    border-radius: 6px;
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.meta-data-table {
    width: 100%;
    border-collapse: collapse;
}

.meta-data-table td {
    padding: 4px;
    border-bottom: 1px solid var(--macos-border);
}

/* Utility Classes */
.mb-2 {
    margin-bottom: 0.5rem;
}

.w-100 {
    width: 100%;
}

/* Container und Footer Fixes */
.container {
    max-width: 1600px;
    margin: 50px auto;
    padding: 1rem;
    padding-bottom: 80px; /* Abstand für Footer */
    min-height: calc(100vh - 160px); /* Mindesthöhe abzüglich Header und Footer */
}

/* Footer Positioning */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--macos-surface);
    border-top: 1px solid var(--macos-border);
}

/* Wrapper für Scroll-Bereich */
main {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Stellen Sie sicher, dass der Content über dem Footer liegt */
.main-content {
    position: relative;
    z-index: 1;
    background: var(--macos-background);
}

/* Aktionsbuttons in Tabellen */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.action-buttons .btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--macos-border);
    background-color: rgba(50, 50, 50, 0.5);
    color: var(--macos-text);
    border-radius: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-padding: 5px;
}

.action-buttons .btn-icon:hover {
    background-color: rgba(2, 144, 254, 0.7);
    color: white;
    border-color: rgba(2, 144, 254, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.action-buttons .btn-icon i {
    font-size: 14px;
    line-height: 1;
}

.action-buttons .btn-icon[title="Bearbeiten"]:hover,
.action-buttons .btn-icon.edit-code:hover,
.action-buttons .btn-icon.edit-btn:hover {
    background-color: rgba(2, 144, 254, 0.7);
    border-color: rgba(2, 144, 254, 0.9);
}

.action-buttons .btn-icon[title="Löschen"]:hover,
.action-buttons .btn-icon.delete-code:hover,
.action-buttons .btn-icon.delete-btn:hover {
    background-color: rgba(220, 53, 69, 0.7);
    border-color: rgba(220, 53, 69, 0.9);
}

.action-buttons .btn-icon[title="Ansehen"]:hover,
.action-buttons .btn-icon.view-btn:hover {
    background-color: rgba(40, 167, 69, 0.7);
    border-color: rgba(40, 167, 69, 0.9);
}

/* Statistikkarten */
.stat-card {
    border: 1px solid var(--macos-border);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(40, 40, 40, 0.7) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-card-body {
    padding: 15px;
    display: flex;
    align-items: center;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.1);
}

.stat-card-info {
    flex: 1;
}

.stat-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 600;
}

.bg-primary {
    background-color: rgba(2, 144, 254, 0.7) !important;
    border: 1px solid rgba(2, 144, 254, 0.9);
}

.bg-success {
    background-color: rgba(40, 167, 69, 0.7) !important;
    border: 1px solid rgba(40, 167, 69, 0.9);
}

.bg-warning {
    background-color: rgba(255, 193, 7, 0.7) !important;
    border: 1px solid rgba(255, 193, 7, 0.9);
}

.bg-secondary {
    background-color: rgba(108, 117, 125, 0.7) !important;
    border: 1px solid rgba(108, 117, 125, 0.9);
}

/* Filter Card */
.filter-card {
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--macos-border);
    border-radius: 0;
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.input-group-text {
    background-color: rgba(50, 50, 50, 0.7);
    border: 1px solid var(--macos-border);
    color: var(--macos-text);
    border-radius: 0;
    padding: 0.375rem 0.75rem;
}

.input-group .form-control,
.input-group .form-select {
    border-radius: 0;
    border-left: 0;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    border-color: var(--macos-accent);
    box-shadow: none;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--macos-border);
    padding-bottom: 15px;
    margin-top: 51px;
  }

.page-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--macos-text);
    display: flex;
    align-items: center;
}

.page-title i {
    margin-right: 10px;
    color: var(--macos-accent);
}

.page-subtitle {
    font-size: 14px;
    color: var(--macos-text-secondary);
    margin-bottom: 0;
}

/* Buttons */
.btn {
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--macos-border);
    max-padding: 5px;
}

.btn-primary {
    background-color: rgba(2, 144, 254, 0.7);
    border-color: rgba(2, 144, 254, 0.9);
    color: white;
}

.btn-primary:hover {
    background-color: rgba(2, 144, 254, 0.9);
    border-color: rgba(2, 144, 254, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: rgba(40, 167, 69, 0.7);
    border-color: rgba(40, 167, 69, 0.9);
    color: white;
}

.btn-success:hover {
    background-color: rgba(40, 167, 69, 0.9);
    border-color: rgba(40, 167, 69, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--macos-border);
    color: var(--macos-text);
}

.btn-outline-secondary:hover {
    background-color: rgba(108, 117, 125, 0.2);
    border-color: var(--macos-text);
    color: var(--macos-text);
}

.btn i {
    font-size: 14px;
}

