:root {
    --primary-color: #3c92e2;
    --secondary-color: #6b6b6b;
    --text-color: #000;
    --light-color: #fff;
    --dark-color: #002a52;
    --danger-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --border-color: #bbdeff;
    --gold-color: #dec879;
    --gold-dark: #695008;
    --gold-darker: #574824;
    --gray-light: #f8f9fa;
    --gray-border: #ddd;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
}

@font-face {
    font-family: 'UniQAIDAR_Blawkrawe005';
    src: url('./unifonts/UniQAIDAR_Blawkrawe005.eot');
    src: url('./unifonts/UniQAIDAR_Blawkrawe005.eot') format('embedded-opentype'),
         url('./unifonts/UniQAIDAR_Blawkrawe005.woff2') format('woff2'),
         url('./unifonts/UniQAIDAR_Blawkrawe005.woff') format('woff'),
         url('./unifonts/UniQAIDAR_Blawkrawe005.ttf') format('truetype'),
         url('./unifonts/UniQAIDAR_Blawkrawe005.svg#UniQAIDAR_Blawkrawe005') format('svg');
}

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

body {
    font-family: 'UniQAIDAR_Blawkrawe005', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e9ecef;
    padding: 20px;
    direction: rtl;
}

.enfont {
    font-family: Verdana;
    font-size: 14px;
    font-weight: bold !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== BUTTONS ========== */
button, .print-btn, .btn-save, .btn-move, .btn-view, .btn-print {
    background: var(--secondary-color);
    color: var(--light-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}
.sansfont {
	font-family: sans-serif;
	font-weight: bold !important;
}

button:hover, .print-btn:hover, .btn-save:hover, .btn-move:hover {
    background: #959595;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    margin: 2px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.btn {
    padding: 6px 15px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    }

.btn-edit { background: var(--primary-color); color: white; }
.btn-reset { background: var(--success-color); color: white; }
.btn-delete { background: var(--danger-color); color: white; }
.btn-approve { background: var(--success-color); }
.btn-reject { background: var(--danger-color); }
.btn-change-password { background: var(--gold-dark); }
.btn-change-password:hover { background: #8b723a; }

/* ========== EDIT FORM ========== */
.edit-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.edit-form input, .edit-form select {
    padding: 5px 8px;
    margin-bottom: 0;
    width: auto;
}
.edit-form button {
    padding: 5px 10px;
    margin-top: 0;
    font-size: 0.8rem;
}

/* ========== VEHICLE STYLES ========== */
.vehicle-row, .request-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}
.vehicle-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.vehicle-card {
    border: 1px solid var(--gold-color);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--light-color);
}
.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.vehicle-plate {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-darker);
}

/* ========== BADGES & STATUS ========== */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
}
.status-active, .badge-approved { background: var(--success-color); color: white; }
.status-inactive, .badge-rejected { background: var(--secondary-color); color: white; }
.status-pending, .badge-pending { background: var(--warning-color); color: white; }
.role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    background: var(--gold-dark);
}
.role-badge-employee { background: var(--success-color); }
.role-badge-admin { background: var(--danger-color); }
.role-admin { background: #e74c3c20; color: #e74c3c; }
.role-hr { background: #3498db20; color: #3498db; }
.role-employee { background: #27ae6020; color: #27ae60; }

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
}
.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    margin: 100px auto;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.modal-header h3 { margin: 0; color: var(--gold-darker); }
.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}
.close-modal:hover { color: var(--danger-color); }

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

/* ========== FORM STYLES ========== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}
.form-group label .optional {
    font-weight: normal;
    color: #999;
    font-size: 0.8rem;
}
.form-group input, .form-group select, .modal-content input, .modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    font-size: 14px;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold-dark);
}
.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 150px;
}
.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.help-text {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* ========== PROFILE & INFO CARDS ========== */
.profile-details-container, .profile-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.info-card, .profile-card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}
.info-card h3, .profile-header {
    color: var(--gold-darker);
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.profile-header {
    text-align: center;
}
.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.info-label {
    width: 160px;
    font-weight: bold;
    color: #555;
}
.info-value {
    flex: 1;
    color: #333;
}
.user-selector {
    background: var(--gray-light);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.user-selector select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--gray-border);
    min-width: 200px;
}

