/* =====================================================
   CURA HOMECARE OS v6.0 - PREMIUM 2025 SAAS DESIGN
   Inspiriert von: Doctolib, Linear, Notion, Vercel
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Cura Homecare Brand Colors - Vertrauenswürdig & Professionell */
    --cura-blue: #0F4C81;
    --cura-blue-light: #1976D2;
    --cura-blue-dark: #0A3558;
    --cura-mint: #10B981;
    --cura-orange: #FF6B35;
    
    /* Neutral Palette - 2025 Modern */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Background */
    --bg-app: #FAFBFC;
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F8F9FA;
    --bg-sidebar: #FFFFFF;
    
    /* Shadows - Subtle & Professional */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    
    /* Border Radius - Modern & Soft */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions - Smooth & Natural */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-app: #0F1419;
    --bg-surface: #1A1F28;
    --bg-surface-hover: #252B36;
    --bg-sidebar: #1A1F28;
    --gray-50: #1F2937;
    --gray-100: #374151;
    --gray-900: #F9FAFB;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-app);
    color: var(--gray-900);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   SIDEBAR - Clean & Professional
   ===================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--gray-200);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cura-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h2 i {
    color: var(--cura-mint);
}

.sidebar-toggle {
    display: none;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.125rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--gray-50);
    color: var(--cura-blue);
}

.nav-item:hover i {
    color: var(--cura-blue);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(16, 185, 129, 0.08));
    color: var(--cura-blue);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.nav-item.active i {
    color: var(--cura-mint);
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */

.main-content {
    margin-left: 260px;
    min-height: 100vh;
}

.header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.mobile-menu-btn {
    display: none;
}

.page-content {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

/* =====================================================
   BUTTONS - Modern & Accessible
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cura-blue), var(--cura-blue-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--error);
    color: white;
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =====================================================
   MODALS - Premium Overlay Design
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal[style*="display: block"],
.modal[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.modal-header .close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 1.5rem;
    line-height: 1;
    transition: var(--transition);
}

.modal-header .close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--gray-50);
    flex-shrink: 0;
}

/* =====================================================
   KUNDENDETAILS - PERFEKT ZENTRIERT & MODERN
   ===================================================== */

.customer-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

.detail-section {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-xl) !important;
    padding: 2rem !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition-slow) !important;
}

.detail-section:hover {
    box-shadow: var(--shadow-xl) !important;
    transform: translateY(-4px) !important;
    border-color: var(--cura-blue-light) !important;
}

.detail-section h4 {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: var(--gray-600) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    margin: 0 0 1.5rem 0 !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid var(--gray-100) !important;
    width: 100% !important;
}

.detail-item {
    display: block !important;
    text-align: center !important;
    padding: 1rem 0.5rem !important;
    transition: var(--transition) !important;
}

.detail-item:hover {
    background: var(--gray-50) !important;
    border-radius: var(--radius-md) !important;
}

.detail-item span {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

.detail-label {
    display: block !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    color: var(--gray-500) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
}

.detail-value {
    display: block !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--gray-900) !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.4 !important;
}

.detail-value .status-badge {
    display: inline-flex !important;
    margin: 0 auto !important;
}

/* =====================================================
   TABS - Modern Pill Design
   ===================================================== */

.customer-detail-tabs {
    margin-top: 1.5rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 0.375rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--gray-900);
}

.tab-btn.active {
    background: white;
    color: var(--cura-blue);
    box-shadow: var(--shadow-sm);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* =====================================================
   TABLES - Clean & Scannable
   ===================================================== */

.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

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

.data-table th {
    background: var(--gray-50);
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-700);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: var(--gray-50);
}

/* =====================================================
   STATUS BADGES - Soft & Clear
   ===================================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.status-badge.aktiv,
.status-badge.verfügbar,
.status-badge.bezahlt {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.pausiert,
.status-badge.offen {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.beendet,
.status-badge.abgeschlossen {
    background: var(--gray-100);
    color: var(--gray-700);
}

.status-badge.belegt {
    background: #FEE2E2;
    color: #991B1B;
}

/* =====================================================
   ACTION BUTTONS - Subtle & Clear
   ===================================================== */

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.action-btn.view {
    background: var(--gray-100);
    color: var(--cura-blue);
}

.action-btn.view:hover {
    background: rgba(15, 76, 129, 0.1);
}

.action-btn.edit {
    background: var(--gray-100);
    color: var(--cura-blue);
}

.action-btn.edit:hover {
    background: rgba(15, 76, 129, 0.1);
}

.action-btn.delete {
    background: var(--gray-100);
    color: var(--error);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* =====================================================
   CARDS - Floating & Modern
   ===================================================== */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.card-header p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* =====================================================
   STATS - Dashboard Cards
   ===================================================== */

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

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cura-blue), var(--cura-mint));
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--cura-blue);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* =====================================================
   FORMS - Clean & Accessible
   ===================================================== */

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-surface);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--cura-blue);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* =====================================================
   FILTER BAR - Sticky & Clean
   ===================================================== */

