/* UWorld Style Overrides for go_msra Mock Exam and Flashcards */

.uworld-mock-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f1f3f6;
    font-family: 'Open Sans', Arial, sans-serif;
}

.uworld-header {
    background-color: #1a365d;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.uworld-header .tools {
    display: flex;
    gap: 15px;
}

.uworld-header .tools button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.uworld-header .tools button:hover {
    color: #ffd700;
}

.uworld-main {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
    padding: 20px;
    gap: 20px;
}

.uworld-question-pane {
    flex: 2;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 30px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.6;
}

.uworld-option-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.uworld-option-item:hover {
    background-color: #f8fafc;
}

.uworld-option-item.selected {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

.uworld-option-item.correct {
    background-color: #ecfdf5;
    border-color: #10b981;
}

.uworld-option-item.incorrect {
    background-color: #fef2f2;
    border-color: #ef4444;
}

.uworld-option-radio {
    margin-right: 15px;
    margin-top: 2px;
}

.uworld-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: inline-block;
}

.uworld-option-item.selected .uworld-radio-circle {
    border-color: #3b82f6;
    background-color: #3b82f6;
    box-shadow: inset 0 0 0 3px white;
}

.uworld-footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uworld-btn-primary {
    background-color: #1a365d;
    color: white;
    padding: 8px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.uworld-explanation-pane {
    flex: 1;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    border-left: 4px solid #1a365d;
}

/* Flashcards UI */
.flashcard-player {
    perspective: 1000px;
    width: 600px;
    height: 400px;
    margin: 40px auto;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flashcard-player.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    font-size: 20px;
    line-height: 1.5;
}

.flashcard-back {
    transform: rotateY(180deg);
    background: #f8fafc;
    border: 2px solid #3b82f6;
}

.flashcard-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.fc-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: white;
}

.fc-again {
    background: #ef4444;
}

.fc-hard {
    background: #f59e0b;
}

.fc-good {
    background: #3b82f6;
}

.fc-easy {
    background: #10b981;
}