/* 
 * QWERZY CORE EXTENDED CSS
 * Shared styles for all apps - extends base qwerzy-core.css
 */

/* ==================== TABS ==================== */
.tab-btn {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active {
    background-color: var(--sand-gold);
    color: white;
}

.tab-btn:not(.active) {
    background-color: var(--navy-dark);
    color: var(--foam-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ==================== QUIZ ==================== */
.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--sand-gold);
    transition: width 0.3s ease;
}

.quiz-input {
    width: 70px;
    height: 35px;
    font-size: 1rem;
    border: 2px solid var(--ocean-surface);
    border-radius: 8px;
    padding: 0.25rem;
    text-align: center;
}

.quiz-input.correct {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.quiz-input.incorrect {
    border-color: #FF6B6B;
    background-color: rgba(255, 107, 107, 0.1);
}

.quiz-complete {
    text-align: center;
    padding: 2rem;
    background: rgba(244, 211, 94, 0.1);
    border-radius: 15px;
    border: 2px solid var(--sand-gold);
}

.quiz-complete h2 {
    color: var(--sand-gold);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.final-score {
    font-size: 2.5rem;
    color: var(--coral-orange);
    font-weight: 700;
    margin: 0.75rem 0;
}

/* ==================== PRACTICE ==================== */
.practice-input {
    width: 70px;
    height: 35px;
    font-size: 1rem;
    border: 2px solid var(--ocean-surface);
    border-radius: 8px;
    padding: 0.25rem;
    text-align: center;
}

.practice-input.correct {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.practice-input.incorrect {
    border-color: #FF6B6B;
    background-color: rgba(255, 107, 107, 0.1);
}

.feedback-message {
    min-height: 35px;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.feedback-message.correct {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-left: 4px solid #4CAF50;
}

.feedback-message.incorrect {
    background-color: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
    border-left: 4px solid #FF6B6B;
}

/* ==================== BUTTONS ==================== */
.btn-check {
    background-color: var(--coral-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-check:hover {
    background-color: #ff5722;
}

.btn-new {
    background-color: var(--light-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new:hover {
    background-color: #66bb6a;
}

.btn-submit {
    background-color: var(--sand-gold);
    color: var(--navy-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #fbc02d;
}

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

/* ==================== ALERTS ==================== */
.alert-carry {
    background: rgba(255, 193, 7, 0.3);
    border-left: 4px solid var(--coral-orange);
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--coral-orange);
    font-weight: 700;
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

/* ==================== WORKSPACE ==================== */
.workspace {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin: 0.75rem 0;
    border: 2px solid var(--ocean-surface);
}

.workspace-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
}

.workspace-col {
    text-align: center;
    padding: 0.5rem;
}

.workspace-label {
    font-size: 0.85rem;
    color: var(--sand-gold);
    font-weight: 700;
}
