/* ============================================================
   facultyResearch.css
   Faculty list page — matches nd- design system
   Deep navy #1e3a8a, Inter font, clean card aesthetic
   ============================================================ */


/* ============================================================
   PAGE SHELL
   ============================================================ */
.fl-page {
    background-color: #f8fafc;
    min-height: calc(100vh - 130px);
    padding: 3rem 0 4rem;
}

.fl-container {
    max-width: 1300px;
}


/* ============================================================
   PAGE HEADER
   ============================================================ */
.fl-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.fl-header__eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3b82f6;
    margin-bottom: 0.4rem;
}

.fl-header__title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.4rem;
    line-height: 1.15;
}

.fl-header__sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

.fl-header__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
}


/* ============================================================
   TABLE CARD
   ============================================================ */
.fl-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}


/* ============================================================
   TABLE
   ============================================================ */
.fl-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    color: #334155;
    margin: 0;
}

/* thead */
.fl-table thead {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.fl-th {
    padding: 0.9rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff !important;
    border: none !important;
    white-space: nowrap;
}

/* Column widths */
.fl-th--name   { width: 26%; }
.fl-th--desig  { width: 20%; }
.fl-th--dept   { width: 36%; }
.fl-th--action { width: 18%; }

/* tbody rows */
.fl-row {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.fl-row:last-child { border-bottom: none; }

.fl-row:nth-child(even) { background-color: #f8fafc; }

.fl-row:hover { background-color: #eff6ff; }

.fl-td {
    padding: 0.85rem 1.1rem;
    vertical-align: middle;
    border: none !important;
    color: #334155;
}


/* ============================================================
   FACULTY NAME CELL — avatar + name
   ============================================================ */
.fl-faculty-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fl-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    border: 2px solid #e0f2fe;
}

.fl-td--name span { font-weight: 600; color: #1e293b; }


/* ============================================================
   DESIGNATION BADGE
   ============================================================ */
.fl-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background-color: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}


/* ============================================================
   VIEW PROFILE BUTTON
   ============================================================ */
.fl-profile-btn,
.btn-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    background-color: #1e3a8a;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.fl-profile-btn:hover,
.btn-view-profile:hover {
    background-color: #1e3382;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.38);
    transform: translateY(-1px);
    color: #ffffff !important;
    text-decoration: none;
}

.fl-profile-btn:focus,
.btn-view-profile:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}


/* ============================================================
   EMPTY STATE
   ============================================================ */
.fl-empty-row:hover { background-color: transparent !important; }

.fl-empty {
    padding: 4rem 1rem !important;
    text-align: center;
}

.fl-empty__icon {
    font-size: 2.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.75rem;
}

.fl-empty__text {
    font-size: 0.92rem;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}


/* ============================================================
   LEGACY COMPATIBILITY
   ============================================================ */
.box-shadow-grey {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07) !important;
    border-radius: 16px;
}

.w-20 { width: 20%; }
.w-10 { width: 10%; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .fl-page        { padding: 1.75rem 0 2.5rem; }
    .fl-header      { flex-direction: column-reverse; gap: 0.75rem; }
    .fl-header__icon-wrap { width: 48px; height: 48px; font-size: 1.15rem; border-radius: 12px; }

    .fl-th, .fl-td  { padding: 0.65rem 0.75rem; font-size: 0.8rem; }
    .fl-th          { font-size: 0.65rem; }

    /* hide department on small screens */
    .fl-th--dept, .fl-td--dept { display: none; }

    .fl-avatar      { width: 30px; height: 30px; font-size: 0.72rem; }

    .fl-profile-btn,
    .btn-view-profile { padding: 0.32rem 0.65rem; font-size: 0.72rem; }
}

/* ============================================================
   FACULTY DETAILS PAGE ADDITIONS
   ============================================================ */

.fl-card-header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #1e3a8a;
}

.fl-card-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.02em;
}

.fl-card-body {
    padding: 2rem 2.5rem;
}

.fl-detail-list {
    display: flex;
    flex-direction: column;
}

