/* 
 * LCHS Headless Portal - World Class UI Design System
 * London Campus of Higher Studies
 * 
 * Aesthetics: Elite Glassmorphism, Dark Neon Royal Velvet Theme, Gold Highlights, 
 * Custom Typography, Floating Meshes, Smooth Transitions, Academic Prestige.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --bg-main: #06030c;
    --bg-card: rgba(22, 13, 38, 0.55);
    --bg-sidebar: rgba(14, 8, 25, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 182, 6, 0.3);
    
    /* Branding Colors */
    --brand-gold: #ffb606;
    --brand-gold-hover: #e0a000;
    --brand-gold-glow: rgba(255, 182, 6, 0.35);
    
    --brand-purple: #7c3aed;
    --brand-purple-hover: #6d28d9;
    --brand-purple-glow: rgba(124, 58, 237, 0.25);
    
    /* Text Tokens */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Semantic Status */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    --warning: #ffb606;
    --danger: #f43f5e;
    --danger-bg: rgba(244, 63, 94, 0.08);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Dimensions */
    --sidebar-width: 240px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Shadows & Effects */
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
    --shadow-neon: 0 0 30px rgba(124, 58, 237, 0.15);
    --glass-blur: blur(25px);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variable Overrides */
[data-theme="light"] {
    --bg-main: #f5f4f8;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-sidebar: #ffffff;
    --border-color: rgba(68, 46, 102, 0.08);
    --border-glow: rgba(255, 182, 6, 0.2);
    
    --text-primary: #1e1233;
    --text-secondary: #5e5273;
    --text-muted: #8e84a1;
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --shadow-premium: 0 15px 35px -10px rgba(68, 46, 102, 0.1);
    --shadow-neon: 0 0 20px rgba(124, 58, 237, 0.06);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Glowing Mesh Orbs in the background */
body::before, body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

body::before {
    background: radial-gradient(circle, var(--brand-purple) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: floatOrb 18s ease-in-out infinite alternate;
}

body::after {
    background: radial-gradient(circle, var(--brand-gold) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold);
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Glassmorphism Container Card */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium), var(--shadow-neon);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.02) 20%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.02) 80%,
        transparent
    );
    transform: rotate(-30deg);
    transition: 0.8s;
    pointer-events: none;
}

.glass-panel:hover::before {
    left: 100%;
}

/* Authentication Page Styles */
.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 10;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 45px;
}

.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-gold));
}

.logo-container {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-purple));
    border-radius: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

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

.logo-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--brand-gold);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(255, 182, 6, 0.15);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(90deg, var(--brand-gold), #e0a000);
    border: none;
    color: #0c0817;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 14px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 182, 6, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 182, 6, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
    box-shadow: 0 6px 15px var(--brand-purple-glow);
}

/* Alert Notification Panel */
.alert {
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    font-size: 13px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background-color: var(--danger-bg);
    border: 1px solid rgba(244, 63, 94, 0.15);
    color: #fda4af;
}

.alert-success {
    background-color: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
}

/* Layout Structure */
.layout-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.sidebar-header {
    padding: 30px 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-logo .logo-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 0;
    border-radius: 12px;
}

.sidebar-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.sidebar-logo-sub {
    font-size: 10px;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 30px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--transition-smooth);
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(4px);
}

.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25) 0%, rgba(124, 58, 237, 0.08) 100%);
    border: 1px solid rgba(124, 58, 237, 0.35);
    box-shadow: var(--shadow-neon);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--brand-gold);
    object-fit: cover;
    box-shadow: 0 0 10px var(--brand-gold-glow);
}

.user-info {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-role {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: capitalize;
    font-weight: 500;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 50px;
    min-height: 100vh;
    transition: var(--transition-smooth);
}

/* Page Header Panel */
.page-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

/* Metrics Dashboard Panel */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.metric-card {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 182, 6, 0.25);
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.metric-icon-bg {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--brand-gold);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 40px;
}

.section-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Course List */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.course-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.course-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 182, 6, 0.2);
    transform: translateX(6px);
}

.course-info {
    flex-grow: 1;
    margin-right: 30px;
}

