/* Syllabus Container */
#syllabus-container {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9fbfd; /* Light background for sections */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for distinction */
}

/* Grade Section */
.grade-section {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #ffffff; /* White background for clarity */
}

.grade-section h4 {
    cursor: pointer;
    margin: 0;
    padding: 8px;
    background-color: #e0f7fa; /* Light teal for a friendly tone */
    border-radius: 3px;
    color: #00796b; /* Dark teal for text */
    transition: background-color 0.3s ease;
}

.grade-section h4:hover {
    background-color: #b2ebf2; /* Slightly brighter teal on hover */
}

/* Subject Section */
.subject-container, .category-container, .subcategory-container {
    display: none; /* Hidden by default, toggled dynamically */
    margin-left: 20px;
}

.subject-section h5 {
    cursor: pointer;
    margin: 0;
    padding: 6px;
    background-color: #c8e6c9; /* Light green for subject titles */
    border-radius: 3px;
    color: #388e3c; /* Dark green for text */
    transition: background-color 0.3s ease;
}

.subject-section h5:hover {
    background-color: #a5d6a7; /* Slightly brighter green on hover */
}

/* Category Section */
.category-section h6 {
    cursor: pointer;
    margin: 0;
    padding: 5px;
    background-color: #ffecb3; /* Soft yellow for category titles */
    border-radius: 3px;
    color: #f57f17; /* Deep yellow for text */
    transition: background-color 0.3s ease;
}

.category-section h6:hover {
    background-color: #ffe082; /* Brighter yellow on hover */
}

/* Subcategory Section */
.subcategory-container p {
    cursor: pointer;
    margin: 5px 0;
    padding: 5px;
    background-color: #d7ffd9; /* Very light green for subcategories */
    border-radius: 3px;
    color: #2e7d32; /* Deep green for text */
    transition: background-color 0.3s ease;
}

.subcategory-container p:hover {
    background-color: #b9f6ca; /* Brighter green on hover */
}

/* Questions Section */
.question-box {
    background: #ffffff; /* White background */
    border-radius: 10px; /* Smooth rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 20px; /* Spacious padding */
    margin-bottom: 15px; /* Spacing between questions */
}

/* Style the question text */
.question-text {
    font-size: 20px; /* Increase font size */
    font-weight: bold;
    color: #333; /* Darker text */
    margin-bottom: 10px;
}

.question-box h3, .question-box p {
    margin: 10px 0;
    color: #333; /* Neutral text color */
}

.options-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.option-item {
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    background-color: #e3f2fd; /* Light blue for options */
    color: #1e88e5; /* Deep blue for text */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.option-item:hover {
    background-color: #bbdefb; /* Slightly darker blue on hover */
    transform: scale(1.02); /* Subtle zoom on hover */
}

.option-item.selected {
    background-color: #81c784; /* Green background for selected option */
    color: #2e7d32; /* Dark green text for selected option */
}

/* Evaluation Results */
.correct-answer {
    background-color: #dcedc8; /* Light green for correct answers */
    color: #33691e; /* Deep green for text */
}

.selected-answer {
    background-color: #ffccbc; /* Light red for wrong selected answers */
    color: #d84315; /* Deep red for text */
}

.explanation {
    font-size: 1.2em;  /* Slightly larger font size for clarity */
    color: #444;  /* Slightly darker gray for better contrast */
    margin-top: 15px;  /* Increased margin for spacing */
    background-color: #f9f9f9;  /* Softer light gray for background */
    padding: 20px;  /* Spacious padding for comfort */
    border-radius: 10px;  /* Smooth, rounded corners */
    line-height: 1.8;  /* Optimal line spacing for readability */
    font-family: 'Verdana', sans-serif;  /* Clean and readable font */
    border: 1px solid #ddd;  /* Subtle border for structure */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Soft shadow for depth */
}




.question-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Styling for the context */
.context {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 4px solid #007bff; /* Adds a blue line for emphasis */
}


.question-context {
    font-size: 1.2em; /* Adjust font size as needed */
    font-weight: bold; /* Ensure the text is bold */
    color: #333; /* Neutral text color */
    margin: 10px 0; /* Ensure spacing is consistent */
}


.no-options-message {
    color: red;
    font-style: italic;
}
.ai-enhanced {
    margin-top: 5px;
    font-size: 0.9em;
    color: #00796b; /* Match existing teal color */
    font-weight: bold;
    text-align: center;
}

