/* ============================================= */
/* DASHBOARD.CSS - Top Navigation Layout         */
/* Keine Sidebar, horizontale Navigation         */
/* ============================================= */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --bg: #f1f5f9;
    --text: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

/* ============================================= */
/* REMOVE SIDEBAR - WICHTIG!                     */
/* ============================================= */

.sidebar {
    display: none !important;
}

.main-content {
    margin-left: 0 !important; /* Entfernt Sidebar-Margin */
    padding: 2rem;
    background: transparent;
    min-height: calc(100vh - 120px);
}

/* ============================================= */
/* APP HEADER                                    */
/* ============================================= */

.app-header,
.dashboard-header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title,
.header-left h2 {
    color: #2c3e50 !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.current-time,
#current-time {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    color: #64748b;
}

.logout-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
}

.logout-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

/* ============================================= */
/* TOP NAVIGATION BAR - WICHTIGSTE ÄNDERUNG      */
/* ============================================= */

.dashboard-nav {
    background: white !important;
    padding: 0 2rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto !important;
    position: sticky !important;
    top: 60px !important; /* Unter dem Header */
    z-index: 99 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.nav-btn {
    padding: 1rem 1.5rem !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    position: relative !important;
    white-space: nowrap !important;
    border-bottom: 3px solid transparent !important;
}

.nav-btn:hover {
    color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.05) !important;
}

.nav-btn.active {
    color: #6366f1 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%) !important;
    border-bottom-color: #6366f1 !important;
}

/* Entfernt den alten Pfeil-Stil */
.nav-btn.active::after {
    display: none !important;
}

/* ============================================= */
/* DASHBOARD BACKGROUND                          */
/* ============================================= */

body,
.dashboard,
#employee-dashboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%) !important;
    min-height: 100vh;
}

/* ============================================= */
/* DASHBOARD CONTENT                             */
/* ============================================= */

.dashboard-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-section {
    display: none !important;
}

.content-section.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Überschrift auf lila Hintergrund */
.section-header h2,
.section-header h3,
.dashboard-content > .dashboard-header h2 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dashboard-content > .dashboard-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================= */
/* ACTION BUTTONS                                */
/* ============================================= */

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: #334155;
}

.action-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn.primary {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.action-btn.primary:hover {
    background: #4f46e5;
}

/* ============================================= */
/* STATS CARDS                                   */
/* ============================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white !important;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

/* ============================================= */
/* SETTINGS TAB VISIBILITY                       */
/* ============================================= */

.nav-btn[data-section="settings"] {
    display: flex !important;
    visibility: visible !important;
}

#settings-content {
    /* Settings section styles */
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.settings-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ============================================= */
/* RESPONSIVE DESIGN                             */
/* ============================================= */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .dashboard-nav {
        padding: 0 1rem !important;
        overflow-x: auto !important;
    }
    
    .nav-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
}