.course-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.course-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.progress-container {
    width: 100%;
    max-width: 320px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-gold));
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-gold);
    margin-top: 6px;
    box-shadow: 0 0 10px var(--brand-gold);
    flex-shrink: 0;
}

.activity-dot.blue {
    background: var(--brand-purple);
    box-shadow: 0 0 10px var(--brand-purple);
}

.activity-text {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.5;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    font-weight: 600;
}

/* Course Viewer Components */
.sections-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-block {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 30px;
}

.section-block-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-block-summary {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.module-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.015);
    border-radius: var(--border-radius-md);
    margin-bottom: 14px;
    border-left: 4px solid var(--brand-purple);
    transition: var(--transition-smooth);
}

.module-row:hover {
    background: rgba(255, 255, 255, 0.035);
    transform: translateX(4px);
}

.module-row.quiz-type {
    border-left-color: var(--brand-gold);
}

.module-row.assign-type {
    border-left-color: var(--success);
}

.module-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.module-type-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(124, 58, 237, 0.1);
    color: #a78bfa;
}

.module-row.quiz-type .module-type-badge {
    background: rgba(255, 182, 6, 0.1);
    color: #fcd34d;
}

.module-row.assign-type .module-type-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

.module-name {
    font-size: 14.5px;
    font-weight: 600;
}

/* Discussion Forum */
.discussion-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.discussion-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
}

.discussion-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 182, 6, 0.15);
}

.discussion-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.discussion-meta {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.discussion-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.discussion-snippet {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.discussion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.discussion-replies {
    font-size: 13px;
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Forum Details OP & replies */
.thread-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.op-post {
    border-left: 4px solid var(--brand-gold);
    background: rgba(255, 182, 6, 0.02);
}

.reply-post {
    margin-left: 45px;
    position: relative;
}

.reply-post::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.post-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 24px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.post-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border-color);
}

.post-author {
    font-size: 13.5px;
    font-weight: 700;
}

.post-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.post-body {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.65;
}

.reply-form-card {
    margin-left: 45px;
}

/* Grades & Transcript Layout */
.transcript-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.transcript-table th {
    text-align: left;
    padding: 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.transcript-table td {
    padding: 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.transcript-table tr:last-child td {
    border-bottom: none;
}

.grade-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    border: 1px solid var(--border-color);
}

.grade-badge.high {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.grade-badge.med {
    background: rgba(255, 182, 6, 0.12);
    color: var(--warning);
    border-color: rgba(255, 182, 6, 0.2);
}

/* World Class Certificate of Completion Layout (Prints beautifully) */
.certificate-seal {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-gold), #d97706);
    border: 5px double rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0c0817;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 0 35px rgba(255, 182, 6, 0.45);
    animation: rotateSlow 25s linear infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.certificate-border {
    border: 12px double var(--brand-gold);
    background: radial-gradient(circle, #180f2d 0%, #0c0818 100%);
    padding: 60px 50px;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--shadow-premium), 0 0 50px rgba(255, 182, 6, 0.1);
    overflow: hidden;
    text-align: center;
}

.certificate-border::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 2%;
    width: 96%;
    height: 90%;
    border: 2px solid rgba(255, 182, 6, 0.2);
    pointer-events: none;
}

.certificate-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 44px;
    color: var(--brand-gold);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.certificate-heading-sub {
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 600;
}

.certificate-body {
    line-height: 1.9;
    color: var(--text-primary);
}

.student-highlight {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin: 24px 0;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #ffffff, var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.certificate-text-block {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.certificate-meta {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Animations */
@keyframes floatOrb {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-50px) scale(1.1); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media(max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 0;
        padding: 30px;
    }
}

/* ==========================================================================
   Topbar Header & Profile Dropdown Styling
   ========================================================================== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 30px;
    transition: var(--transition-smooth);
    user-select: none;
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-gold);
}

.profile-trigger img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brand-gold);
}

.profile-trigger span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-sidebar);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-premium), var(--shadow-neon);
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 1000;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}

.dropdown-header .name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-header .role {
    font-size: 10px;
    color: var(--brand-gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dropdown-item.logout-item {
    color: #fca5a5;
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

