/* Main styles for the Opportunity Class Placement Mock Test */

/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header styles */
.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-display {
    font-size: 1.2rem;
    font-weight: bold;
}

.timer-labels {
    display: flex;
    font-size: 0.7rem;
    color: #666;
}

.timer-labels span {
    margin: 0 5px;
}

.hide-time-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.question-counter {
    font-size: 0.9rem;
    color: #666;
}

.question-grid-icon {
    margin-right: 20px;
}

.grid-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.grid-btn img {
    width: 24px;
    height: 24px;
}

.logo img {
    height: 60px;
}

.zoom-tool {
    display: flex;
    align-items: center;
}

.zoom-btn {
    background-color: #0047AB;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main content styles */
.quiz-content {
    margin-top: 60px;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.two-column-layout {
    display: flex;
    height: 100%;
}

.passage-column, .questions-column {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

.passage-column {
    flex: 1;
    background-color: #fff;
    border-right: 1px solid #ddd;
}

.questions-column {
    flex: 1;
    background-color: #fff;
}

.column-resizer {
    width: 10px;
    background-color: #f0f0f0;
    cursor: col-resize;
    position: relative;
}

.column-resizer::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 30px;
    background-color: #ddd;
    border-radius: 2px;
}

/* Test selection styles */
.test-selection-screen {
    padding: 20px;
}

.test-selection-screen h2 {
    margin-bottom: 20px;
    color: #0047AB;
}

.test-category {
    margin-bottom: 30px;
}

.test-category h3 {
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.test-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.test-option {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: calc(50% - 10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.test-option.selected {
    background-color: #e6f0ff;
    border-color: #0047AB;
}

.test-option h4 {
    margin-bottom: 5px;
    color: #0047AB;
}

.test-option p {
    font-size: 0.9rem;
    color: #666;
}

.start-test-btn {
    background-color: #0047AB;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.start-test-btn:hover {
    background-color: #003d91;
}

.start-test-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Passage styles */
.passage {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.passage h3 {
    margin-bottom: 15px;
    color: #0047AB;
}

.passage p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Question styles */
.question {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.6;
}

.question-image {
    margin: 15px 0;
    text-align: center;
}

.question-image img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.options-container {
    margin-bottom: 20px;
}

.option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: #f9f9f9;
}

.option.selected {
    background-color: #e6f0ff;
    border-color: #0047AB;
}

.option.correct {
    background-color: #e6ffe6;
    border-color: #4CAF50;
}

.option.incorrect {
    background-color: #ffe6e6;
    border-color: #F44336;
}

.option-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #0047AB;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
}

.option.selected .option-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #0047AB;
    border-radius: 50%;
}

.option.correct .option-circle {
    border-color: #4CAF50;
}

.option.correct .option-circle::after {
    background-color: #4CAF50;
}

.option.incorrect .option-circle {
    border-color: #F44336;
}

.option.incorrect .option-circle::after {
    background-color: #F44336;
}

.option-text {
    flex: 1;
}

.option-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* Answer buttons */
.answer-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.check-answer-btn, .explain-btn {
    background-color: #0047AB;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.check-answer-btn:hover, .explain-btn:hover {
    background-color: #003d91;
}

/* Explanation styles */
.explanation-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.feedback-message {
    font-weight: bold;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
}

.feedback-message.correct {
    background-color: #e6ffe6;
    color: #4CAF50;
}

.feedback-message.incorrect {
    background-color: #ffe6e6;
    color: #F44336;
}

.feedback-message.unanswered {
    background-color: #fff9e6;
    color: #FF9800;
}

.explanation-content h4 {
    margin-bottom: 10px;
    color: #0047AB;
}

/* Score card styles */
.score-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.score-card h3 {
    color: #0047AB;
    margin-bottom: 20px;
}

.score-display {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-percentage {
    font-size: 1.8rem;
    color: #0047AB;
    margin-bottom: 20px;
}

.score-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.score-item {
    text-align: center;
}

.score-item-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.correct-count {
    color: #4CAF50;
}

.incorrect-count {
    color: #F44336;
}

.unanswered-count {
    color: #FF9800;
}

.score-item-label {
    font-size: 0.9rem;
    color: #666;
}

/* Footer styles */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
}

.nav-btn {
    background-color: #0047AB;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background-color: #003d91;
}

.nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.flag-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.flag-btn.flagged {
    background-color: #ffe6e6;
    border-color: #F44336;
    color: #F44336;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #0047AB;
    margin-bottom: 20px;
    text-align: center;
}

.modal-buttons {
    text-align: center;
    margin-top: 20px;
}

.modal-buttons button {
    background-color: #0047AB;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-buttons button:hover {
    background-color: #003d91;
}

/* Question grid styles */
.question-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 40px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.grid-item.current {
    border: 2px solid #0047AB;
}

.grid-item.answered {
    background-color: #e6f0ff;
}

.grid-item.correct {
    background-color: #e6ffe6;
    border-color: #4CAF50;
}

.grid-item.incorrect {
    background-color: #ffe6e6;
    border-color: #F44336;
}

.grid-item.not-answered {
    background-color: #fff9e6;
    border-color: #FF9800;
}

.grid-item.not-read {
    background-color: #f9f9f9;
}

.grid-item.flagged::after {
    content: "⚑";
    position: absolute;
    top: -5px;
    right: -5px;
    color: #F44336;
    font-size: 0.8rem;
}

/* Progress summary styles */
.summary-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.stat-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    width: calc(16.66% - 10px);
    transition: all 0.2s ease;
}

.stat-box:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.stat-box.all {
    background-color: #e6f0ff;
    border-color: #0047AB;
}

.stat-box.answered {
    background-color: #e6f0ff;
    border-color: #0047AB;
}

.stat-box.incorrect {
    background-color: #ffe6e6;
    border-color: #F44336;
}

.stat-box.not-answered {
    background-color: #fff9e6;
    border-color: #FF9800;
}

.stat-box.not-read {
    background-color: #f9f9f9;
    border-color: #999;
}

.stat-box.flagged {
    background-color: #ffe6e6;
    border-color: #F44336;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.question-grid-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

/* Mobile tabs */
.mobile-tabs {
    display: none;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.mobile-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
}

.mobile-tab.active {
    background-color: #fff;
    color: #0047AB;
    border-bottom: 2px solid #0047AB;
}

/* Watermark */
.watermark {
    position: fixed;
    bottom: 70px;
    right: 20px;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 999;
    transform: rotate(-45deg);
}

/* Security message */
.security-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(244, 67, 54, 0.9);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