.fl-detail-row {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.fl-detail-row:first-child { padding-top: 0; }
.fl-detail-row:last-child { border-bottom: none; padding-bottom: 0; }

.fl-detail-label {
    width: 240px;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-top: 0.2rem;
}

.fl-detail-value {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.7;
}


.fl-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fl-link:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .fl-card-body { padding: 1.5rem; }
    
    .fl-detail-row {
        flex-direction: column;
        gap: 0.4rem;
        padding: 1rem 0;
    }
    
    .fl-detail-label {
        width: 100%;
        margin-top: 0;
    }
}


/*==================================MODAL STYLE==================================*/
/* --- Global Modal Centering and Uniform Height --- */
.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - 1rem);
    margin: auto;
}

.modal-content {
    height: 85vh !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
}

.modal-header,
.modal-footer {
    flex-shrink: 0;
    padding: 1.2rem 1.5rem;
}

@media (min-width: 992px) {

    /* Force XL modals to be 75% of screen width */
    .modal-xl {
        max-width: 75% !important;
        width: 75%;
    }

    /* Specific width for the 'More List' modal */
    #modalmorelist-modal .modal-dialog {
        max-width: 65% !important;
        width: 65%;
    }
}

@media (max-width: 991.98px) {

    .modal-dialog {
        max-width: 95% !important;
        margin: 0.5rem auto;
    }

    .modal-content {
        height: 90vh !important;
    }
}

.custommodallink {
    font-size: 18px !important;
    color: #000;
}
.custommodallink:hover  {
    background-color: #ABE6FF !important;
    cursor: pointer !important;
    color: #fff;
}

.carditem {
    border: 1px solid #e9ecef !important;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
    cursor: pointer;
}
.carditem:hover {
    border: 1px solid #182b45 !important;
    background-color: #e3f2fd !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.carditem .card-title,
.carditem .card-text,
.carditem .fa {
    color: #182b45 !important;
}
.carditem:hover .card-title,
.carditem:hover .card-text,
.carditem:hover .fa {
    color: #182b45 !important;
}

.btn.btn-view-more{
    color: #000 !important;
    background-color: #ABE6FF !important;
    border-color: #ABE6FF !important;
    text-align: center;
}

/* --- Close Button: Rounded Square --- */
.btn-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 32px;
    height: 32px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    z-index: 1060;
    transition: all 0.2s ease;
    padding: 0;
}
.btn-modal-close:hover {
    background-color: #182b45;
    color: #ffffff;
    border-color: #182b45;
}
.btn-modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(24, 43, 69, 0.2);
}

.modal-header.position-relative {
    position: relative !important;
}

/* --- Scrollable Text Areas (Phase Details) --- */
.scrollable-text {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 12px;
    background: #fafafa;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.fy-filter-btn {
    border: 2px solid #f8f9fa !important;
    opacity: 0.65;
    cursor: pointer;
}
.fy-filter-btn .fy-status-text { color: #6c757d; transition: color 0.3s ease; }
.fy-filter-btn .fy-year-text { color: #212529; transition: color 0.3s ease; }

/* Hover State */
.fy-filter-btn:hover {
    opacity: 0.9;
    border-color: #d1e7dd !important; /* Soft green border */
    transform: translateY(-2px);
    background-color: #f8f9fa !important;
}

/* Active / Selected State */
.fy-filter-btn.active {
    opacity: 1;
    border-color: #198754 !important; /* Success Green */
    background-color: #f0fdf4 !important; /* Very light green tint */
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.15) !important;
    transform: translateY(0);
}

/* Active Text Colors */
.fy-filter-btn.active .fy-status-text,
.fy-filter-btn.active .fy-year-text {
    color: #198754 !important;
}

.fy-sidebar {
    width: 100%;
}

@media (max-width: 767.98px) {
    .fy-sidebar {
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem 1rem !important;
    }

    .fy-filter-btn {
        min-width: 140px;
    }

    .fy-sidebar .overflow-auto::-webkit-scrollbar {
        height: 4px;
    }
}

@media (min-width: 768px) {
    .fy-sidebar {
        width: 280px;
        border-right: 1px solid #dee2e6;
    }
}