:root {
    --primary: #0077b6;
    --primary-dark: #005a8d;
    --secondary: #00b4d8;
    --accent: #0096c7;
    --light-bg: #f0f9ff;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-color: #e0e7ff;
    --white: #ffffff;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f7ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-back {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-back:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-back:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-title {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    padding: 20px 0;     
    background-color: #c4d7e0; 
}


.hero-banner {
    width: 100%;
    height: auto;       
    display: block;
    object-fit: contain; 
}


.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 15px 30px;
    border-radius: 8px;
}


.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-text {
    background-color: #727ca5;   /* 🔵 blue */
    color: white;
    text-align: center;
    padding: 25px 15px;
}

.hero-text h1 {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
}

.hero-text p {
    margin-top: 8px;
    font-size: 18px;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Faculty Profile Section */
.faculty-profile-section {
    margin-bottom: 60px;
}

.faculty-profile-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.08);
    display: flex;
    align-items: center;
    gap: 40px;
    border-left: 6px solid var(--primary);
}

.faculty-profile-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid var(--primary);
    flex-shrink: 0;
}

.faculty-profile-info h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.faculty-profile-info .designation {
    font-size: 18px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.faculty-detail-item {
    margin: 12px 0;
    font-size: 15px;
    color: var(--text-dark);
}

.faculty-detail-item strong {
    color: var(--primary);
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.faculty-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.action-btn:active {
    transform: scale(0.98);
}

.btn-edit {
    background: linear-gradient(135deg, var(--info) 0%, var(--accent) 100%);
    color: var(--white);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-message {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.btn-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Students Section */
.students-section {
    margin-top: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* Search Bar */
.search-bar-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.05);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.3);
}

.search-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.search-btn:active {
    transform: translateY(0);
}

/* Table Container */
.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.08);
    overflow-x: auto;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.students-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
}

.students-table thead th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--primary-dark);
}

.students-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.students-table tbody tr:hover {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f7ff 100%);
}

.students-table tbody tr:focus-within {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f7ff 100%);
    outline: 2px solid var(--primary);
}

.students-table tbody td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-dark);
}

.students-table tbody td strong {
    color: var(--primary);
    font-weight: 600;
}

/* Action Buttons in Table */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-action-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table-action-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.table-action-btn:active {
    transform: scale(0.95);
}

.btn-view {
    background: linear-gradient(135deg, var(--info) 0%, var(--accent) 100%);
    color: var(--white);
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-edit-student {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: var(--white);
}

.btn-edit-student:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-attendance {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
}

.btn-attendance:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-academic {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--white);
}

.btn-academic:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* No Results Message */
.no-results {
    background: var(--white);
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.05);
    margin-top: 30px;
}

.no-results p {
    font-size: 18px;
    color: var(--text-light);
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }

    .nav-title {
        font-size: 18px;
    }

    .container {
        padding: 40px 20px;
    }

    .hero-overlay h1 {
        font-size: 28px;
    }

    .faculty-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .faculty-profile-image {
        width: 140px;
        height: 140px;
    }

    .faculty-profile-info h2 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .search-bar-container {
        flex-direction: column;
        padding: 15px;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
    }

    .students-table {
        font-size: 13px;
    }

    .students-table thead th {
        padding: 12px 8px;
        font-size: 12px;
    }

    .students-table tbody td {
        padding: 12px 8px;
    }

    .table-actions {
        flex-direction: column;
        gap: 5px;
    }

    .table-action-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11px;
    }

    .faculty-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
    }

    .faculty-profile-card {
        padding: 20px 15px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .section-header p {
        font-size: 14px;
    }

    .search-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .students-table {
        font-size: 12px;
    }

    .students-table thead th {
        padding: 10px 6px;
        font-size: 11px;
    }

    .students-table tbody td {
        padding: 10px 6px;
    }

    .table-action-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
}
