@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

body {
    font-family: 'Vazirmatn', 'Noto Naskh Arabic', sans-serif;
}

p {
    text-align: justify;
    text-justify: inter-word;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    pointer-events: auto;
}

.sticky {
    transform: translateZ(0);
}

#slider .slider-dot,
#slider .sdot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, .55);
    border: 2px solid transparent;
    outline: none;
    display: inline-block;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

#slider .sdot--active {
    background-color: rgba(255, 255, 255, .95);
    border-color: rgba(255, 255, 255, .95);
}

.gradient-bg {
    background: linear-gradient(135deg, #005397 0%, #0085ca 100%);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.faq-content {
    transition: all 0.3s ease;
}

.faq-content:not(.hidden) {
    animation: fadeIn 0.3s ease;
}

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

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.input-valid {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    font-weight: 500;
    line-height: 1.4;
}

.required-field::after {
    content: " *";
    color: #dc2626;
    font-weight: bold;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
}


@media (max-width: 767px) {
    #mobile-menu {
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    #mobile-menu.show {
        max-height: 1000px;
        transition: max-height 0.5s ease-in;
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .accordion-button.active i {
        transform: rotate(180deg);
    }

    .accordion-content.show {
        max-height: 500px;
        transition: max-height 0.5s ease-in;
    }

    .form-section {
        padding: 1rem;
    }

    .date-input-group {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
    }

    .close-modal {
        right: 15px;
        font-size: 30px;
    }

    .form-navigation {
        position: static;
        padding: 0.75rem;
        box-shadow: none;
        border-top: 0;
    }
}


.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 151, 0.2);
}

.password-strength {
    height: 4px;
    transition: all 0.3s ease;
}

.form-section {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-header {
    color: #1e40af;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.required-field::after {
    content: " *";
    color: #e53e3e;
}

.upload-container {
    border: 2px dashed #cbd5e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-container:hover {
    border-color: #3b82f6;
    background-color: #f0f7ff;
}

.upload-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.file-input {
    display: none;
}

.file-preview {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-item {
    background-color: #ebf5ff;
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.file-item:hover {
    background-color: #d6e9ff;
}

.file-item i {
    margin-left: 0.5rem;
    color: #3b82f6;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #9ca3af;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #6b7280;
}

.form-navigation {
    position: sticky;
    bottom: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #e5e7eb;
}

.date-input-group {
    display: flex;
    gap: 0.5rem;
}

.date-input {
    flex: 1;
    text-align: center;
}

.error-message {
    color: #e53e3e;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

input, select, textarea {
    border-color: #d1d5db;
}

input:focus, select:focus, textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-error {
    border-color: #e53e3e !important;
}

.input-valid {
    border-color: #38a169 !important;
}

.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    margin-top: 50px;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.modal-caption {
    margin-top: 15px;
    color: white;
    text-align: center;
    font-size: 18px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #bbb;
}

.active-menu {
    background-color: #3b82f6;
    color: white;
}

.active-menu:hover {
    background-color: #2563eb;
}

.upload-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #dcfce7;
    border: 1px solid #16a34a;
    border-radius: 0.5rem;
    color: #15803d;
    font-size: 0.875rem;
    font-weight: 500;
}

.upload-status.hidden {
    display: none;
}

.status-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-text::before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
}

.remove-file-btn {
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.remove-file-btn:hover {
    background-color: #b91c1c;
}

.upload-container.has-file {
    border-color: #16a34a;
    background-color: #f0fdf4;
}

.upload-container.has-file .upload-icon {
    color: #16a34a;
}

.card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-review {
    background-color: #dbeafe;
    color: #1e40af;
}

.document-preview {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.document-preview:hover {
    border-color: var(--primary-color);
}

.document-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: #eff6ff;
    color: var(--primary-color);
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #cbd5e1, transparent);
    margin: 1.5rem 0;
}

.info-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #1e293b;
    font-weight: 500;
}

.action-btn {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.back-btn {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.back-btn:hover {
    background-color: #f1f5f9;
}

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

.print-btn:hover {
    background-color: #1d4ed8;
}

.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.8)
    }
    to {
        transform: scale(1)
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    height: auto;
}

.modal-caption {
    margin: 10px auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.1rem;
}


.personal_img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.personal_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .personal_img {
        height: 500px;
    }
}