/* MDT System Styles - Danish Localization - Dark Theme - Optimized for Performance */

* {
    box-sizing: border-box;
}

body {
    background: #1a1a2e;
    position: relative;
    overflow-x: hidden;
    /* Optimize rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

.mdt-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Header */
.mdt-header {
    background: rgba(255, 255, 255, 0.05);
    /* backdrop-filter: blur(20px); */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
}

.logo-small::before {
    content: 'MDT';
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.header-title h1 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.department-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 15px;
}

.department-badge.police {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.department-badge.medical {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.department-badge.lawyer {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* FiveM Status Indicator */
.fivem-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    /* backdrop-filter: blur(10px); */
}

.status-indicator {
    font-size: 8px;
    transition: background-color 0.2s ease;
}

.status-indicator.online {
    color: #22c55e;
    animation: pulse-green 2s infinite;
}

.status-indicator.offline {
    color: #ef4444;
}

.status-indicator.syncing {
    color: #f59e0b;
    animation: spin 1s linear infinite;
}

.status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

#syncBtn {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#syncBtn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

#syncBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.user-info i {
    color: #667eea;
}

/* Navigation */
.mdt-nav {
    background: rgba(255, 255, 255, 0.03);
    /* backdrop-filter: blur(10px); */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 30px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-tab {
    padding: 18px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: background-color 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.nav-tab.active {
    color: white;
    border-bottom-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    pointer-events: none;
}

.nav-tab i {
    font-size: 16px;
}

/* Content Area */
.mdt-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: transparent;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.08);
    /* backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.dashboard-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.dashboard-card-icon.police {
    background: #007bff;
}

.dashboard-card-icon.medical {
    background: #28a745;
}

.dashboard-card-icon.lawyer {
    background: #6f42c1;
}

.dashboard-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.dashboard-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.dashboard-card-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search and Filter Bar */
.search-filter-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* backdrop-filter: blur(10px); */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input input {
    padding-left: 40px;
}

.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.filter-select {
    min-width: 150px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Data Tables */
.data-table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* backdrop-filter: blur(10px); */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* backdrop-filter: blur(10px); */
}

.table-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 10px;
}

/* Form Sections */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* backdrop-filter: blur(10px); */
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-indicator.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-indicator.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-indicator.completed {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 8px 16px;
    border: 1px solid #e1e5e9;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* backdrop-filter: blur(10px); */
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-action-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: rgba(255, 255, 255, 0.05);
    /* backdrop-filter: blur(20px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mdt-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-left,
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .mdt-nav {
        padding: 0 20px;
    }
    
    .mdt-content {
        padding: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal {
        margin: 10px;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .mdt-content {
        padding: 15px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .quick-actions {
        flex-direction: column;
    }
}

/* Card Header Styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    margin: 0;
    color: white;
}

/* Status Badge Styles */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.paid {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.overdue {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.cancelled {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-badge.maintenance {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.out_of_service {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.clean {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Search Box Styles */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 40px 8px 15px;
    color: white;
    font-size: 14px;
    width: 300px;
    transition: background-color 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box i {
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table Info */
.table-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.search-info {
    color: #007bff;
    font-weight: 500;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination .btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.pagination .btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Notice Board Styles */
.notice-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.notice-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.notice-item.priority-high {
    border-left: 4px solid #ef4444;
}

.notice-item.priority-urgent {
    border-left: 4px solid #dc2626;
    background: rgba(239, 68, 68, 0.05);
}

.notice-item.priority-medium {
    border-left: 4px solid #fbbf24;
}

.notice-item.priority-low {
    border-left: 4px solid #22c55e;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notice-header h4 {
    margin: 0;
    color: white;
}

.notice-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.notice-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-date,
.notice-department {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.notice-actions {
    display: flex;
    gap: 8px;
}

/* Profile Styles */
.profile-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.profile-item span {
    color: white;
}

/* Button Styles */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Form Elements Dark Theme */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: background-color 0.2s ease;
    /* backdrop-filter: blur(10px); */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #1a1a1a;
    color: white;
}

/* Table Dark Theme */
.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    /* backdrop-filter: blur(10px); */
}

.table th {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Container */
.table-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    /* backdrop-filter: blur(10px); */
    /* Optimize scrolling performance */
    -webkit-overflow-scrolling: touch;
    contain: layout style paint;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* New clean form styles */
.form-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.form-header h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.form-header h4 i {
    margin-right: 8px;
    color: #007bff;
}

.form-header .text-muted {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.form-section h5 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-section h5 i {
    margin-right: 8px;
    color: #007bff;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.certificate-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.certificate-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.certificate-item input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
}

.certificate-item input[type="checkbox"]:checked + .certificate-name {
    color: #007bff;
    font-weight: 600;
}

.certificate-name {
    font-size: 14px;
    color: #495057;
    transition: color 0.2s ease;
}

/* Citizen Profile System Styles */
.citizen-profile-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #0f172a;
    color: #f1f5f9;
    min-height: 100vh;
}

.citizen-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.citizen-profile-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

.citizen-profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    min-height: 600px;
}

.citizen-details-panel {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.citizen-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.citizen-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.citizen-avatar i {
    font-size: 80px;
    color: #6c757d;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.avatar-upload-btn:hover {
    background: #0056b3;
}

.citizen-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.citizen-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.info-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section h4 i {
    color: #007bff;
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.info-item span {
    color: #6c757d;
    text-align: right;
}

.license-points {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.license-points.clean {
    background: #d4edda;
    color: #155724;
}

.license-points.has-points {
    background: #f8d7da;
    color: #721c24;
}

.license-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.license-status.active {
    background: #d4edda;
    color: #155724;
}

.license-status.suspended {
    background: #f8d7da;
    color: #721c24;
}

.notes-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: #007bff;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.criminal-records-panel {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.panel-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h3 i {
    color: #007bff;
}

.records-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.records-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.records-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

.records-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.yes {
    background: #d4edda;
    color: #155724;
}

.status-badge.no {
    background: #f8d7da;
    color: #721c24;
}

.no-records {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

/* Citizen Search Styles */
.citizen-search-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #0f172a;
    color: #f1f5f9;
    min-height: 100vh;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h2 {
    margin: 0 0 10px 0;
    color: #f1f5f9;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-header h2 i {
    color: #06b6d4;
}

.search-header p {
    margin: 0;
    color: #94a3b8;
    font-size: 1rem;
}

.search-controls {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #334155;
    border-radius: 25px;
    font-size: 16px;
    background: #1e293b;
    color: #f1f5f9;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #06b6d4;
    font-size: 18px;
}

.citizens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.citizen-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #f1f5f9;
}

.citizen-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #06b6d4;
    background: #334155;
}

.citizen-card-avatar {
    flex-shrink: 0;
}

.citizen-card-avatar i {
    font-size: 48px;
    color: #06b6d4;
}

.citizen-card-info {
    flex: 1;
}

.citizen-card-info h4 {
    margin: 0 0 8px 0;
    color: #f1f5f9;
    font-size: 1.2rem;
    font-weight: 600;
}

.citizen-card-info p {
    margin: 4px 0;
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.citizen-card-info p i {
    width: 16px;
    color: #06b6d4;
    font-size: 14px;
}

.citizen-card-status {
    flex-shrink: 0;
    text-align: right;
}

.citizen-card-status .license-points {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    background: #10b981;
    color: white;
}

.criminal-records-indicator {
    margin-top: 8px;
    padding: 4px 8px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.criminal-records-indicator i {
    font-size: 10px;
}

/* License Section Styles */
.licenses-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.license-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.license-item:hover {
    background: #475569;
    border-color: #06b6d4;
    transform: translateY(-1px);
}

.license-item i {
    color: #06b6d4;
    font-size: 16px;
}

.license-name {
    flex: 1;
    font-weight: 600;
    color: #f1f5f9;
    font-size: 15px;
}

.license-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.license-status.active {
    background: #10b981;
    color: white;
}

.no-licenses {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    justify-content: center;
}

.no-licenses i {
    color: #94a3b8;
    font-size: 16px;
}

/* Conditional License Styles */
.license-item.conditional {
    background: #334155;
    border-color: #f59e0b;
    border-width: 2px;
}
.license-item.conditional:hover {
    background: #475569;
}
.license-item.conditional i {
    color: #f59e0b;
}
.license-item.conditional .license-name {
    color: #f1f5f9;
}
.license-status.conditional {
    background: #f59e0b;
    color: white;
}
.no-licenses.revoked {
    background: #334155;
    border-color: #ef4444;
    color: #ef4444;
    font-weight: 600;
}

/* License Status Indicators */
.license-points.unconditional-revocation {
    background: #ef4444;
    color: white;
    font-weight: 700;
}
.license-points.conditional-revocation {
    background: #f59e0b;
    color: white;
    font-weight: 700;
}
.license-status.unconditional-revocation {
    background: #ef4444;
    color: white;
    font-weight: 700;
}
.license-status.conditional-revocation {
    background: #f59e0b;
    color: white;
    font-weight: 700;
}
.license-status.warning {
    background: #f59e0b;
    color: white;
    font-weight: 600;
}

/* License Alert Badges */
.license-alert {
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.license-alert.unconditional {
    background: #ef4444;
    color: white;
}
.license-alert.conditional {
    background: #f59e0b;
    color: white;
}

/* License Warning Section */
.license-warning {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 12px;
    background: #1e293b;
    border: 1px solid #ef4444;
    border-radius: 8px;
}
.warning-text {
    color: #ef4444;
    font-weight: 600;
    font-size: 13px;
}

/* Vehicle Section Styles */
.vehicles-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}
.vehicle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.vehicle-item:hover {
    background: #334155;
    border-color: #475569;
    transform: translateY(-1px);
}
.vehicle-item i {
    color: #3b82f6;
    font-size: 18px;
}
.vehicle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vehicle-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 15px;
}
.vehicle-plate {
    color: #94a3b8;
    font-size: 13px;
}
.vehicle-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.vehicle-status.active {
    background: #10b981;
    color: white;
}
.vehicle-status.stored {
    background: #ef4444;
    color: white;
}

/* Property Section Styles */
.properties-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}
.property-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.property-item:hover {
    background: #334155;
    border-color: #475569;
    transform: translateY(-1px);
}
.property-item i {
    color: #f59e0b;
    font-size: 18px;
}
.property-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.property-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 15px;
}
.property-price {
    color: #94a3b8;
    font-size: 13px;
}
.property-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.property-status.owned {
    background: #10b981;
    color: white;
}
.property-status.rented {
    background: #3b82f6;
    color: white;
}

/* No Items Styling */
.no-items {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    justify-content: center;
}
.no-items i {
    color: #94a3b8;
    font-size: 16px;
}

/* Clean Dark Theme for Citizen Profile */
.citizen-profile-container .info-section {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.citizen-profile-container .info-section h4 {
    color: #f1f5f9;
    border-bottom: 1px solid #334155;
    background: #334155;
    margin: 0;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

.citizen-profile-container .info-item label {
    color: #94a3b8;
    font-weight: 500;
}

.citizen-profile-container .info-item span {
    color: #f1f5f9;
    font-weight: 600;
}

.citizen-profile-container .license-item {
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.citizen-profile-container .license-item:hover {
    background: #475569;
    border-color: #06b6d4;
    transform: translateY(-1px);
}

.citizen-profile-container .license-item i {
    color: #06b6d4;
}

.citizen-profile-container .license-name {
    color: #f1f5f9;
}

.citizen-profile-container .no-licenses {
    background: #334155;
    border: 1px solid #475569;
    color: #94a3b8;
    border-radius: 8px;
}

.citizen-profile-container .no-licenses i {
    color: #94a3b8;
}
