* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f0f4f8; 
    color: #1a202c;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card-container {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 460px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-container.has-navbar {
    padding-bottom: 90px;
    min-height: 520px;
}

.hidden {
    display: none !important;
}

.app-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.custom-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: #ffffff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 14px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 30px;
}

.custom-google-btn:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.google-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.policies-box { border-top: 1px solid #e2e8f0; padding-top: 20px; text-align: right; }
.policy-text { font-size: 0.85rem; color: #4a5568; font-weight: 600; margin-bottom: 10px; }
.policy-list { list-style: none; }
.policy-list li { font-size: 0.8rem; color: #718096; margin-bottom: 6px; display: flex; gap: 6px; }
.policy-list li span { font-weight: bold; color: #4a5568; }

.game-header { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; margin-bottom: 15px; }
#timer { color: #e53e3e; }
#score { color: #3182ce; }

.progress-bar-container { width: 100%; height: 6px; background-color: #edf2f7; border-radius: 3px; margin-bottom: 25px; overflow: hidden; }
#progress-bar { height: 100%; width: 100%; background-color: #3182ce; transition: width 0.1s linear; }
#question-text { font-size: 1.3rem; margin-bottom: 25px; }
#options-container { display: flex; flex-direction: column; gap: 12px; }

.option-btn {
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s;
}
.option-btn:hover:not([disabled]) { background-color: #edf2f7; }
.option-btn.correct { background-color: #c6f6d5 !important; border-color: #38a169 !important; color: #22543d; }
.option-btn.wrong { background-color: #fed7d7 !important; border-color: #e53e3e !important; color: #742a2a; }

.feedback { margin-top: 20px; font-weight: 700; font-size: 1.2rem; }
.feedback.correct-text { color: #38a169; }
.feedback.wrong-text { color: #e53e3e; }

.profile-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
#user-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #3182ce;
    object-fit: cover;
}
#user-name { font-size: 1.4rem; color: #2d3748; }

.stats-container { display: flex; gap: 15px; justify-content: center; margin-bottom: 30px; }
.stat-box { flex: 1; padding: 20px; border-radius: 14px; display: flex; flex-direction: column; gap: 5px; }
.correct-stats { background-color: #f0fff4; border: 1px solid #c6f6d5; color: #22543d; }
.wrong-stats { background-color: #fff5f5; border: 1px solid #fed7d7; color: #742a2a; }
.stat-num { font-size: 2rem; font-weight: 700; }
.stat-label { font-size: 0.85rem; font-weight: 600; }

.logout-button {
    width: 100%;
    background-color: #fff;
    border: 2px solid #e53e3e;
    color: #e53e3e;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.logout-button:hover {
    background-color: #fff5f5;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.1);
}

.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}
.nav-item {
    background: none;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #a0aec0;
    width: 50%;
    height: 100%;
    justify-content: center;
    transition: all 0.2s ease;
}
.nav-item .nav-icon { font-size: 1.3rem; }
.nav-item .nav-text { font-size: 0.8rem; font-weight: 600; }
.nav-item.active { color: #3182ce; background-color: #f7fafc; }
