:root {
    --primary-color: #CCFF00;
    --primary-hover: #b3e600;
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-color: #f0f0f0;
    --text-muted: #888888;
    --border-color: #2a2a2a;
    --input-bg: #1a1a1a;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 700px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #08080a;
    background-image: linear-gradient(to bottom, #0a0a0c, #000000);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

.app-container {
    width: 100%;
    max-width: var(--container-width);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Card Styles - Enhanced Glassmorphism */
.auth-card,
.dashboard-card,
.section-card,
.assessment-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-card::before,
.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.auth-card:hover::before,
.section-card:hover::before {
    left: 100%;
    transition: 0.7s;
}

.section-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}


.auth-card {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

h2 {
    color: var(--text-color);
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Form Elements */
.input-group {
    margin-bottom: 24px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #1f1f1f;
    box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.05);
}

/* Buttons */
button {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    width: 100%;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

button.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

button.secondary:hover {
    background: var(--input-bg);
    border-color: var(--text-muted);
    box-shadow: none;
    color: #fff;
}

/* Assessment Form Specifics */
.section-card {
    margin-bottom: 20px;
}

.section-title {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.score-display {
    background: rgba(204, 255, 0, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Toggle Rows */
.question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
}

.question-row:last-child {
    border-bottom: none;
}

.q-text {
    padding-right: 24px;
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
    width: 52px;
    height: 28px;
    position: relative;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #888;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #000;
}

/* Result Screen - Premium Design */
.result-header {
    text-align: center;
    padding: 40px 0;
}

.result-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #b3e600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    animation: slideDown 0.6s ease;
}

.result-header p {
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 20px 0;
}

.result-header p:last-of-type {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Loading Overlay - Enhanced Glassmorphism */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.loading-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(204, 255, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
    margin-bottom: 24px;
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.2);
}

.loading-overlay p {
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 1.2rem;
    margin-top: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .app-container {
        padding: 20px;
    }

    .auth-card,
    .section-card {
        padding: 24px;
    }

    .q-text {
        font-size: 0.9rem;
    }
}