* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background: linear-gradient(-45deg, #f5f7fa, #e0e7ff, #dbeafe, #f5f7fa);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

body.centered-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar.open ~ .sidebar-overlay {
    display: block;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header h1 {
    font-size: 1.3rem;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-link.active {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-right: 4px solid #60a5fa;
}

.sidebar-link span:first-child {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.sidebar-link span:last-child {
    font-size: 1rem;
    font-weight: 500;
}

.main-content {
    margin-left: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.top-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #475569;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #475569;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.user-info {
    text-align: left;
}

.user-info h4 {
    font-size: 0.95rem;
    color: #1e293b;
}

.user-info p {
    font-size: 0.85rem;
    color: #64748b;
}

.dashboard-content {
    padding: 30px;
}

.welcome-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.welcome-section h2 {
    color: #1e293b;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.welcome-section p {
    color: #64748b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.6s ease forwards;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.stat-icon.green {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
}

.stat-icon.orange {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: white;
}

.stat-icon.purple {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.hero-section {
    background: linear-gradient(135deg, #1e3a8a, #7c3aed, #3b82f6);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-quote {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-style: italic;
}

.hero-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255,255,255,0.15);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 100px;
}

.countdown-value {
    display: block;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
}

.countdown-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 5px;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quick-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.quick-card:nth-child(1) { animation-delay: 0.1s; }
.quick-card:nth-child(2) { animation-delay: 0.2s; }
.quick-card:nth-child(3) { animation-delay: 0.3s; }
.quick-card:nth-child(4) { animation-delay: 0.4s; }

.quick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.quick-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.quick-card h3 {
    color: #1e3a8a;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.quick-card p {
    color: #64748b;
    margin-bottom: 20px;
}

.quick-card button {
    opacity: 1;
    animation: none;
    padding: 10px 25px;
    font-size: 0.95rem;
}

.stats-section {
    margin-bottom: 30px;
}

.stats-header {
    margin-bottom: 20px;
}

.stats-header h2 {
    color: #1e3a8a;
    font-size: 1.8rem;
}

.progress-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.progress-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease forwards;
}

.progress-card h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.progress-bar-container {
    width: 100%;
    height: 16px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1e40af, #7c3aed, #3b82f6);
    border-radius: 10px;
    transition: width 1s ease;
}

.progress-text {
    color: #64748b;
    font-weight: 600;
}

.circular-progress-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.circular-progress {
    position: relative;
    width: 160px;
    height: 160px;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress .bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 10;
}

.circular-progress .fg {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.circular-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    opacity: 0.1;
}

.circular-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circular-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.circular-label {
    display: block;
    color: #64748b;
    font-weight: 600;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .progress-section {
        grid-template-columns: 1fr;
    }
}

.stat-info h3 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.stat-info p {
    color: #64748b;
    font-size: 0.95rem;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.section-header h3 {
    color: #1e293b;
    font-size: 1.3rem;
}

.view-all-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.exam-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
    transition: all 0.2s !important;
    animation: fadeInUp 0.6s ease forwards !important;
    background: white !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.exam-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.exam-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.exam-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.exam-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.exam-icon.cyan {
    background: #cffafe;
    color: #0891b2;
}

.exam-icon.amber {
    background: #fef3c7;
    color: #d97706;
}

.exam-details h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.exam-meta {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

.exam-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.start-exam-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.exam-date {
    color: #64748b;
    font-size: 0.85rem;
}

.result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 15px;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.result-icon {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.result-details h4 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 4px;
}

.result-details p {
    color: #64748b;
    font-size: 0.9rem;
}

.result-score {
    text-align: right;
}

.result-score .score-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #22c55e;
    display: block;
}

.view-result-btn {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 20px;
    }
    
    .exam-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .exam-actions {
        width: 100%;
        align-items: flex-start;
    }
    
    .result-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .result-score {
        text-align: left;
    }
}

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 1400px;
    animation: fadeInUp 0.8s ease forwards;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header h1 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: #64748b;
    font-size: 1.1rem;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    animation: fadeInUp 0.6s ease forwards;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.2);
    border-color: #3b82f6;
    animation: pulse 0.5s ease;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.card h2 {
    color: #1e40af;
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.card p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

button {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

button.secondary {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
}

button.secondary:hover {
    background: #eff6ff;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.2);
}

button.danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

button.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 22px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e3a8a;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-group input:focus + label,
.form-group select:focus + label {
    color: #3b82f6;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #93c5fd;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

nav h2 {
    color: #1e40af;
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-links button {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.nav-links button:hover {
    background: #eff6ff;
}

.welcome-card {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.welcome-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.welcome-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
}

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

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table th,
table td {
    padding: 16px;
    text-align: left;
}

table th {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    font-weight: 600;
    color: white;
}

table tr:nth-child(even) {
    background: #f8fafc;
}

table tr:hover {
    background: #eff6ff;
}

.question-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.question-number {
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #1e293b;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.option:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.option.selected {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
}

.option.correct {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    border-color: transparent;
}

.option.wrong {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border-color: transparent;
}

.option input {
    cursor: pointer;
    transform: scale(1.3);
}

.timer {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exam-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.exam-nav-buttons {
    display: flex;
    gap: 15px;
}

.result-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.score {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.percentage {
    font-size: 1.8rem;
    color: #475569;
    margin-bottom: 30px;
}

.pass-fail {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.pass {
    color: #16a34a;
}

.fail {
    color: #dc2626;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.summary-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
}

.summary-item h3 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.summary-item p {
    color: #475569;
    font-weight: 600;
}

.summary-item.correct h3 {
    color: #16a34a;
}

.summary-item.wrong h3 {
    color: #dc2626;
}

.summary-item.total h3 {
    color: #1e40af;
}

.about-section,
.contact-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    margin-top: 40px;
}

.about-section h2,
.contact-section h2 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.about-section p,
.contact-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.contact-item h4 {
    color: #1e40af;
    margin-bottom: 8px;
}

.contact-item p {
    color: #475569;
    margin: 0;
}

.profile-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-card h3 {
    color: #1e40af;
    margin-bottom: 20px;
}

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

.profile-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
}

.profile-item label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.profile-item p {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .exam-nav {
        flex-direction: column;
    }
    
    .exam-nav-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .score {
        font-size: 3.5rem;
    }
    
    .result-card {
        padding: 30px;
    }
}
