/* ARMK Practice App Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    margin-bottom: 30px;
    text-align: center;
}

.header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle, .header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background: #cbd5e0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
    background: #cbd5e0;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #48bb78;
    color: white;
}

.btn-secondary:hover {
    background: #38a169;
}

.btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #f7fafc;
}

.btn-back {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.btn-back:hover {
    opacity: 1;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.unit-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Goals List */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.goal-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.goal-notes {
    color: #718096;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Problem Card */
.problem-card {
    max-width: 800px;
    margin: 0 auto;
}

.question-text {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 25px;
    line-height: 1.6;
}

.answers-container {
    margin-bottom: 25px;
}

.answer-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.answer-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.answer-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option label {
    cursor: pointer;
    flex: 1;
    font-size: 1rem;
    color: #2d3748;
}

.answer-option.correct {
    background: #c6f6d5;
    border-color: #48bb78;
}

.answer-option.incorrect {
    background: #fed7d7;
    border-color: #f56565;
}

/* Result Container */
.result-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e2e8f0;
}

.result-message {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.result-message.success {
    background: #c6f6d5;
    color: #22543d;
}

.result-message.error {
    background: #fed7d7;
    color: #742a2a;
}

.explanation-container {
    background: #edf2f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.explanation-container h3 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.explanation-container #explanationText {
    color: #4a5568;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .units-grid {
        grid-template-columns: 1fr;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Error messages */
.error {
    color: #e53e3e;
    font-weight: 600;
    margin-bottom: 15px;
}

.success {
    color: #38a169;
}
