/* Yekan Bakh Font */
@font-face {
    font-family: 'Yekan Bakh';
    src: url('fonts/YekanBakh-Regular.woff2') format('woff2'),
        url('fonts/YekanBakh-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('fonts/YekanBakh-Bold.woff2') format('woff2'),
        url('fonts/YekanBakh-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Yekan Bakh', 'Inter', sans-serif;
    background-color: #f3f4f6;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
}

/* Authentication Screen Styles - Clean & Simple */
.auth-card {
    background-color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2-px rgba(0, 0, 0, 0.05);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

/* Card and Layouts */
.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    background-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: #14b8a6;
    /* teal-500 */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-accent:hover {
    background-color: #0d9488;
    /* teal-600 */
    transform: translateY(-2px);
}

/* Input Field Base Style */
.input-field {
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    max-height: 80vh;
}

#review-modal .modal-content {
    max-width: 800px;
    /* Adjusted to match other modals */
    overflow-y: auto;
    /* Added for proper scrolling */
    max-height: 80vh;
    /* Added for height consistency */
}

#view-details-modal .modal-content {
    overflow-y: auto;
    max-height: 80vh;
}

.close-button {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Collapsible Accordion Styles */
.accordion-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f3f4f6;
}

.accordion-content {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(90deg);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-submitted {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-under_review {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-interview {
    background-color: #dcfce7;
    color: #166534;
}

.badge-accepted {
    background-color: #d1fae5;
    color: #047857;
}

.badge-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-pending {
    background-color: #f3f4f6;
    color: #4b5563;
}

.badge-awaiting_mentor_review {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-completed {
    background-color: #d1fae5;
    color: #047857;
}

.badge-rejected-activity {
    background-color: #fee2e2;
    color: #991b1b;
}

.section-heading {
    border-bottom: 2px solid #e0e7ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: #374151;
    display: flex;
    align-items: center;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification specific styles for better mobile experience */
@media (max-width: 640px) {
    #notifications-dropdown {
        width: 100vw;
        left: 0 !important;
        right: auto !important;
        border-radius: 0;
        max-height: 80vh;
    }

    .filter-container {
        padding: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        background-color: #ffffff;
    }

    .filter-container .input-field {
        margin-bottom: 0.5rem;
    }
}