/* There is a simple use of AI in the styling of this site */


/* ----- CSS Variables ----- */
:root {
    --color-primary: #94dfec;
    --color-primary-dark: #77bfe1;
    --bg-dark: #0a0a0f;
    --bg-card: #1e1e2e;
    --bg-card-alt: #2a2a3e;
    --bg-nav: rgba(17, 17, 27, 0.95);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-section: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    --gradient-section-alt: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-cta: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    --gradient-btn: linear-gradient(135deg, #94dfec, #77bfe1);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --text-primary: #cdd6f4;
    --text-heading: #f5e0dc;
    --text-white: #ffffff;
    --text-dark: #0a0a0f;
    --accent-cyan: #94dfec;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --border-subtle: rgba(148, 223, 236, 0.1);
    --border-visible: rgba(148, 223, 236, 0.3);
    --overlay-light: rgba(255, 255, 255, 0.05);
    --overlay-cyan: rgba(148, 223, 236, 0.1);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ----- Base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(148, 223, 236, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 224, 220, 0.05) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { 
    color: var(--text-heading); 
    font-weight: 700;
}

a { 
    color: var(--accent-cyan); 
    text-decoration: none;
    transition: color 0.3s;
}

a:hover { color: var(--color-primary-dark); }

/* ----- Header ----- */
header {
    background-color: var(--bg-nav);
    backdrop-filter: blur(10px);
    width: 100%;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.navbar {
    padding: 1rem 2rem;
    width: 100%;
}

.navbar-brand { 
    color: var(--text-white) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar a { color: var(--text-white) !important; }

.navbar .nav-link {
    margin: 0 0.5rem;
    transition: opacity 0.3s;
}

.navbar .nav-link:hover { opacity: 0.8; }

.navbar .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.navbar .btn-danger {
    background: var(--gradient-danger);
    border: none;
}

.navbar .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.navbar-toggler { border-color: var(--border-visible); }

.navbar-toggler-icon { 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Flash Messages ----- */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.alert {
    background: var(--gradient-btn);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(148, 223, 236, 0.4);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ----- Footer ----- */
footer {
    width: 100%;
    background: linear-gradient(to top, var(--bg-dark), #11111b);
    padding: 2rem 15px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-list li {
    color: var(--text-primary);
    opacity: 0.8;
}

/* ----- Buttons ----- */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-btn);
    color: var(--text-dark) !important;
    box-shadow: 0 5px 20px rgba(148, 223, 236, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(148, 223, 236, 0.4);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent-cyan);
    color: var(--accent-cyan) !important;
}

.btn-secondary:hover {
    background: var(--overlay-cyan);
    transform: translateY(-2px);
}

/* ----- Homepage ----- */
.homepage {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.homepage section {
    padding: 4rem 2rem;
}

.hero {
    text-align: center;
    padding: 8rem 2rem 6rem;
    background: var(--gradient-hero);
    border-bottom: 2px solid var(--border-visible);
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
    color: var(--text-white);
    text-shadow: 0 4px 20px rgba(148, 223, 236, 0.3);
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.hero-actions .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.overview, .features, .vision {
    background: var(--bg-dark);
}

.how-it-works, .testimonials {
    background: var(--gradient-section-alt);
}

.demo-info {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.overview h2, .how-it-works h2, .features h2,
.demo-info h2, .vision h2, .testimonials h2 {
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.overview p, .demo-info p {
    font-size: 1.15rem;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    text-align: center;
    line-height: 1.8;
}

.vision {
    text-align: center;
    padding: 5rem 2rem;
}

.vision p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
}

.how-it-works .cards-list,
.features .cards-list,
.testimonials .cards-list {
    display: grid;
    gap: 2rem;
    list-style: none;
}

.how-it-works .cards-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    counter-reset: step-counter;
}

.features .cards-list,
.testimonials .cards-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.how-it-works .cards-list li,
.features .cards-list li,
.testimonials .cards-list li {
    background: var(--overlay-light);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s;
}

.how-it-works .cards-list li {
    counter-increment: step-counter;
    position: relative;
}

.how-it-works .cards-list li::before {
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--gradient-btn);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.features .cards-list li {
    background: var(--gradient-section);
    border-radius: 20px;
}

.testimonials .cards-list li {
    border-left: 4px solid var(--accent-cyan);
    border-radius: 20px;
    font-style: italic;
    position: relative;
}

.testimonials .cards-list li::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(148, 223, 236, 0.3);
    line-height: 1;
}

.how-it-works .cards-list li:hover,
.features .cards-list li:hover,
.testimonials .cards-list li:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.cta {
    text-align: center;
    background: var(--gradient-cta);
    padding: 5rem 2rem;
}

.cta h2 {
    color: var(--text-white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta .btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* ----- Quiz Pages ----- */
.Question-section {
    max-width: 100%;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--gradient-section);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

.Question-section h4 { 
    font-size: 1.6rem; 
    margin-bottom: 2rem;
    color: var(--accent-cyan);
}

.Question-section p { 
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.users_answer {
    width: 100%;
    padding: 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
    border: 2px solid var(--border-subtle);
    background: var(--overlay-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #f2f4fd;
}

.users_answer:hover:not(:disabled) {
    border-color: var(--accent-cyan);
    background: var(--overlay-cyan);
    transform: translateX(5px);
}

.users_answer:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.feedback {
    font-style: italic;
    color: var(--text-heading);
    padding: 1.5rem;
    background: var(--overlay-cyan);
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
    margin-top: 1.5rem;
}

#next-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    margin-top: 1.5rem;
}

/* ----- Topic Selection ----- */
.topic-section, .difficulty-section, .count-sections {
    max-width: 100%;
    margin: 0;
    padding: 4rem 2rem;
    background: var(--gradient-section);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.topic-section h2, .difficulty-section h2, .count-sections h2 {
    color: var(--accent-cyan);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    text-align: center;
}

.topic-section label {
    display: block;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-subtle);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.topic-section label::before {
    content: '📚';
    font-size: 1.5rem;
    margin-right: 0.75rem;
    transition: transform 0.3s;
    display: inline-block;
    vertical-align: middle;
}

.topic-section label:has(input[value*="uncategorized"])::before { content: '📋'; }
.topic-section label:has(input[value*="linux"])::before { content: '🐧'; }
.topic-section label:has(input[value*="bash"])::before { content: '💻'; }
.topic-section label:has(input[value*="docker"])::before { content: '🐳'; }
.topic-section label:has(input[value*="sql"])::before { content: '🗄️'; }
.topic-section label:has(input[value*="postgresql"])::before { content: '🐘'; }
.topic-section label:has(input[value*="cms"])::before { content: '🧩'; }
.topic-section label:has(input[value*="code"])::before { content: '🧑‍💻'; }
.topic-section label:has(input[value*="devops"])::before { content: '🔧'; }
.topic-section label:has(input[value*="react"])::before { content: '⚛️'; }
.topic-section label:has(input[value*="vuejs"])::before { content: '🟢'; }
.topic-section label:has(input[value*="laravel"])::before { content: '🟥'; }
.topic-section label:has(input[value*="django"])::before { content: '🦎'; }
.topic-section label:has(input[value*="cpanel"])::before { content: '🎛️'; }
.topic-section label:has(input[value*="nodejs"])::before { content: '🟩'; }
.topic-section label:has(input[value*="wordpress"])::before { content: '📝'; }
.topic-section label:has(input[value*="next-js"])::before { content: '⏭️'; }
.topic-section label:has(input[value*="kafka"])::before { content: '📡'; }
.topic-section label:has(input[value*="html"])::before { content: '🌐'; }

.topic-section label:hover {
    background: var(--overlay-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(148, 223, 236, 0.2);
}

.topic-section label:hover::before {
    transform: scale(1.2);
}

.topic-section input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.topic-section label:has(input[type="checkbox"]:checked) {
    background: var(--overlay-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(148, 223, 236, 0.3);
}

.difficulty-section label {
    display: block;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-subtle);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    position: relative;
}

.difficulty-section label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-radius: 16px 0 0 16px;
    transition: width 0.3s;
}

.difficulty-section label:has(input[value="Easy"]) { color: var(--accent-green); }
.difficulty-section label:has(input[value="Easy"])::before {
    background: linear-gradient(to bottom, var(--accent-green), #059669);
}
.difficulty-section label:has(input[value="Easy"])::after {
    content: '✨ Perfect for beginners';
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-green);
}

.difficulty-section label:has(input[value="Medium"]) { color: var(--accent-orange); }
.difficulty-section label:has(input[value="Medium"])::before {
    background: linear-gradient(to bottom, var(--accent-orange), #d97706);
}
.difficulty-section label:has(input[value="Medium"])::after {
    content: '🎯 Test your knowledge';
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-orange);
}

.difficulty-section label:has(input[value="Hard"]) { color: var(--accent-red); }
.difficulty-section label:has(input[value="Hard"])::before {
    background: linear-gradient(to bottom, var(--accent-red), #dc2626);
}
.difficulty-section label:has(input[value="Hard"])::after {
    content: '🔥 Challenge yourself';
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-red);
}

.difficulty-section label:hover {
    background: var(--overlay-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(148, 223, 236, 0.2);
}

.difficulty-section label:hover::before {
    width: 10px;
}

.difficulty-section input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.difficulty-section label:has(input[type="radio"]:checked) {
    background: var(--overlay-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(148, 223, 236, 0.2);
}

.count-sections {
    text-align: center;
}

.count-sections input[type="number"] {
    width: 100%;
    max-width: 300px;
    padding: 1.25rem;
    background: var(--overlay-light);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.3rem;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}

.count-sections input[type="number"]:focus {
    border-color: var(--accent-cyan);
    outline: none;
    background: var(--overlay-cyan);
    box-shadow: 0 0 20px rgba(148, 223, 236, 0.2);
}

form:has(.topic-section) button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    background: var(--gradient-btn);
    color: var(--text-dark);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(148, 223, 236, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

form:has(.topic-section) button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(148, 223, 236, 0.5);
}

/* ----- Results Page ----- */
.results-details {
    max-width: 100%;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--gradient-section);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

.results-details h1, .results-details h2 {
    color: var(--accent-cyan);
    margin-bottom: 2rem;
}

.results-details p { 
    font-size: 1.2rem; 
    margin-bottom: 1.5rem; 
}

.results-details ul { 
    list-style: none; 
    padding: 0; 
}

.results-details li {
    background: var(--overlay-light);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
    transition: all 0.3s;
}

.results-details li:hover {
    background: rgba(148, 223, 236, 0.08);
    transform: translateX(5px);
}

.results-details li strong {
    color: var(--text-heading);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.results-details a {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-btn);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(148, 223, 236, 0.3);
}

.results-details a:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(148, 223, 236, 0.4);
}

/* ----- Auth Pages ----- */
.auth-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--gradient-section);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

.auth-container h2 {
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-container .form-group {
    display: flex;
    flex-direction: column;
}

.auth-container label {
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.auth-container input {
    padding: 1rem;
    background: var(--overlay-light);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-container input:focus {
    border-color: var(--accent-cyan);
    outline: none;
    background: rgba(148, 223, 236, 0.05);
}

.auth-container button[type="submit"] {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
}

.auth-container p {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-primary);
}

.history-section {
    max-width: 1400px;
    width: 100%;
    margin: 3rem auto;
}

.history-section .table-responsive {
    margin-top: 2rem;
    overflow-x: auto;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}

/* TABLE BASE */
.history-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: #cdd6f4;
}

/* HEADER */
.history-section thead th {
    background: linear-gradient(
        135deg,
        rgba(148, 223, 236, 0.2),
        rgba(148, 223, 236, 0.1)
    );
    color: #94dfec;
    padding: 1.25rem 1rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(148, 223, 236, 0.3);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BODY CELLS */
.history-section tbody td {
    background: rgba(30, 30, 46, 0.5);
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(148, 223, 236, 0.08);
    transition: background 0.3s ease, transform 0.3s ease;
}

/* REMOVE BORDER ON LAST ROW */
.history-section tbody tr:last-child td {
    border-bottom: none;
}

/* TABLE BODY - DARK ROWS */
.history-section table tbody,
.history-section .table tbody {
    background: transparent !important;
}

.history-section table tbody tr,
.history-section .table tbody tr,
.history-section table > tbody > tr,
.history-section .table > tbody > tr {
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.history-section table tbody td,
.history-section .table tbody td,
.history-section table tbody tr td,
.history-section .table tbody tr td,
.history-section table > tbody > tr > td,
.history-section .table > tbody > tr > td {
    background-color: rgba(30, 30, 46, 0.5) !important;
    background: rgba(30, 30, 46, 0.5) !important;
    color: #cdd6f4 !important;
    padding: 1.25rem 1rem !important;
    border: none !important;
    border-bottom: 1px solid rgba(148, 223, 236, 0.08) !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

/* HOVER EFFECT */
.history-section table tbody tr:hover,
.history-section .table tbody tr:hover,
.history-section table > tbody > tr:hover,
.history-section .table > tbody > tr:hover {
    background: rgba(148, 223, 236, 0.08) !important;
    transform: translateX(3px) !important;
}

.history-section table tbody tr:hover td,
.history-section .table tbody tr:hover td,
.history-section table > tbody > tr:hover > td,
.history-section .table > tbody > tr:hover > td {
    background-color: rgba(148, 223, 236, 0.1) !important;
    background: rgba(148, 223, 236, 0.1) !important;
    color: #cdd6f4 !important;
}

/* LAST ROW */
.history-section table tbody tr:last-child td,
.history-section .table tbody tr:last-child td {
    border-bottom: none !important;
}

.history-card {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.5), rgba(42, 42, 62, 0.3));
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
    transition: all 0.3s;
    border: 1px solid var(--border-subtle);
}

.history-card:hover {
    background: linear-gradient(135deg, rgba(148, 223, 236, 0.08), rgba(42, 42, 62, 0.4));
    transform: translateX(5px);
    border-color: var(--border-visible);
    box-shadow: 0 5px 15px rgba(148, 223, 236, 0.15);
}

.history-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.history-card p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

/* ----- About Page ----- */
.about-container {
    max-width: 100%;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--gradient-section);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

.about-container h1 {
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-container h2 {
    color: var(--accent-cyan);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-container p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ----- Mobile Responsive ----- */
@media (max-width: 768px) {
    .homepage section { padding: 3rem 1.5rem; }
    
    .hero {
        padding: 5rem 1.5rem 4rem;
    }
    
    .hero h1 { font-size: 2.2rem; }
    
    .hero p { font-size: 1rem; }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn { width: 100%; }
    
    .overview h2, .how-it-works h2, .features h2, 
    .demo-info h2, .vision h2, .testimonials h2, .cta h2 {
        font-size: 1.8rem;
    }
    
    .how-it-works .cards-list,
    .features .cards-list,
    .testimonials .cards-list {
        grid-template-columns: 1fr;
    }
    
    .Question-section,
    .topic-section,
    .difficulty-section,
    .count-sections,
    .results-details,
    .auth-container,
    .history-section,
    .about-container {
        padding: 2rem 1.5rem;
        margin: 2rem 0.5rem;
    }
    
    .navbar { 
        padding: 1rem 1.5rem;
    }
    
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
    
    /* Mobile table - swipe horizontal */
    .history-section .table-responsive {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .history-section table,
    .history-section .table {
        min-width: 600px !important;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    
    .navbar .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}