/* Smart Student School visual system for the shared student area. */
:root {
    --brand-primary: #a51c62;
    --brand-primary-dark: #821548;
    --brand-secondary: #2e8b57;
    --brand-accent: #e67e22;
    --brand-blue: #2584b8;
    --brand-text: #322635;
    --brand-muted: #756d78;
    --brand-background: #f8f7fa;
    --student-primary: #a51c62;
    --student-primary-2: #c43a7b;
    --student-primary-soft: #fce8f2;
    --student-blue: #2584b8;
    --student-blue-soft: #e5f4fb;
    --student-purple: #a51c62;
    --student-purple-soft: #fce8f2;
    --student-green: #2e8b57;
    --student-green-soft: #e8f5ed;
    --student-warning: #e67e22;
    --student-warning-soft: #fff1e3;
    --student-bg: #f8f7fa;
    --student-text: #322635;
    --student-muted: #756d78;
    --student-border: #eee6ec;
    --student-shadow-soft: 0 14px 38px rgba(99, 34, 70, .08);
}

body.student-dashboard-body {
    background:
        radial-gradient(circle at 92% 8%, rgba(196, 58, 123, .055), transparent 22rem),
        radial-gradient(circle at 5% 80%, rgba(46, 139, 87, .045), transparent 20rem),
        var(--student-bg) !important;
    color: var(--student-text);
}

.student-sidebar-shell {
    border-color: rgba(165, 28, 98, .10);
    background: #fff;
}
.student-sidebar-brand { border-bottom-color: var(--student-border); }
.student-sidebar-brand-link { gap: 12px; color: var(--student-primary); }
.student-sidebar-brand-text { white-space: normal; }
.student-sidebar-brand-text strong { color: var(--student-primary); font-size: .88rem; line-height: 1.45; }
.student-sidebar-brand-text small { color: var(--student-green); }
.student-sidebar-logo-wrap { box-shadow: 0 8px 18px rgba(165, 28, 98, .10); }
.student-sidebar-logo-wrap > i { background: var(--student-warning); }

.student-navbar {
    border-bottom-color: var(--student-border);
    background: rgba(255, 255, 255, .96);
}
.student-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--student-primary);
    font-size: .9rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}
.student-navbar-brand-logo { width: 38px; height: 38px; object-fit: contain; }
.student-navbar-brand:hover { color: var(--student-primary); }

.student-sidebar-collapse,
.student-navbar-toggle,
.student-navbar-btn,
.student-navbar-user-trigger {
    box-shadow: inset 0 0 0 1px var(--student-border);
}
.student-sidebar-collapse,
.student-navbar-toggle,
.student-navbar-btn { color: var(--student-primary); }
.student-sidebar-student-card { background: #fff8fb; box-shadow: inset 0 0 0 1px rgba(165, 28, 98, .09); }
.student-sidebar-avatar,
.student-navbar-avatar { background: var(--student-primary); }
.student-nav-link:hover,
.student-nav-link:focus-visible { background: var(--student-primary-soft); color: var(--student-primary) !important; }
.student-nav-link.active {
    border-color: rgba(165, 28, 98, .14);
    background: linear-gradient(135deg, #fff, var(--student-primary-soft));
    color: var(--student-primary) !important;
    box-shadow: 0 8px 20px rgba(165, 28, 98, .09);
}
.student-nav-link.active::before { background: var(--student-primary); }
.student-nav-link.active .student-nav-arrow,
.student-nav-link:hover .student-nav-arrow { color: var(--student-primary); }
.student-nav-icon { color: var(--student-primary); box-shadow: inset 0 0 0 1px rgba(165, 28, 98, .08); }
.student-navbar-subject { border-color: rgba(46, 139, 87, .16); background: var(--student-green-soft); color: var(--student-green); }
.student-profile-menu .dropdown-item:hover { background: var(--student-primary-soft); color: var(--student-primary); }
.student-subject-banner { border-color: rgba(46, 139, 87, .16); }
.student-bottom-nav-item.active,
.student-bottom-nav-item:hover { color: var(--student-primary); background: var(--student-primary-soft); }
.student-bottom-nav-item.active .student-bottom-nav-label { color: var(--student-primary); }
.student-bottom-nav-indicator { background: var(--student-primary); }
.student-footer-brand { color: var(--student-primary); }

.student-dashboard-page-container .btn-primary,
.student-dashboard-page-container .edu-btn-action-primary,
.student-dashboard-page-container .edu-btn-start-primary,
.student-dashboard-page-container #competitionEntryForm .btn-success {
    background-color: var(--student-primary) !important;
    border-color: var(--student-primary) !important;
    color: #fff !important;
}
.student-dashboard-page-container .btn-primary:hover,
.student-dashboard-page-container .edu-btn-action-primary:hover,
.student-dashboard-page-container .edu-btn-start-primary:hover,
.student-dashboard-page-container #competitionEntryForm .btn-success:hover { background-color: #821548 !important; border-color: #821548 !important; }
.student-dashboard-page-container :focus-visible,
.student-bottom-nav-item:focus-visible,
.student-navbar-brand:focus-visible { outline: 3px solid rgba(165, 28, 98, .38); outline-offset: 3px; }

@media (max-width: 575.98px) {
    .student-navbar { gap: 8px; padding-inline: 12px; }
    .student-navbar-start, .student-navbar-end { gap: 7px; }
    .student-navbar-brand { gap: 5px; font-size: .72rem; }
    .student-navbar-brand-logo { width: 32px; height: 32px; }
    .student-navbar-title { display: none; }
    .student-navbar-title strong { font-size: .86rem; }
    .student-navbar-subject { display: none; }
    .student-navbar-btn, .student-navbar-toggle { width: 42px; height: 42px; }
    .student-navbar-avatar { width: 38px; height: 38px; }
}

@media (max-width: 359.98px) {
    .student-navbar-brand span { display: none; }
    .student-navbar { padding-inline: 9px; }
    .student-navbar-start, .student-navbar-end { gap: 5px; }
}
