:root {
    --brand-primary: #00f0ff; /* Vibrant teal accent */
    --brand-secondary: #7b2cbf; /* Deep purple */
    --brand-gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    
    --bg-base: #0f172a; /* Deep navy base */
    --bg-card: rgba(30, 41, 59, 0.7); /* Semi-transparent card */
    --bg-glass: rgba(255, 255, 255, 0.05); /* Glass effect */
    
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-accent: var(--brand-primary);
    
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: var(--brand-primary);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(0, 240, 255, 0.3);
    
    --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Roboto Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 80% 0%, rgba(123, 44, 191, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(0, 240, 255, 0.15) 0px, transparent 50%);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Navigation */
.app-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 40px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}


.app-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: var(--transition-base);
}

.nav-link:hover, 
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px auto;
    transition: var(--transition-base);
}

/* Cards & Sections */
.profile-card, 
.semester-card, 
.card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.profile-card:hover,
.semester-card:hover,
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.profile-card h2, 
.section-title, 
.semester-card h3, 
.card h4 {
    margin-top: 0;
    color: var(--text-accent);
    font-weight: 600;
}

.profile-info p {
    margin: 0.75rem 0;
    color: var(--text-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

/* Results Table */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.results-table th, 
.results-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.results-table th {
    background: rgba(0, 240, 255, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--text-accent);
}

.results-table tbody tr {
    transition: var(--transition-fast);
}

.results-table tbody tr:hover {
    background: rgba(0, 240, 255, 0.05);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.summary-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.summary-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-accent);
}

.summary-card p {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-card .card-footer {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 4px solid transparent;
    transition: var(--transition-base);
}

.alert:hover {
    transform: translateX(2px);
}

.alert-warning {
    background: rgba(255, 196, 0, 0.1);
    color: #ffc400;
    border-left-color: #ffc400;
}

.alert-info {
    background: rgba(0, 240, 255, 0.1);
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
}

/* Grade Colors */
.grade-a { color: #00ffaa; }
.grade-b { color: #50ff7b; }
.grade-c { color: #a0ff50; }
.grade-d { color: #f6ad55; }
.grade-e { color: #ff7b50; }
.grade-f, .grade-nr, .grade-abs { color: #ff5050; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        padding: 1rem;
    }

    .header-content {
        flex-wrap: wrap;
    }
    
    .app-title {
        font-size: 1.3rem;
    }
    
    .logo-container {
        width: 100%;
        justify-content: space-between;
    }

    .main-nav {
        width: 100%;
        order: 2;
        margin-top: 1rem;
    }

    .nav-list {
        flex-direction: column;
        display: none;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
        background: var(--bg-card);
        backdrop-filter: blur(12px);
        border-radius: var(--radius-md);
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    .nav-list.is-active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.is-active .icon-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.is-active .icon-bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.is-active .icon-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .dashboard-main {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
    
    .results-table th, 
    .results-table td {
        padding: 0.75rem;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }
}

/* Dark mode toggle (optional) */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    cursor: pointer;
    margin-left: 1rem;
    transition: var(--transition-base);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-primary);
    transition: var(--transition-base);
}

.theme-toggle.active::after {
    transform: translateX(24px);
}