: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;
    --edit-blue: #3b5bdb;
    --delete-red: #e63946;
    --warning: #f59e0b;
}

* {
    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;
}

/* Profile Section */
.profile-section {
    margin-bottom: 50px;
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.15);
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

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

.profile-details {
    flex: 1;
}

.student-name {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.info-value {
    color: var(--text-light);
    font-size: 15px;
}

.info-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.info-link:hover {
    border-bottom-color: var(--primary);
}

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

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.action-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.edit-btn {
    background: var(--edit-blue);
    color: var(--white);
}

.edit-btn:hover {
    background: #2a4cb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 91, 219, 0.3);
}

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

.delete-btn {
    background: var(--delete-red);
    color: var(--white);
}

.delete-btn:hover {
    background: #d62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

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

/* Expandable Sections */
.expandable-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.expandable-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.08);
    transition: all 0.3s ease;
}

.expandable-item:hover {
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.12);
}

.expandable-header {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.expandable-header:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateX(5px);
}

.expandable-header:focus {
    outline: 2px solid var(--white);
    outline-offset: -2px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
}

.expand-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expandable-item[aria-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.expandable-item[aria-expanded="true"] .expandable-content {
    max-height: 1200px;
}

.content-inner {
    padding: 30px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Detail Items */
.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.value {
    color: var(--text-dark);
    font-size: 14px;
}

/* Attendance Summary */
.attendance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.attendance-stat {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f7ff 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.attendance-stat:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.15);
}

.stat-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-value.present {
    color: var(--success);
}

.stat-value.absent {
    color: #ef4444;
}

.stat-value.percentage {
    color: var(--warning);
}

.attendance-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.attendance-action {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Academic Items */
.academic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.academic-item:last-of-type {
    border-bottom: none;
}

.subject {
    font-weight: 500;
    color: var(--text-dark);
}

.marks {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.gpa-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    margin-top: 20px;
}

.gpa {
    background: linear-gradient(135deg, var(--success) 0%, #06b6d4 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
}

.performance-action {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Document Items */
.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.document-item:last-child {
    border-bottom: none;
}

.doc-name {
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.doc-actions {
    display: flex;
    gap: 10px;
}

.doc-action {
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.doc-action.view:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.doc-action.delete {
    background: #fee2e2;
    color: var(--delete-red);
}

.doc-action.delete:hover {
    background: #fecaca;
    transform: scale(1.05);
}

.document-upload {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

/* Notice Items */
.notice-item {
    padding: 20px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f7ff 100%);
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.notice-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.notice-content {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.notice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-upload {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* Communication Section */
.communication-section {
    margin-bottom: 30px;
}

.communication-history {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f7ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.comm-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.comm-item:last-child {
    border-bottom: none;
}

.comm-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.comm-status {
    background: var(--success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.comm-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.log-date {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
}

.log-message {
    color: var(--text-dark);
    font-size: 13px;
    flex: 1;
    margin-left: 15px;
}

.communication-action {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mini Buttons */
.mini-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

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

.mini-btn.danger {
    background: var(--delete-red);
}

.mini-btn.danger:hover {
    background: #d62828;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Add Student Section */
.add-student-section {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.add-student-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2);
}

.add-student-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.3);
}

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

.add-student-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 40px;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 250px;
    }

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

    .hero-overlay p {
        font-size: 14px;
    }

    .nav-container {
        padding: 15px 20px;
    }

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

    .container {
        padding: 40px 20px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .student-name {
        font-size: 22px;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-actions {
        justify-content: center;
        gap: 10px;
    }

    .action-btn {
        padding: 8px 25px;
        font-size: 12px;
    }

    .expandable-header {
        padding: 16px 20px;
        font-size: 15px;
    }

    .header-content {
        gap: 12px;
    }

    .section-icon {
        font-size: 18px;
    }

    .content-inner {
        padding: 20px;
    }

    .attendance-summary {
        grid-template-columns: 1fr 1fr;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .doc-actions {
        width: 100%;
    }

    .doc-action {
        flex: 1;
        text-align: center;
    }

    .notice-item {
        margin-bottom: 12px;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .add-student-btn {
        padding: 14px 40px;
        font-size: 15px;
    }

    .footer {
        padding: 25px 20px;
    }

    .log-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .log-message {
        margin-left: 0;
    }
}
