/* =========================================================================
   OVERHAULED PAGES.CSS - EXPERT PROFILE DIRECTORY & PREMIUM ADMIN PANELS
   ========================================================================= */

.page-container {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 120px;
    min-height: 85vh;
    background: radial-gradient(circle at top, #111827 0%, var(--bg-dark) 100%);
}

.page-hero {
    text-align: center;
    margin-bottom: 80px;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Grid Layout for Faculty & Team directory */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: var(--border-glow);
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-12px);
    border-color: rgba(99, 91, 255, 0.3);
    box-shadow: var(--shadow-cyber);
}

.team-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--bg-card) 100%);
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.08) rotate(1deg);
}

.team-info {
    padding: 32px;
}

.team-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.team-role {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 16px;
}

.team-bio {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Premium Glass Legal Documents Layout */
.legal-content {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    border: var(--border-glow);
    box-shadow: var(--shadow-cyber);
}

.legal-content h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.last-updated {
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #fff;
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
}

.legal-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

/* Fallback Data loader placeholder */
.team-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
/* =========================================================================
   SECURE CARD BARCODE VERIFICATION DESIGN (LIGHT MODE)
   ========================================================================= */

.verification-canvas {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    padding: 40px 24px;
}

.verification-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08);
    border: var(--border-glow);
    overflow: hidden;
    text-align: center;
    transform: scale(0.95);
    opacity: 0;
    transition: var(--transition-smooth);
}

.verification-card.loaded {
    transform: scale(1);
    opacity: 1;
}

/* Verified Success Header */
.card-header-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 36px 24px;
    color: #fff;
    position: relative;
}

.status-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.checkmark-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Verified Profile Info Card Body */
.card-body {
    padding: 40px 36px;
    position: relative;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    margin: -100px auto 24px;
    position: relative;
    z-index: 5;
}

.employee-name {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.employee-role {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
    border: var(--border-glow);
}

.info-block {
    text-align: left;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.employee-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Bottom Verified Brand Signature */
.brand-footer {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: -0.5px;
}

.brand-footer span {
    color: var(--primary-color);
}

/* Error UI Configuration */
.error-card {
    background: #ffffff;
    padding: 48px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.05);
    max-width: 440px;
    border: var(--border-glow);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}