/* HUST Student Portal Styles - Red & Gold theme */
:root {
    --hust-red: #B30000;
    --hust-dark-red: #8B0000;
    --hust-gold: #FFD700;
    --bg-light: #F4F6F9;
    --card-bg: #FFFFFF;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Header */
#navbar {
    background-color: var(--hust-red);
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
}

#navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-titles .main-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-titles .sub-title {
    font-size: 0.85rem;
    opacity: 0.9;
}

#user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-text .greeting {
    font-size: 0.75rem;
    opacity: 0.85;
}

.user-text .role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hust-gold);
}

/* Nav Menu */
#nav-menu {
    background-color: var(--hust-dark-red);
    padding: 0 30px;
    overflow-x: auto;
}

#nav-menu ul {
    display: flex;
    list-style: none;
}

#nav-menu li a {
    display: block;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease;
}

#nav-menu li.active a,
#nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb .current {
    font-weight: 600;
    color: var(--text-dark);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* Tab Bar */
.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
    background: #FFFFFF;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background-color: #F0F4F8;
    color: var(--text-dark);
}

.tab-btn.active {
    background-color: var(--hust-red);
    color: #FFFFFF;
}

.tab-btn.highlight {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

.tab-btn.highlight.active {
    background-color: var(--hust-red);
    color: #FFFFFF;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

@media (max-width: 850px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Card */
.sidebar-card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.campus-image-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.campus-svg {
    width: 100%;
    height: auto;
    display: block;
}

.soict-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(179, 0, 0, 0.9);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.student-brief {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.sidebar-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-outline {
    background: #F0F4F8;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-primary {
    background: var(--hust-red);
    color: #FFFFFF;
}

/* Main Panel */
.main-panel {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.panel-title {
    font-size: 1.25rem;
    color: var(--hust-red);
    border-bottom: 2px solid var(--hust-red);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Tab Pane Visibility */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Info Grid (Personal Details) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-group {
    background: #F9FAFB;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #EDF2F7;
}

.info-group.full-width {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* Dynamic Score Card */
.score-card {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 100%);
    border: 1px solid #FFE58F;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.score-header h3 {
    font-size: 1rem;
    color: #8C6B00;
}

.reload-badge {
    font-size: 0.8rem;
    background: #FFF;
    border: 1px solid #FFD666;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #8C6B00;
    transition: all 0.2s ease;
}

.reload-badge:hover {
    background: #FFD666;
    color: #000;
}

.score-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--hust-red);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(179, 0, 0, 0.25);
    flex-shrink: 0;
}

#training-score {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.score-max {
    font-size: 0.75rem;
    opacity: 0.85;
}

.score-level-text {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.score-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* GPA Table */
.gpa-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.gpa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gpa-table th,
.gpa-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.gpa-table th {
    background-color: #F8FAFC;
    color: var(--text-muted);
    font-weight: 600;
}

.gpa-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.gpa-badge.high {
    background-color: #E6F4EA;
    color: #137333;
}

.placeholder-text {
    color: var(--text-muted);
    font-style: italic;
    padding: 20px 0;
}

/* Footer */
#footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}
