/* ==========================================================================
   Faculty Directory Styles - Jaya Institute of Technology
   ========================================================================== */

/* Faculty Hero / Breadcrumbs */
.faculty-hero-badge {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Controls Wrapper */
.faculty-controls {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.search-input-wrapper {
    position: relative;
}
.search-input-wrapper .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
}
.search-input-wrapper input {
    padding-left: 48px;
    padding-right: 20px;
    height: 50px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    font-size: 14.5px;
    background-color: #f8fafc;
    transition: all 0.25s ease;
}
.search-input-wrapper input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color, #1e3a8a);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    outline: none;
}

.dept-select {
    height: 50px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    font-size: 14px;
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}
.dept-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-color, #1e3a8a);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    outline: none;
}

/* Category Filter Buttons */
.category-pill-btn {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.category-pill-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color, #1e3a8a);
    border-color: #cbd5e1;
}
.category-pill-btn.active {
    background: var(--primary-color, #1e3a8a);
    color: #ffffff;
    border-color: var(--primary-color, #1e3a8a);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

/* Quick Department Pills */
.dept-pill-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.dept-pill-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.dept-pill-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* View Switcher */
.view-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.view-btn:hover {
    background: #f8fafc;
    color: var(--primary-color, #1e3a8a);
    border-color: var(--primary-color, #1e3a8a);
}
.view-btn.active {
    background: var(--primary-color, #1e3a8a);
    color: #ffffff;
    border-color: var(--primary-color, #1e3a8a);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* Faculty Card */
.faculty-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-color: #bfdbfe;
}
.faculty-card-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px 20px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.faculty-photo-wrapper {
    width: 125px;
    height: 150px;
    margin: 0 auto 14px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    border: 3px solid #ffffff;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.faculty-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.faculty-card:hover .faculty-photo {
    transform: scale(1.05);
}
.faculty-default-avatar {
    font-size: 50px;
    color: #94a3b8;
}

.faculty-card-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.faculty-name {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.35;
    font-family: 'Outfit', sans-serif;
}
.faculty-designation-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 auto 12px;
}
.badge-principal {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.badge-professor {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}
.badge-assoc-prof {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.badge-asst-prof {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.badge-default {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.faculty-dept-name {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.faculty-ids-box {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.faculty-id-item {
    font-size: 11.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
}
.faculty-id-item strong {
    color: #0f172a;
    font-weight: 600;
    font-family: monospace;
    font-size: 12px;
}

/* Table View */
.faculty-table-photo {
    width: 52px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.faculty-table th {
    background: #1e3a8a !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    vertical-align: middle;
}
.faculty-table td {
    padding: 12px 16px;
    font-size: 14px;
    vertical-align: middle;
}
.faculty-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Empty State */
.no-results-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    border: 2px dashed #cbd5e1;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .faculty-controls {
        padding: 16px;
    }
    .faculty-card-header {
        padding: 18px 14px 12px;
    }
    .faculty-photo-wrapper {
        width: 105px;
        height: 125px;
    }
}
