/* AWS Mock Test Exam Styles */

:root {
    --aws-orange: #FF9900;
    --aws-blue: #232F3E;
    --aws-light-blue: #37475A;
    --aws-gray: #F2F2F2;
    --aws-dark-gray: #666666;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --warning-yellow: #ffc107;
    --info-blue: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amazon Ember', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: var(--aws-blue);
    line-height: 1.6;
}

/* Header Styles */
.aws-header {
    background: linear-gradient(135deg, var(--aws-blue) 0%, var(--aws-light-blue) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aws-logo {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.aws-logo i {
    color: var(--aws-orange);
    margin-right: 0.5rem;
}

.exam-info .badge {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Screen Management */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome Screen */
.welcome-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.aws-icon {
    font-size: 4rem;
    color: var(--aws-orange);
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #0c5460;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.alert-info i {
    margin-right: 0.5rem;
}

/* Instructions Screen */
.instructions-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.instructions-card h2 {
    color: var(--aws-blue);
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--aws-orange);
    padding-bottom: 1rem;
}

.exam-rules, .exam-topics, .exam-tips {
    background: var(--aws-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.exam-rules h4, .exam-topics h4, .exam-tips h4 {
    color: var(--aws-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.exam-rules ul, .exam-topics ul, .exam-tips ul {
    list-style: none;
    padding-left: 0;
}

.exam-rules li, .exam-topics li, .exam-tips li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    position: relative;
    padding-left: 1.5rem;
}

.exam-rules li:before, .exam-topics li:before, .exam-tips li:before {
    content: "✓";
    color: var(--success-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Exam Screen */
.exam-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.exam-header {
    background: var(--aws-blue);
    color: white;
    padding: 1.5rem;
    border-bottom: 3px solid var(--aws-orange);
}

.timer-container {
    font-size: 1.2rem;
    font-weight: 600;
}

.timer-container i {
    color: var(--aws-orange);
    margin-right: 0.5rem;
}

.progress-container {
    text-align: center;
}

#question-counter {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.2);
}

.progress-bar {
    background-color: var(--aws-orange);
    transition: width 0.3s ease;
}

/* Question Container */
.question-container {
    padding: 2rem;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--aws-blue);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.options-container {
    margin-bottom: 2rem;
}

.option-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-item:hover {
    background: #e9ecef;
    border-color: var(--aws-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.option-item.selected {
    background: var(--aws-orange);
    color: white;
    border-color: var(--aws-orange);
}

.option-item.correct {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.option-item.incorrect {
    background: var(--danger-red);
    color: white;
    border-color: var(--danger-red);
}

.option-item input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Question Navigator */
.question-navigator {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.question-navigator h5 {
    color: var(--aws-blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--aws-orange);
    padding-bottom: 0.5rem;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.question-number {
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.question-number:hover {
    border-color: var(--aws-orange);
    background: var(--aws-orange);
    color: white;
}

.question-number.answered {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.question-number.current {
    background: var(--aws-orange);
    color: white;
    border-color: var(--aws-orange);
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.question-number.unanswered {
    background: white;
    color: var(--aws-dark-gray);
    border-color: #e9ecef;
}

.navigator-legend {
    font-size: 0.9rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.legend-dot.answered {
    background: var(--success-green);
}

.legend-dot.current {
    background: var(--aws-orange);
}

.legend-dot.unanswered {
    background: #e9ecef;
    border: 1px solid #ccc;
}

/* Results Screen */
.results-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.results-icon {
    font-size: 4rem;
    color: var(--aws-orange);
    margin-bottom: 1rem;
}

.score-summary {
    margin: 2rem 0;
}

.score-card {
    text-align: center;
    padding: 2rem;
    background: var(--aws-gray);
    border-radius: 15px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--aws-blue);
    margin-bottom: 0.5rem;
}

.score-label {
    font-size: 1rem;
    color: var(--aws-dark-gray);
    font-weight: 600;
}

.pass-fail-status {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.pass-fail-status.pass {
    background: #d4edda;
    color: #155724;
    border: 3px solid var(--success-green);
}

.pass-fail-status.fail {
    background: #f8d7da;
    color: #721c24;
    border: 3px solid var(--danger-red);
}

.detailed-results {
    margin-top: 3rem;
}

.detailed-results h4 {
    color: var(--aws-blue);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--aws-orange);
    padding-bottom: 0.5rem;
}

.question-review-item {
    background: var(--aws-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 5px solid transparent;
}

.question-review-item.correct {
    border-left-color: var(--success-green);
    background: #d4edda;
}

.question-review-item.incorrect {
    border-left-color: var(--danger-red);
    background: #f8d7da;
}

.question-review-item h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.answer-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.answer-status.correct {
    background: var(--success-green);
    color: white;
}

.answer-status.incorrect {
    background: var(--danger-red);
    color: white;
}

.correct-answer {
    background: var(--success-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Footer */
.aws-footer {
    background: var(--aws-blue);
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--aws-orange);
    border-color: var(--aws-orange);
}

.btn-primary:hover {
    background: #e68900;
    border-color: #e68900;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-green);
    border-color: var(--success-green);
}

.btn-danger {
    background: var(--danger-red);
    border-color: var(--danger-red);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-card, .instructions-card, .results-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .exam-header {
        padding: 1rem;
    }
    
    .question-container {
        padding: 1.5rem;
    }
    
    .question-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .question-navigator {
        margin-top: 2rem;
        position: static;
    }
    
    .question-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .score-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .aws-logo {
        font-size: 1.2rem;
    }
    
    .exam-info .badge {
        display: block;
        margin: 0.25rem 0;
    }
    
    .question-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .question-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .aws-header, .aws-footer, .question-navigation, .question-navigator {
        display: none !important;
    }
    
    .exam-container, .results-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 