.filter-bar {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 80px;
    z-index: 50;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group input,
.filter-group select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    min-width: 180px;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--cura-blue);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.08);
}

/* =====================================================
   PAGE HEADER
   ===================================================== */

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

.page-header h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

/* =====================================================
   DOCUMENTS - Card Grid
   ===================================================== */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.document-card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.document-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.document-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--cura-blue), var(--cura-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.document-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.document-info p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* =====================================================
   DOCUMENT FOLDERS - Premium Design
   ===================================================== */

.document-folders {
    display: grid;
    gap: 1.5rem;
}

.document-folder {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.document-folder:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--cura-blue-light);
}

.document-folder h5 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.document-folder h5 i {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--cura-blue), var(--cura-blue-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.folder-content {
    margin-top: 1rem;
}

.file-input {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.file-input:hover {
    border-color: var(--cura-blue);
    background: rgba(15, 76, 129, 0.05);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.file-name {
    font-weight: 500;
    color: var(--gray-900);
}

.file-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

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

/* =====================================================
   TIMESHEET ENTRIES - Premium List Design
   ===================================================== */

.timesheets-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timesheet-card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.timesheet-header {
    background: var(--gray-50);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timesheet-info h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.timesheet-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.timesheet-duration {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.timesheet-body {
    padding: 1.5rem;
}

.timesheet-entries {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timesheet-entry {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.timesheet-entry:hover {
    border-color: var(--cura-blue);
    box-shadow: var(--shadow-sm);
}

.timesheet-entry-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--cura-blue);
}

.timesheet-entry-info {
    flex: 1;
}

.timesheet-entry-info h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.timesheet-entry-info p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin: 0.25rem 0;
}

.timesheet-entry-info em {
    font-style: normal;
    color: var(--cura-blue);
    font-weight: 500;
}

.timesheet-entry-signature {
    width: 80px;
    height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timesheet-entry-signature img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timesheet-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.03), rgba(16, 185, 129, 0.03));
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
}

/* =====================================================
   NOTES SECTION
   ===================================================== */

.notes-section {
    padding: 1.5rem 0;
}

.notes-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.notes-section textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    min-height: 150px;
    margin-bottom: 1rem;
}

.notes-section textarea:focus {
    outline: none;
    border-color: var(--cura-blue);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

/* =====================================================
   SIGNATURE CANVAS - Touch Optimized
   ===================================================== */

.signature-canvas {
    width: 100%;
    height: 200px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    cursor: crosshair;
    touch-action: none;
    display: block;
}

.signature-pad-container {
    margin: 1.5rem 0;
}

.signature-pad-container label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.signature-controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* =====================================================
   MONTHLY REPORTS
   ===================================================== */

.monthly-reports-section {
    margin-bottom: 2rem;
}

.monthly-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.monthly-report-card {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.monthly-report-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.monthly-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.monthly-report-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.monthly-report-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.monthly-report-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.monthly-report-stat {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.monthly-report-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cura-blue);
    margin-bottom: 0.25rem;
}

.monthly-report-stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.monthly-report-actions .btn {
    flex: 1;
}

.monthly-report-preview {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.monthly-report-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.monthly-report-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.monthly-report-summary-item:last-child {
    border-bottom: none;
}

.monthly-report-summary-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.monthly-report-summary-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* =====================================================
   ALERTS & NOTIFICATIONS
   ===================================================== */

.alerts-container {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.alerts-container h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.alert.warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert.info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.alert.danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert i {
    font-size: 1.125rem;
}

/* =====================================================
   RECENT ORDERS
   ===================================================== */

.recent-orders {
    background: var(--bg-surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.recent-orders h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-item {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.order-info p {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* =====================================================
   SUBUNTERNEHMER LINKS
   ===================================================== */

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

.sub-link-item {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

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

.sub-link-name {
    font-weight: 600;
    color: var(--gray-900);
}

.sub-link-copy {
    background: var(--cura-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sub-link-copy:hover {
    background: var(--cura-blue-dark);
}

.sub-link-url {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.8125rem;
    color: var(--gray-600);
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    word-break: break-all;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-500);
}

.no-data i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-data h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.no-data p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .customer-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-2xl);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group input,
    .filter-group select {
        min-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timesheet-actions {
        flex-direction: column;
    }
}

/* =====================================================
   SCROLLBAR - Subtle & Modern
   ===================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* =====================================================
   DARK MODE SUPPORT
   ===================================================== */

[data-theme="dark"] .sidebar {
    background: var(--bg-sidebar);
    border-right-color: var(--gray-700);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-surface);
}

[data-theme="dark"] .detail-section {
    background: var(--bg-surface) !important;
    border-color: var(--gray-700) !important;
}

/* =====================================================
   ANIMATIONS - Smooth & Professional
   ===================================================== */

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

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .sidebar,
    .header,
    .filter-bar,
    .action-buttons,
    .timesheet-actions,
    .modal-footer {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    body {
        background: white !important;
    }
}
