:root {
  --primary-blue: #4e73df; /* Example primary blue */
  --soft-dark-gray: #2c3e50; /* Example dark gray */
  --light-bg: #fdfdff; /* Very light off-white */
  --secondary-bg: #f1f3f5; /* Warmer light gray */
  --text-dark: #343a40;
  --text-muted: #6c757d;
}

/* Site-wide styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg); /* Use light off-white for body */
}

/* Logo styling */
.logo {
    height: 100px;
    max-width: 350px;
    object-fit: contain;
}

/* Custom containers */
.auth-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.question-card {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.question-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    cursor: pointer;
}

.question-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-info {
    font-size: 0.875rem;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.selected-questions {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.selected-question-item {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.remove-question {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #dc3545;
    font-size: 1.25rem;
}

.question-points {
    margin-top: 0.5rem;
}

.preview-panel {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #fff;
}

.preview-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preview-question {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.preview-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Exam card styling */
.exam-card {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    height: 100%;
}

.exam-details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exam-info {
    font-size: 0.875rem;
    margin: 1rem 0;
    flex-grow: 1;
}

.exam-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

/* Pagination styling */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* Modal styling */
.modal-question-image {
    max-width: 100%;
    max-height: 80vh;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .exam-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .exam-actions > div {
        display: flex;
        justify-content: space-between;
    }
}

/* --- Modernization Styles --- */

/* Navbar adjustments */
.navbar.bg-dark {
    /* Optional: Add a subtle bottom border */
    /* border-bottom: 1px solid #444; */
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important; /* Force white color for all nav links */
    padding-left: 1rem;
    padding-right: 1rem;
    transition: color 0.2s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 0.85) !important; /* Slightly less bright on hover */
}

/* Ensure social icons are white too */
.navbar-dark .navbar-nav .nav-item .nav-link i.fab {
     color: #ffffff !important; /* Force white for social icons */
}
.navbar-dark .navbar-nav .nav-item .nav-link:hover i.fab {
     color: rgba(255, 255, 255, 0.85) !important; /* Match link hover */
}


.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-menu {
    background-color: #343a40; /* Match navbar bg */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
}

.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-item:hover,
.navbar-dark .navbar-nav .nav-item.dropdown .dropdown-item:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer adjustments */
.footer.bg-dark {
     /* Optional: Add a subtle top border */
    /* border-top: 1px solid #444; */
}

.footer.bg-dark a {
    transition: color 0.2s ease-in-out;
}

.footer.bg-dark a:hover {
    color: rgba(255, 255, 255, 0.9) !important; /* Ensure hover is visible */
}

/* Main content area contrast (optional) */
main.container {
    /* Example: Add slight background and padding */
    /* background-color: #f8f9fa; */
    /* padding-top: 2rem; */
    /* padding-bottom: 2rem; */
    /* border-radius: 0.25rem; */
}

/* --- Default.aspx Modernization --- */

/* Hero Section */
.hero-section {
    /* Use secondary background for gradient */
    background: linear-gradient(to bottom, var(--secondary-bg), var(--light-bg));
    padding: 80px 0;
}

.hero-section h1 {
    color: var(--text-dark);
}

.hero-section .lead {
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Auth Buttons in Hero */
.auth-buttons .btn {
    margin: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.auth-buttons .btn-primary {
     background-color: var(--primary-blue); /* Use primary blue */
     border-color: var(--primary-blue);
}
.auth-buttons .btn-primary:hover {
     background-color: #2e59d9; /* Darker shade of primary blue */
     border-color: #264ecb;
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.auth-buttons .btn-outline-primary {
     border-color: var(--primary-blue);
     color: var(--primary-blue);
}
.auth-buttons .btn-outline-primary:hover {
     background-color: var(--primary-blue);
     color: #fff;
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.auth-buttons .btn-outline-secondary {
     border-color: var(--text-muted);
     color: var(--text-muted);
}
.auth-buttons .btn-outline-secondary:hover {
     background-color: var(--text-muted);
     color: #fff;
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.auth-buttons .btn-danger { /* Google Button */
     background-color: #e74a3b; /* Slightly softer red */
     border-color: #e74a3b;
}
 .auth-buttons .btn-danger:hover {
     background-color: #e02d1b;
     border-color: #d92a1a;
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.auth-buttons .btn-link {
    box-shadow: none;
    text-decoration: underline;
    color: var(--primary-blue); /* Use primary blue for link */
}
.auth-buttons .btn-link:hover {
    box-shadow: none;
    transform: none;
    color: #2e59d9; /* Darker shade */
}


/* Features Section */
.features-section {
    padding: 60px 0;
}

.feature-box {
    background-color: var(--light-bg); /* Use light off-white */
    border: 1px solid #e3e6f0; /* Slightly darker border for contrast */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Softer shadow */
}

.feature-box:hover {
    transform: translateY(-8px); /* More pronounced hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue); /* Use primary blue */
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Video Section */
.video-section {
    padding: 60px 0;
}

/* --- Default.aspx Modernization Additions --- */

/* Visual Highlight Section */
.visual-highlight-section {
    background-color: var(--light-bg); /* Use light off-white */
}
.visual-highlight-section img {
    max-width: 100%;
    height: auto;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--secondary-bg); /* Use warmer light gray */
}

.testimonial-card {
    border: none; /* Remove default card border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial-quote {
    text-align: left;
}

.testimonial-quote i {
    position: absolute;
    top: 15px;
    left: 20px;
}

.testimonial-card .card-body {
    position: relative;
    padding-top: 40px; /* Make space for quote icon */
}

.testimonial-card .card-footer {
    border-top: 1px solid #e3e6f0; /* Match feature box border */
    background-color: #fff; /* Keep footer white for contrast */
}

/* Override Bootstrap dark theme */
.bg-dark {
    background-color: var(--soft-dark-gray) !important; /* Use softer dark gray */
}

.footer.bg-dark {
     border-top: 1px solid #4a6075; /* Adjusted border color */
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #343a40;
}

.feature-box p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Video Section */
.video-section {
    padding: 60px 0;
}