:root {
    --primary: #10b981;
    --primary-light: #dcfce7;
    --secondary: #6366f1;
    --accent: #f59e0b;
    --bg-soft: #f0fdf4;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --radius: 32px;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&family=Noto+Sans+Sinhala:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans Sinhala', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f8fafc;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Layout Screens */
.screen {
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glass Card with Yellow Border */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 6px solid #FFEB3B; /* Yellow border */
    position: relative;
    overflow: visible;
}

/* Floating Emojis */
.emoji-float {
    position: absolute;
    font-size: 2.5rem;
    z-index: 20;
    pointer-events: none;
    animation: floating 3s ease-in-out infinite;
}

/* Admin Panel Overrides */
#admin-panel .glass-card-full {
    max-width: 95vw;
    height: 90vh;
    padding: 2rem;
    overflow-y: auto;
}

/* Typography */
h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 0px #fff;
}

.onboarding-subtitle {
    text-align: center;
    color: #FF5722;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

/* Inputs */
input {
    width: 100%;
    padding: 1.2rem;
    border-radius: 20px;
    border: 3px solid #4CAF50; /* Green border */
    background: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

input:focus {
    border-color: #FF5722;
    outline: none;
    box-shadow: 0 0 15px rgba(255,87,34,0.2);
    transform: translateY(-2px);
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

/* 3D Bounce Button */
.btn-primary {
    background: #FF5722;
    color: var(--white);
    border: none;
    padding: 1.2rem;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    border-bottom: 6px solid #E64A19;
    transition: all 0.1s;
    box-shadow: 0 8px 15px rgba(255, 87, 34, 0.3);
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:active {
    border-bottom-width: 0;
    transform: translateY(6px);
    box-shadow: none;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 1rem;
    border-radius: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    width: 100%;
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: 45vh;
    object-fit: contain;
    margin-bottom: -30px;
    position: relative;
    z-index: 5;
    animation: floating 3.5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

/* Language Selection */
.lang-btn {
    background: #f8fafc;
    border: 4px solid #e2e8f0;
    padding: 2rem;
    border-radius: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    border-color: #FFEB3B;
    background: #fffdf0;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 235, 59, 0.3);
}

/* Quiz Styles */
.option-btn {
    background: var(--white);
    border: 4px solid #e2e8f0;
    padding: 1.2rem;
    border-radius: 24px;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #e2e8f0;
}

.option-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.option-btn.correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    box-shadow: 0 4px 0 #059669;
}

.option-btn.wrong {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
    box-shadow: 0 4px 0 #b91c1c;
}

/* Admin Specific */
.excel-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.excel-table th {
    background: #f1f5f9;
    padding: 1rem;
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.excel-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.hidden { display: none !important; }