/* Styles for question images */
.question-image {
    display: block; /* Ensure images are displayed as block elements */
    margin: 10px auto; /* Center-align images and add spacing */
    max-width: 100%; /* Ensure the image doesn't exceed the container width */
    height: auto; /* Maintain the aspect ratio */
    max-height: 300px; /* Set a maximum height for readability */
    overflow: hidden; /* Prevent any overflow issues */
    border: 1px solid #ccc; /* Optional: Add a border for clarity */
    border-radius: 5px; /* Optional: Add rounded corners for a polished look */
    padding: 5px; /* Optional: Add padding around the image */
    background-color: #f9f9f9; /* Optional: Add a light background for better visibility */
}

.left-pane {
    width: 25%;
    background: #f9f9f9;
    border-right: 1px solid #ccc;
    transition: width 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.left-pane.collapsed {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

/* Toggle button styling */
.toggle-btn {
    padding: 10px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background: #0056b3;
}

.right-pane {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    transition: flex 0.3s ease;
}

.right-pane.expanded {
    flex: 1 1 100%;
}

.evaluating-message {
    background-color: #e6f7ff; /* Light modern blue */
    color: #0056b3; /* Deep blue for contrast */
    font-size: 16px;
    padding: 10px; /* Reduced padding for a less dominant look */
    border-radius: 8px; /* Softer rounded corners */
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.loading-message { 
    background-color: #f0f8ff; /* Light blue modern shade */
    color: #003366; /* Deep blue for readability */
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}
 /* Background overlay */
 #overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 999;
}

/* Modal Box */
#browserModal {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-align: center;
}

/* Close Button */
#closeModal {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Warning Message */
#browserModal h2 {
    color: #d9534f;
    font-size: 18px;
}

/* Open in Browser Button */
#openInBrowserBtn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
}

/* Copyable Input */
#manualLink {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f8f8f8;
    margin-top: 10px;
}

/* Styles for the input box in input-type questions */
.input-answer {
    width: 100%; /* Full width to fit container */
    max-width: 600px; /* Limit max width for better readability */
    padding: 12px 15px; /* Comfortable padding */
    font-size: 18px; /* Large, readable font */
    border: 2px solid #4CAF50; /* Green border for a modern look */
    border-radius: 8px; /* Smooth rounded corners */
    outline: none; /* Remove default focus outline */
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition for focus effect */
}

/* Hover effect */
.input-answer:hover {
    border-color: #388E3C; /* Darker green on hover */
}

/* Focus effect (when user clicks on it) */
.input-answer:focus {
    border-color: #2E7D32; /* Dark green for focus */
    box-shadow: 0px 0px 8px rgba(76, 175, 80, 0.6); /* Glow effect */
}

/* Placeholder styling */
.input-answer::placeholder {
    color: #757575; /* Light gray for guidance */
    font-style: italic;
}

.inline-details {
    display: flex;
    gap: 0.5rem; /* spacing around the | */
    align-items: center;
}
.inline-details span {
    white-space: nowrap; /* prevents wrapping */
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left buttons vs right heading */
    padding: 0.5rem 1rem;
    border-bottom: 2px solid #ddd;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.separator {
    color: #666;
    font-weight: bold;
}

.toggle-btn,
.btn-link {
    border: 1px solid #007BFF;
    background: #f9f9f9;
    color: #007BFF;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.toggle-btn:hover,
.btn-link:hover {
    background: #007BFF;
    color: #fff;
}

.btn-link.active {
    background: #007BFF;
    color: #fff;
    font-weight: bold;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.btn:disabled {
    background: #ccc;
    border: 1px solid #aaa;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}
.evaluation-meta span {
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #f3f4f6;
    margin-right: 8px;
    font-size: 13px;
    color: #374151;
}
.difficulty-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
}
#selectedDifficultyLevel {
    font-weight: bold;
    color: #333;
}

.difficulty-level {
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

.difficulty-level.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.guest-message {
  background-color: #fff8dc;
  border: 1px solid #f4c542;
  border-radius: 8px;
  padding: 10px 15px;
  margin: 10px 0;
  color: #444;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    #syllabus-container {
        padding: 10px;
    }

    .grade-section, .question-box {
        padding: 10px;
    }

    .option-item {
        font-size: 0.9em; /* Slightly smaller font for smaller screens */
    }

    .main-content {
        flex-direction: column; /* Stack left and right panes vertically */
    }

    .left-pane {
        width: 100%;
        max-width: none;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .right-pane {
        padding: 8px;
    }
}

.horizontal-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.horizontal-inputs .form-item {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.horizontal-inputs label {
    margin-bottom: 4px;
    font-weight: bold;
}

#grade-select,
#syllabus-search {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

