/* ============================================================
   ardda Dashboard-Dark CSS
   MINIMAL - überschreibt style.css NICHT!
   Salon nutzt style.css Grid-Layout (Original)
   ============================================================ */

/* === Mobile Hamburger === */
.mobile-hamburger {
    display: none;
}

@media (max-width: 768px) {
    .mobile-hamburger {
        display: block;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 9999999;
        background: linear-gradient(135deg, #dc2626, #991b1b);
        color: white;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    
    /* Sidebar Mobile: hidden default, slide in mit Klasse */
    .biz-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px !important;
        z-index: 999999 !important;
    }
    
    .biz-sidebar.mobile-open,
    .biz-sidebar.open,
    .biz-sidebar.is-open {
        transform: translateX(0) !important;
    }
}

/* === Cookie-Banner: niedriger z-index als Sidebar === */
@media (max-width: 768px) {
    .cookie-banner,
    .cookie-consent {
        z-index: 99 !important;
    }
}

/* ============================================================
   Dashboard-Button im Header
   ============================================================ */
.app-btn-dashboard {
    background: white;
    color: #18181b;
    padding: 8px 18px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    margin-right: 8px;
    transition: transform 0.15s;
}

.app-btn-dashboard:hover {
    transform: translateY(-1px);
}

/* ============================================================
   FIX: Inhalt-Bereich FULL Breite nutzen
   ============================================================ */
.app-body .biz-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 100px);
    width: 100%;
    max-width: 100%;
}

.app-body .biz-main {
    min-width: 0;
    overflow-x: hidden;
}

.app-body .biz-content {
    width: 100%;
    max-width: 100%;
    padding: 24px 28px;
    box-sizing: border-box;
}

/* KPI-Grid: greift wieder */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

/* Dashboard-Cards groß */
.kpi-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: #18181b;
}

.kpi-label {
    color: #71717a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Schnellzugriff-Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    width: 100%;
}

/* Sections nutzen volle Breite */
.dash-section {
    width: 100%;
    background: white;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Mobile */
@media (max-width: 768px) {
    .app-btn-dashboard {
        padding: 6px 12px;
        font-size: 12px;
    }
    .app-body .biz-content {
        padding: 16px;
    }
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   FORCE: Inhalt IMMER volle Breite
   ============================================================ */
@media (min-width: 769px) {
    .app-body .app-wrapper {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        min-height: calc(100vh - 100px);
    }
    
    .app-body .biz-layout {
        display: contents !important;
    }
    
    .app-body .biz-sidebar {
        position: sticky;
        top: 70px;
        align-self: start;
    }
    
    .app-body .biz-main {
        min-width: 0;
        width: 100%;
        padding: 28px 36px;
    }
    
    .app-body .biz-content {
        max-width: 100%;
        width: 100%;
    }
    
    .app-body .kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 16px;
    }
    
    .app-body .action-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 14px;
    }
}
