/* css/style.css - نظام إدارة الدورات التدريبية */
/* Training Course Management System - v1.0 */

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --bg: #f1f5f9;
    --text: #1e293b;
    --white: #ffffff;
    --border: #cbd5e1;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    direction: rtl;
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* شاشة تسجيل الدخول */
/* ═══════════════════════════════════════════════════════════════════════════ */

#login-screen {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#login-screen .login-card {
    width: 400px;
    text-align: center;
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#login-screen .logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

#login-screen .logo i {
    font-size: 36px;
    color: white;
}

#login-screen h2 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 24px;
}

#login-screen input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    font-family: 'Tajawal';
}

#login-screen input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#login-screen .btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Tajawal';
}

#login-screen .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

#login-msg {
    color: var(--danger);
    margin-top: 15px;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* التخطيط الرئيسي */
/* ═══════════════════════════════════════════════════════════════════════════ */

#app-container {
    width: 100%;
    height: 100vh;
    display: flex;
}

.sidebar {
    width: 280px;
    background: var(--white);
    border-left: 1px solid var(--border);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

.sidebar-header {
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-header h3 {
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #64748b;
    font-size: 12px;
}

.user-info {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.user-info .user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 20px;
}

.user-info .user-name {
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
}

.user-info .user-role {
    font-size: 12px;
    color: #64748b;
    background: #e2e8f0;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

.user-info .user-role.manager {
    background: #fef3c7;
    color: #92400e;
}

.nav-item {
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    color: #64748b;
    font-weight: 600;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s;
}

.nav-item:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateX(-5px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.nav-item i {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 15px 10px;
}

.nav-section-title {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    padding: 10px 18px 5px;
    text-transform: uppercase;
}

.logout-btn {
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--danger);
    font-weight: 600;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: 0.3s;
    background: #fef2f2;
}

.logout-btn:hover {
    background: #fee2e2;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* المحتوى الرئيسي */
/* ═══════════════════════════════════════════════════════════════════════════ */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* البطاقات */
/* ═══════════════════════════════════════════════════════════════════════════ */

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary-light);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* بطاقات الإحصائيات */
/* ═══════════════════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(30%, -30%);
}

.stat-card.primary::before {
    background: var(--primary);
}

.stat-card.success::before {
    background: var(--success);
}

.stat-card.warning::before {
    background: var(--warning);
}

.stat-card.info::before {
    background: var(--info);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.stat-card.primary .stat-icon {
    background: #dbeafe;
    color: var(--primary);
}

.stat-card.success .stat-icon {
    background: #d1fae5;
    color: var(--success);
}

.stat-card.warning .stat-icon {
    background: #fef3c7;
    color: var(--warning);
}

.stat-card.info .stat-icon {
    background: #cffafe;
    color: var(--info);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* عناصر النماذج */
/* ═══════════════════════════════════════════════════════════════════════════ */

label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Tajawal';
    font-size: 15px;
    background: #fff;
    transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* الأزرار */
/* ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Tajawal';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, var(--danger));
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #d97706, var(--warning));
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: #64748b;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* الجداول */
/* ═══════════════════════════════════════════════════════════════════════════ */

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #f8fafc;
    padding: 15px;
    text-align: right;
    font-weight: 700;
    color: #475569;
    font-size: 13px;
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

table tbody tr {
    transition: all 0.2s;
}

table tbody tr:hover {
    background: #f8fafc;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* الشارات والحالات */
/* ═══════════════════════════════════════════════════════════════════════════ */

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-progress {
    background: #dbeafe;
    color: #1e40af;
}

.badge-completed {
    background: #d1fae5;
    color: #065f46;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-partial {
    background: #fef3c7;
    color: #d97706;
}

.badge-secondary {
    background: #e2e8f0;
    color: #64748b;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
}

.status-dot.pending {
    background: var(--warning);
}

.status-dot.progress {
    background: var(--primary-light);
}

.status-dot.completed {
    background: var(--success);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* المودال */
/* ═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: white;
    padding: 30px;
    width: 500px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.3s ease-out;
}

.modal-box.large {
    width: 700px;
}

.modal-box.xlarge {
    width: 950px;
}

.modal-box.fullscreen {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.modal-box.fullscreen .modal-header {
    padding: 12px 25px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.modal-box.fullscreen .modal-footer {
    padding: 12px 25px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.modal-box.fullscreen form {
    flex: 1;
    overflow-y: auto;
    padding: 8px 25px 15px 25px;
    max-height: calc(100vh - 100px);
}

/* Compact styles for fullscreen modal */
.modal-box.fullscreen .form-section-title {
    padding: 6px 10px;
    margin: 6px 0 6px 0;
    font-size: 12px;
}

.modal-box.fullscreen .form-section-title:first-child {
    margin-top: 0;
}

.modal-box.fullscreen .form-group {
    margin-bottom: 8px;
}

.modal-box.fullscreen .form-group label {
    margin-bottom: 3px;
    font-size: 12px;
}

.modal-box.fullscreen .form-group input,
.modal-box.fullscreen .form-group select,
.modal-box.fullscreen .form-group textarea {
    padding: 6px 10px;
    font-size: 13px;
}

.modal-box.fullscreen .form-row,
.modal-box.fullscreen .form-row-3 {
    gap: 10px;
    margin-bottom: 8px;
}

.modal-box.fullscreen textarea {
    min-height: 50px;
}

@keyframes modalIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #fee2e2;
    color: var(--danger);
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* بطاقات الدورات */
/* ═══════════════════════════════════════════════════════════════════════════ */

.course-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.course-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.course-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.course-trainer {
    font-size: 14px;
    color: #64748b;
    margin-top: 5px;
}

.course-trainer i {
    margin-left: 5px;
    color: var(--primary-light);
}

.course-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 15px;
}

.course-info-item {
    text-align: center;
}

.course-info-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

.course-info-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.course-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* بطاقة المهمة (للموظف) */
/* ═══════════════════════════════════════════════════════════════════════════ */

.task-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 2px solid var(--border);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.task-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.task-card.urgent {
    border-color: var(--warning);
    background: linear-gradient(135deg, #fffbeb, #fff);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.task-course-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.task-trainer {
    font-size: 15px;
    color: #64748b;
    margin-top: 8px;
}

.task-days {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
}

.task-days-value {
    font-size: 32px;
    font-weight: 800;
}

.task-days-label {
    font-size: 12px;
    opacity: 0.9;
}

.btn-complete {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: 'Tajawal';
}

.btn-complete:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-complete.completed {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* صفحة فارغة */
/* ═══════════════════════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #64748b;
}

.empty-state p {
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* التبويبات */
/* ═══════════════════════════════════════════════════════════════════════════ */

.tabs {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: fit-content;
}

.tab {
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s;
}

.tab:hover {
    background: white;
}

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* تحميل */
/* ═══════════════════════════════════════════════════════════════════════════ */

.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.loading i {
    font-size: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    display: block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* فلاتر */
/* ═══════════════════════════════════════════════════════════════════════════ */

.filters-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 5px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* التوست (إشعارات) */
/* ═══════════════════════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-right: 4px solid var(--success);
}

.toast.error {
    border-right: 4px solid var(--danger);
}

.toast.warning {
    border-right: 4px solid var(--warning);
}

.toast.info {
    border-right: 4px solid var(--info);
}

.toast i {
    font-size: 20px;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info i {
    color: var(--info);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Responsive */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        right: -300px;
        height: 100vh;
        transition: right 0.3s;
        z-index: 100;
    }

    .sidebar.open {
        right: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .course-info {
        grid-template-columns: 1fr;
    }

    .modal-box {
        width: 95%;
        margin: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* طباعة */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media print {

    .sidebar,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Autocomplete */
/* ═══════════════════════════════════════════════════════════════════════════ */

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item.disabled {
    color: #94a3b8;
    cursor: default;
    font-style: italic;
    text-align: center;
    justify-content: center;
}

.autocomplete-item.disabled:hover {
    background: white;
    color: #94a3b8;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Form Section Titles */
/* ═══════════════════════════════════════════════════════════════════════════ */

.form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-section-title i {
    color: var(--primary-light);
}