/* ========== SECTION TITLES ========== */
.section-title {
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gold-color);
    color: var(--gold-dark);
    font-size: 1.1rem;
}
.form-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ========== SIGNATURE ========== */
.signature-area {
    border: 2px dashed var(--gold-color);
    padding: 20px;
    text-align: center;
    margin: 15px 0;
}
.signature-preview {
    max-width: 300px;
    margin-top: 10px;
}
.hidden-field { display: none; }

/* ========== MESSAGES ========== */
.success-msg, .success {
    background: var(--success-color);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.error {
    background: var(--danger-color);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.note {
    background: var(--warning-color);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* ========== TABLES ========== */
.table-container {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.data-table th, .data-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: right;
    font-weight: normal;
}
.data-table th {
    background: var(--primary-color);
    color: white;
}
.data-table tr:nth-child(even) {
    background: #f9f9f9;
}
.actions-cell {
    white-space: nowrap;
}

/* ========== REQUEST CARDS ========== */
.request-card {
    border-right: 5px solid var(--warning-color);
}
.request-card.approved { border-right-color: var(--success-color); }
.request-card.rejected { border-right-color: var(--danger-color); }
.request-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.employee-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-dark);
}
.request-date {
    color: #888;
    font-size: 0.9rem;
}
.request-details {
    margin: 10px 0;
}
.request-details span {
    display: inline-block;
    margin-left: 15px;
}
.comment-box {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--gray-border);
    border-radius: 5px;
}

/* ========== TABS ========== */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-btn {
    background: var(--gold-dark);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    color: white;
}
.tab-btn.active {
    background: #8b723a;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.stat-card {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 120px;
    box-shadow: var(--shadow-sm);
}
.stat-card.pending { border-right: 4px solid var(--warning-color); }
.stat-card.approved { border-right: 4px solid var(--success-color); }
.stat-card.rejected { border-right: 4px solid var(--danger-color); }
.stat-card.total { border-right: 4px solid #3498db; }
.stat-number {
    font-size: 28px;
    font-weight: bold;
}

/* ========== FILE MANAGEMENT ========== */
.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    min-height: 400px;
}
.file-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    width: 180px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.folder-card {
    background: #f8f6e8;
    border: 1px solid var(--gold-color);
}
.folder-card:hover {
    background: #f0ecd8;
}
.file-icon {
    font-size: 52px;
    margin-bottom: 10px;
}
.file-name {
    font-size: 13px;
    word-break: break-word;
    margin: 10px 0;
    font-weight: bold;
    color: #333;
}
.file-info {
    font-size: 10px;
    color: #888;
    margin: 5px 0;
}
.breadcrumb {
    background: var(--gray-light);
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    font-size: 14px;
}
.breadcrumb a {
    color: var(--gold-dark);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.upload-area {
    background: var(--gray-light);
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.upload-area:hover {
    border-color: var(--gold-dark);
    background: #fef9e6;
}
.btn-download {
    background: var(--success-color);
    display: inline-block;
    padding: 5px 12px;
    margin-top: 8px;
    border-radius: 20px;
    font-size: 11px;
    color: white;
    text-decoration: none;
}
.btn-download:hover {
    background: #219a52;
}
.action-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.move-icon {
    color: #3498db;
    background: #e8f4f8;
}
.delete-icon {
    color: var(--danger-color);
    background: #fde8e6;
}
.folder-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    font-size: 14px;
    margin: 15px 0;
}
.current-file-info {
    background: #f0f2f5;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    word-break: break-word;
}
.empty-folder {
    background: var(--gray-light);
    text-align: center;
    padding: 50px;
    border-radius: 12px;
    color: #888;
}

/* ========== EMPLOYEE GRID ========== */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.employee-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s;
    border: 1px solid #eef2f5;
}
.employee-card:hover { 
    transform: translateY(-3px); 
    border-color: var(--gold-color); 
}
.employee-name { 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: var(--gold-darker); 
    margin: 12px 0 6px; 
}
.employee-username {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}
.card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-view {
    background: var(--primary-color);
    padding: 6px 15px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
}
.btn-view:hover { background: #8b723a; }
.btn-print {
    background: var(--success-color);
    margin-left: 5px;
}
.refresh-btn {
    background: #333933;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-right: 10px;
}
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold-dark);
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}

