/* Modern Admin Panel Stylesheet */
:root {
    --primary-color: #EF3E42;
    --primary-dark: #D13539;
    --primary-light: #FF6B6F;
    --secondary-color: #2C3E50;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
    background: var(--white);
    padding: 20px 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.site-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.header h1 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: var(--text-secondary);
    font-size: 14px;
}

.user-info strong {
    color: var(--text-primary);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px;
    flex: 1;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 25px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.card-header h2 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-card .subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: var(--shadow-sm);
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: var(--primary-color);
    background: var(--light-bg);
}

.tab.active {
    color: var(--primary-color);
    background: var(--light-bg);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    background: var(--white);
    padding: 30px;
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--light-bg);
    transform: scale(1.01);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: var(--text-primary);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: var(--white);
}

.logout-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 62, 66, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="checkbox"] {
    width: auto;
    height: 18px;
    width: 18px;
    cursor: pointer;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.message.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close {
    color: var(--text-light);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.data-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.data-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.data-card h3 {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.data-card .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Cells Grid */
.cells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.cell-item {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.cell-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.cell-item.balancing {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffe0e0 0%, #ffcccc 100%);
    box-shadow: 0 0 10px rgba(239, 62, 66, 0.3);
}

.temp-item {
    display: inline-block;
    background: var(--white);
    padding: 10px 18px;
    margin: 5px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.temp-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
    font-size: 16px;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Code */
code {
    background: var(--light-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* Sections */
.section {
    background: var(--white);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.section h2 {
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        position: relative;
    }
    
    .header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .header-left img {
        height: 60px;
        margin-bottom: 10px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .header h1 {
        font-size: 20px;
        margin-top: 5px;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: stretch;
    }
    
    .user-info span {
        text-align: center;
        font-size: 12px;
    }
    
    .user-info .btn,
    .user-info .logout-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card .value {
        font-size: 28px;
    }
    
    .tabs {
        flex-direction: column;
        padding: 10px;
        gap: 5px;
    }
    
    .tab {
        width: 100%;
        border-radius: var(--radius-sm);
        border-bottom: 3px solid transparent;
        padding: 12px 15px;
        font-size: 14px;
        text-align: left;
    }
    
    .tab.active {
        border-bottom-color: var(--primary-color);
    }
    
    .tab-content {
        padding: 20px 15px;
        border-radius: var(--radius-md);
    }
    
    .card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .card-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .card-header h2 {
        font-size: 18px;
        flex-wrap: wrap;
    }
    
    /* Search container in cards */
    .card > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .card > div[style*="display: flex"] > input,
    .card > div[style*="display: flex"] > button {
        width: 100% !important;
    }
    
    /* Table wrapper voor betere scroll */
    table {
        font-size: 12px;
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    thead {
        display: table-header-group;
    }
    
    tbody {
        display: table-row-group;
    }
    
    tr {
        display: table-row;
    }
    
    th, td {
        display: table-cell;
        padding: 10px 8px;
        text-align: left;
        white-space: nowrap;
        vertical-align: middle;
    }
    
    th {
        font-size: 11px;
        padding: 12px 8px;
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        z-index: 10;
    }
    
    td {
        font-size: 12px;
    }
    
    /* Maak belangrijke kolommen breder op mobiel */
    th:first-child,
    td:first-child {
        min-width: 120px;
        position: sticky;
        left: 0;
        background: var(--white);
        z-index: 5;
    }
    
    th:first-child {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        z-index: 15;
    }
    
    /* Actie kolommen */
    th:last-child,
    td:last-child {
        min-width: 120px;
        text-align: center;
    }
    
    /* Action buttons in table */
    td .btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
        white-space: nowrap;
    }
    
    /* Table scroll hint - alleen op mobiel */
    table::before {
        content: '← Swipe om te scrollen →';
        display: block;
        text-align: center;
        padding: 8px;
        font-size: 11px;
        color: var(--text-secondary);
        background: var(--light-bg);
        border-radius: var(--radius-sm);
        margin-bottom: 10px;
        font-weight: 500;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px 15px;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* Button groups */
    .btn + .btn {
        margin-left: 0;
    }
    
    /* Inline buttons worden gestapeld */
    div[style*="display: flex"][style*="gap"] .btn {
        margin-bottom: 10px;
    }
    
    /* Message boxes */
    .message {
        padding: 12px 15px;
        font-size: 13px;
        flex-wrap: wrap;
        word-wrap: break-word;
    }
    
    /* Loading states */
    .loading {
        padding: 40px 20px;
        font-size: 14px;
    }
    
    /* Code blocks op mobiel */
    code {
        font-size: 11px;
        word-break: break-all;
        display: inline-block;
        max-width: 100%;
    }
    
    /* Pre blocks */
    pre {
        font-size: 11px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px;
        max-width: 100%;
    }
    
    /* Details/summary op mobiel */
    details {
        width: 100%;
    }
    
    summary {
        padding: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Checkbox groups */
    .checkbox-group {
        padding: 12px;
        min-height: 44px;
    }
    
    /* User cards responsive */
    .user-card {
        flex-wrap: wrap;
    }
    
    .user-card > div {
        width: 100%;
    }
    
    .user-card button {
        width: 100%;
        margin-top: 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px; /* Voorkomt zoom op iOS */
        padding: 12px;
        width: 100%;
    }
    
    /* Search en button containers - alleen op mobiel */
    div[style*="display: flex"][style*="gap"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    div[style*="display: flex"] input[type="text"],
    div[style*="display: flex"] input[type="search"],
    div[style*="display: flex"] button,
    div[style*="display: flex"] a.btn {
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }
    
    /* Search input specifiek */
    input[type="text"][id*="search"],
    input[type="text"][id*="Search"],
    input[placeholder*="Zoek"] {
        font-size: 16px; /* Voorkomt zoom op iOS */
        padding: 12px;
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    /* Button groups op mobiel */
    div[style*="display: flex"][style*="gap"] button {
        margin-bottom: 10px;
    }
    
    div[style*="display: flex"][style*="gap"] button:last-child {
        margin-bottom: 0;
    }
    
    /* Form rows op mobiel */
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .section h2 {
        font-size: 18px;
    }
    
    .footer {
        padding: 15px 20px;
        font-size: 12px;
    }
    
    /* Betere touch targets */
    .btn,
    .tab,
    .settings-tab,
    button {
        min-height: 44px; /* Apple's aanbevolen touch target size */
        touch-action: manipulation; /* Voorkomt dubbel-tap zoom */
    }
    
    /* Scroll gedrag verbeteren */
    .tab-content,
    .settings-tab-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Badges kleiner op mobiel */
    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Data cards op mobiel */
    .data-card {
        padding: 15px;
    }
    
    .data-card .value {
        font-size: 24px;
    }
    
    /* Paginering buttons op mobiel */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination button,
    .pagination a {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    
    .header-left img {
        height: 50px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .container {
        padding: 0 5px;
        margin: 10px auto;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .value {
        font-size: 24px;
    }
    
    .stat-card h3 {
        font-size: 11px;
    }
    
    .card {
        padding: 15px 10px;
    }
    
    .tab {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .tab-content {
        padding: 15px 10px;
    }
    
    .btn {
        padding: 12px;
        font-size: 14px;
        min-height: 44px;
    }
    
    table {
        font-size: 11px;
    }
    
    th, td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    th:first-child,
    td:first-child {
        min-width: 100px;
    }
    
    td .btn {
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
    }
    
    .modal-content {
        width: 98%;
        padding: 15px 10px;
        margin: 2% auto;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-card .value {
        font-size: 22px;
    }
    
    .stat-card h3 {
        font-size: 10px;
    }
    
    .card-header h2 {
        font-size: 16px;
    }
    
    .section h2 {
        font-size: 16px;
    }
    
    /* Extra compact op zeer kleine schermen */
    .card-header h2 {
        font-size: 16px;
    }
    
    .card-header h3 {
        font-size: 14px;
    }
    
    /* Smaller badges */
    .badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    /* Compact user cards */
    .user-card h4 {
        font-size: 14px;
    }
    
    .user-card p {
        font-size: 11px;
    }
    
    /* Compact forms */
    label {
        font-size: 13px;
    }
    
    small {
        font-size: 11px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Footer Styles */
.footer {
    background: var(--white);
    padding: 20px 30px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    text-align: center !important;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    width: 100%;
    display: block;
}

.footer p {
    margin: 0;
    color: var(--text-secondary);
    text-align: center !important;
}

.main-content {
    flex: 1;
}

