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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #00234F 0%, #23426E 100%);
    color: white;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0, 35, 79, 0.15);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.logo-img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #DCDFE1;
    text-align: center;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #DCDFE1;
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: #ffffff; /* gut lesbar auf dunklem Sidebar-Hintergrund */
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    margin-right: 1rem;
}

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-nav li.active a {
    background-color: #009EE3; /* CI Akzent hellblau */
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 158, 227, 0.25);
}

.sidebar-nav i {
    width: 20px;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    justify-content: space-between !important;
    cursor: pointer;
}

.dropdown-arrow {
    margin-left: auto !important;
    margin-right: 0 !important;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.nav-item.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.15);
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 0 0 8px 8px;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px);
}

.nav-item.dropdown.active .dropdown-menu {
    max-height: 500px;
    padding: 0.5rem 0;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1.5rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-left-color: #009EE3;
}

.dropdown-item.active {
    background-color: rgba(0, 158, 227, 0.25) !important;
    border-left-color: #009EE3;
    color: #ffffff !important;
}

.external-link-icon {
    margin-left: 8px !important; /* small gap from text */
    margin-right: 0 !important;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Submenu Styles */
.menu-item-with-submenu {
    position: relative;
}

.submenu-toggle {
    margin-left: auto !important;
    margin-right: 0 !important;
    transition: transform 0.3s ease;
}

.menu-item-with-submenu.active .submenu-toggle {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.15);
    margin-left: 2rem;
    border-radius: 0 8px 8px 0;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.menu-item-with-submenu.active .submenu {
    max-height: 200px;
}

.submenu li {
    margin-bottom: 0;
}

.submenu a {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    border-radius: 0 8px 8px 0;
    margin-right: 1rem;
    margin-left: 0;
    color: #ffffff;
    font-weight: 400;
}

.submenu a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.submenu a i {
    font-size: 0.9rem;
    width: 16px;
    margin-right: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px); /* Subtract footer height */
}

/* Header */
.header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.header-left p {
    color: #64748b;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.user-role {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
}

.user-actions {
    display: flex;
    align-items: center;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
}

/* Removed: Dashboard KPI cards (stats-grid, stat-card, stat-icon) */

/* Welcome Section */
.welcome-section {
    margin-top: 2rem;
}

.welcome-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.welcome-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.welcome-card p {
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* IDD Overview Styles */
.idd-overview {
    padding: 0;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.idd-filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

.idd-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.table-actions {
    display: flex;
    gap: 0.75rem;
}

.table-responsive {
    overflow-x: auto;
}

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

.idd-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.idd-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
}

.idd-table tr:hover {
    background: #f9fafb;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.idd-hours {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

/* User View Styles */
.user-view {
    padding: 2rem 0;
}

.user-notice {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.notice-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: #1e40af;
    font-size: 0.875rem;
}

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

.user-idd-list {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.user-idd-list h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.idd-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idd-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.idd-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.idd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.idd-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.idd-details {
    margin-bottom: 1rem;
}

.idd-details p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.idd-actions {
    display: flex;
    gap: 0.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.loading-spinner i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    gap: 0.5rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.pagination button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.pagination button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-header {
        min-height: 100px;
        padding: 1rem 0.5rem;
    }
    
    .logo {
        width: 150px;
        height: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
} 

/* My IDD Hours Page Styles */
.my-idd-container {
    padding: 0;
}

.idd-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-content {
    padding: 2rem;
    position: relative;
    min-height: 200px;
}

.idd-summary {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.idd-hours-display {
    text-align: center;
    flex-shrink: 0;
}

.hours-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hours-label {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 500;
}

.idd-info {
    flex-grow: 1;
}

.idd-info p {
    margin: 0.75rem 0;
    font-size: 1rem;
    color: #374151;
}

.idd-info strong {
    color: #111827;
    font-weight: 600;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.idd-content {
    animation: fadeIn 0.3s ease-in;
}

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

/* Responsive design for mobile */
@media (max-width: 768px) {
    .idd-summary {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hours-number {
        font-size: 3rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .card-content {
        padding: 1.5rem;
    }
} 

/* Footer Styles */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 1.5rem 0;
    border-top: 1px solid #334155;
    margin-left: 280px;
}

/* Footer for pages without sidebar (login, logout, etc.) */
body:not(.app-container) .footer {
    margin-left: 0;
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-separator {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
} 

/* White logo variant */
.logo-img--white {
    filter: brightness(0) invert(1);
} 