/* ========== PRINT STYLES ========== */
.print-container {
    max-width: 1200px;
    margin: 0 auto;
}
.print-page {
    max-width: 210mm;
    min-height: 297mm;
    background: white;
    margin: 0 auto;
    padding: 15mm;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    position: relative;
}
.page {
    width: 210mm;
    min-height: 297mm;
    background: white;
    margin: 0 auto 20px auto;
    position: relative;
    page-break-after: always;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 15px;
}
.page:last-child {
    page-break-after: auto;
}
.page-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-color);
}
.page-header h2 {
    color: var(--gold-darker);
}
.header-print {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--gold-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.company-info {
    text-align: center;
    flex: 1;
}
.company-info h1 {
    color: var(--gold-darker);
    font-size: 1.3rem;
}
.print-date {
    text-align: right;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 20px;
}
.page-title {
    text-align: center;
    margin-bottom: 25px;
}
.info-section {
    margin-bottom: 25px;
    break-inside: avoid;
    page-break-inside: avoid;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}
.full-width {
    grid-column: span 2;
}
.footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.print-btn-container {
    text-align: center;
    margin-bottom: 20px;
}
.print-layout-btn {
    background: #16a085;
    margin-bottom: 20px;
}

/* ========== IMAGE GRID FOR PRINT ========== */
.image-grid {
    position: relative;
    width: 100%;
    min-height: 260mm;
}
.image-slot {
    position: absolute;
    border: 2px solid var(--gold-color);
    background: #fafafa;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: move;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.image-slot:hover {
    border-color: var(--gold-dark);
    background: #fef9e6;
}
.image-slot img {
    max-width: 100%;
    max-height: calc(100% - 10px);
    object-fit: contain;
}
.image-slot .empty-label {
    color: #999;
    font-size: 11px;
    text-align: center;
    padding: 10px;
}
.slot-label {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
}
.slot-checkbox {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 20;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--gray-border);
}
.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: var(--gold-dark);
    cursor: nw-resize;
    border-radius: 3px 0 0 0;
    z-index: 15;
}
.controls {
    text-align: center;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding: 12px;
    border-bottom: 2px solid var(--gold-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.controls button {
    background: var(--gold-dark);
}
.controls button:hover {
    background: #8b723a;
}
.controls .reset-btn {
    background: var(--danger-color);
}
.controls .print-btn {
    background: var(--success-color);
}
.controls .hide-all-btn {
    background: var(--warning-color);
}
.doc-selector-panel {
    background: var(--gray-light);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}
.doc-selector-panel label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid var(--gray-border);
}

/* ========== DOCUMENTS ========== */
.docs-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.doc-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}
.doc-card:hover {
    transform: translateY(-3px);
}
.doc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 12px;
    margin-bottom: 15px;
}
.doc-icon {
    font-size: 32px;
}
.doc-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-darker);
}
.doc-preview {
    text-align: center;
    margin: 15px 0;
    min-height: 120px;
}
.doc-preview img, .doc-preview .pdf-preview {
    max-width: 100%;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.doc-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}
.doc-status {
    font-size: 11px;
    color: var(--success-color);
    margin-top: 8px;
}
.doc-status.missing {
    color: var(--danger-color);
}
.document-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.doc-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

/* ========== LOGIN & HEADER ========== */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.header {
	border:1px solid  var(--primary-color);
    background: var(--light-color);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.header .logo {
    display: flex;
    align-items: center;
}
.header .logo img {
    height: 50px;
    width: auto;
}
.header .title-section {
    text-align: right;
    flex-grow: 1;
}
.header h1 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: #d90000;
}
h3 {font-weight: normal;}
.greenbg { background: #16a085; }
.darkgraybg { background: #6b6b6b; }


.spanrequest {
        color: #3c92e2;
        font-family: sans-serif;
        font-weight: 600;
}

/* ========== NAVBAR ========== */
.nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    width: 100%;
}
.nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    background: var(--primary-color);
    border-radius: 5px;
    border: 1px solid var(--primary-color);
}
.nav a:hover {
    background: white;
    color: var(--primary-color);
}
.navbar {
    background: var(--dark-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}
.navbar-logo img {
    height: 45px;
    width: auto;
    transition: transform 0.2s;
}
.navbar-logo span {
    color: white;
    font-size: 18px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
}
.dropdown {
    position: relative;
}
.dropdown-btn {
    background: transparent;
    color: #ecf0f1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
}
.dropdown-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    color: white;
}
.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 8px 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}
.dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-content a {
    color: #2c3e50;
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.dropdown-content a:hover {
    background: #f0f7fe;
    border-right-color: var(--primary-color);
}
.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.nav-link:hover {
    background: rgba(52, 152, 219, 0.2);
    color: white;
}
.nav-link.active {
    background: var(--primary-color);
    color: white;
}
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 40px;
    margin-right: 8px;
}
.user-badge span {
    color: white;
    font-size: 13px;
}
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

/* ========== FILTER BAR ========== */
.filter-bar {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ========== TRIP FORM ========== */
.trip-form, .simple-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.trip-form label, .simple-form label {
    display: block;
    margin: 10px 0 5px 0;
    font-weight: bold;
}
.trip-form input, .trip-form select, .simple-form input, .simple-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 2px;
}

/* ========== REPORT HEADER ========== */
.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 15px;
}
.report-logo img {
    height: 65px;
    width: auto;
}
.report-title {
    flex-grow: 1;
    text-align: right;
}
.report-title h1 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}
.report-title p {
    margin: 5px 0 0 0;
    color: var(--gold-dark);
    font-size: 1.2rem;
}

/* ========== DIVIDER ========== */
.divider {
    height: 1px;
    background: #e9ecef;
    margin: 20px 0;
}
.note-info {
    background: #e8f4f8;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #2c3e50;
    margin-top: 15px;
}
.current-folder-title {
    background: var(--gold-dark);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 15px 0 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 5px;
    }
    .nav-menu.show {
        display: flex;
    }
    .dropdown {
        width: 100%;
    }
    .dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: 12px;
        margin-top: 4px;
        display: none;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .dropdown-content a {
        color: #ecf0f1;
        padding: 12px 20px 12px 30px;
    }
    .nav-link {
        width: 100%;
    }
    .user-badge {
        margin: 8px 0 0;
        justify-content: center;
        background: rgba(255,255,255,0.05);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .profile-container, .profile-details-container {
        flex-direction: column;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-label {
        width: 120px;
    }
    .print-page {
        padding: 10mm;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 12px;
    }
    .navbar-logo span {
        font-size: 14px;
    }
    .navbar-logo img {
        height: 35px;
    }
}

/* ========== PRINT MEDIA ========== */
@media print {
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    .navbar, .nav, .filter-bar, .print-btn, button, .header .nav, .note,
    .controls, .doc-selector-panel, .print-btn-container {
        display: none !important;
    }
    .nochap, .header { display: none !important; }
    .container {
        padding: 0;
        margin: 0;
    }
    .print-page {
        box-shadow: none;
        padding: 10mm;
        margin: 0;
    }
    .data-table, .print-table {
        width: 100%;
        border: 1px solid #000;
    }
    .data-table th, .data-table td {
        border: 1px solid #000;
        padding: 4px 10px 0 10px;
        font-size: 13px;
    }
    .info-grid {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .image-grid {
        min-height: 0;
    }
    .image-slot {
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        overflow: visible;
    }
    .slot-checkbox, .slot-label, .resize-handle, .empty-label {
        display: none !important;
    }
    .image-slot img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }
    .image-slot:not(:has(img)) {
        display: none !important;
    }
    .page {
        box-shadow: none;
        margin: 0;
        padding: 10px;
        page-break-after: avoid;
        border: none;
    }
    .page-header {
        display: none !important;
    }
    .report-content {
        margin-top: 0;
    }
}