.mock-test-app .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mock-test-app .hero-section {
    padding: 80px 0;
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.mock-test-app .card {
    transition: transform 0.2s;
}

.mock-test-app .card:hover {
    transform: translateY(-5px);
}

/* Palette Button States */
.mock-test-app .palette-btn.answered {
    background-color: #198754 !important;
    /* Bootstrap success */
    color: #fff !important;
    border-color: #198754 !important;
}

.mock-test-app .palette-btn.not-visited {
    background-color: #fff !important;
    color: #6c757d !important;
    border-color: #adb5bd !important;
}

.mock-test-app .palette-btn.not-answered {
    background-color: #dc3545 !important;
    /* Bootstrap danger */
    color: #fff !important;
    border-color: #dc3545 !important;
}

.mock-test-app .palette-btn.marked-review {
    background-color: #FFEB3B !important;
    color: #050505 !important;
    border: 2px solid #FFEB3B !important;
}

.mock-test-app .palette-btn.answered-review {
    background-color: #6f42c1 !important;
    /* Bootstrap purple */
    color: #fff !important;
    border-color: #6f42c1 !important;
}

/* Mock Test Action Buttons */
.mock-test-app .mock-action-btn {
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mock-test-app .mock-action-btn:nth-child(1) {
    background-color: #1976d2 !important;
    /* Blue */
    color: #fff !important;
}

.mock-test-app .mock-action-btn:nth-child(2) {
    background-color: #dc3545 !important;
    /* Red */
    color: #fff !important;
    border: 2px solid #dc3545 !important;
}

.mock-test-app .mock-action-btn:nth-child(3) {
    background-color: #6f42c1 !important;
    /* Cyan */
    color: #fff !important;
}

.mock-test-app .mock-action-btn:nth-child(4) {
    background-color: #ffc107 !important;
    /* Yellow */
    color: #212529 !important;
}

.mock-test-app .mock-action-btn:hover,
.mock-test-app .mock-action-btn:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    opacity: 0.95;
}

/* --- Palette & Legend Redesign --- */
.mock-test-app .palette-btn {
    width: 38px !important;
    height: 38px !important;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px !important;
    margin: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: box-shadow 0.2s, border 0.2s;
}

.mock-test-app .palette-btn.answered {
    background-color: #28a745 !important;
    color: #fff !important;
    border: 2px solid #28a745 !important;
}

.mock-test-app .palette-btn.not-visited {
    background-color: #fff !important;
    color: #6c757d !important;
    border: 2px solid #adb5bd !important;
}

.mock-test-app .palette-btn.not-answered {
    background-color: #fd4b2d !important;
    color: #fff !important;
    border: 2px solid #fd4b2d !important;
}

.mock-test-app .palette-btn.marked-review {
    background-color: #FFEB3B !important;
    color: #050505 !important;
    border: 2px solid #FFEB3B !important;
}

.mock-test-app .palette-btn.answered-review {
    background-color: #6f42c1 !important;
    color: #fff !important;
    border: 2px solid #6f42c1 !important;
}

.mock-test-app .palette-btn.active,
.mock-test-app .palette-btn:focus {
    outline: 2px solid #ff6600 !important;
    box-shadow: 0 0 0 2px #ff660033;
}

.mock-test-app .mock-test-wrapper {
    padding: 0px 60px;
}

.mock-test-app .mock-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.mock-test-app .mock-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 500;
}

.mock-test-app .mock-legend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    margin-right: 4px;
}

.mock-test-app .mock-legend-badge.answered {
    background: #28a745;
    color: #fff;
    border: 2px solid #28a745;
}

.mock-test-app .mock-legend-badge.not-visited {
    background: #fff;
    color: #6c757d;
    border: 2px solid #adb5bd;
}

.mock-test-app .mock-legend-badge.not-answered {
    background: #fd4b2d;
    color: #fff;
    border: 2px solid #fd4b2d;
}

.mock-test-app .mock-legend-badge.marked-review {
    background: #ffc107;
    color: #fff;
    border: 2px solid #ffc107;
}

.mock-test-app .mock-legend-badge.answered-review {
    background: #6f42c1;
    color: #fff;
    border: 2px solid #6f42c1;
}

/* Legend Grid Layout */
.mock-test-app .mock-legend-grid {
    row-gap: 18px;
    column-gap: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.mock-test-app .mock-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mock-test-app .mock-legend-item:last-child {
    margin-bottom: 0;
}

.mock-test-app .mock-legend-note {
    grid-column: 2 / 3;
    align-self: self-start;
    font-weight: 400;
    font-size: 0.95em;
    color: #333;
}

.mock-test-app .legend-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1.2rem 1rem;
    margin-bottom: 1.5rem;
}

.mock-test-app .mock-side-card {
    background: linear-gradient(135deg, #f8fafc 80%, #e6fffa 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.mock-test-app .legend-heading {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #333;
}

.mock-test-app .mock-hero-bar {
    width: 100%;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    /* Add a subtle SVG pattern background */
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="40" height="40" fill="%23f8fafc"/><circle cx="20" cy="20" r="1.5" fill="%231976d2" fill-opacity="0.08"/><circle cx="0" cy="40" r="1.5" fill="%231976d2" fill-opacity="0.08"/><circle cx="40" cy="0" r="1.5" fill="%231976d2" fill-opacity="0.08"/></svg>');
    background-size: 40px 40px;
}

.mock-test-app .mock-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Enhanced Radio Button Styles for Mock Test */
.mock-test-app .mock-question-card .form-check {
    position: relative;
    margin-bottom: 1rem;
}

/* Checkbox-style Radio Buttons for Mock Test */
.mock-test-app .mock-question-card .form-check-input[type="radio"] {
    width: 1.3em;
    height: 1.3em;
    border-radius: 0.25em;
    /* square corners */
    border: 2px solid #1976d2;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 0.2em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.mock-test-app .mock-question-card .form-check-input[type="radio"]:checked {
    background-color: #1976d2;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px #1976d233;
}

.mock-test-app .mock-question-card .form-check-input[type="radio"]:checked::after {
    content: "";
    display: block;
    position: absolute;
    left: 0.35em;
    top: 0.15em;
    width: 0.4em;
    height: 0.7em;
    border: solid #fff;
    border-width: 0 0.18em 0.18em 0;
    transform: rotate(45deg);
}

.mock-test-app .mock-question-card .form-check-label {
    margin-left: 0.75em;
    font-weight: 500;
    font-size: 1.08em;
    cursor: pointer;
    color: #222;
    transition: color 0.2s;
}

.mock-test-app .mock-question-card .form-check-input[type="radio"]:checked+.form-check-label {
    color: #1976d2;
}

/* Login Page Modern Styles */
.mock-test-app .login-hero-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -3%;
}

.mock-test-app .login-card {
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(25, 118, 210, 0.10);
    background: #fff;
    z-index: 1;
    position: relative;
}

.mock-test-app .login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.mock-test-app .login-input {
    font-size: 1.1em;
    padding: 0.75em 1em;
    border-radius: 8px;
}

.mock-test-app .login-btn {
    font-size: 1.1em;
    padding: 0.7em 0;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.mock-test-app .login-btn:hover,
.mock-test-app .login-btn:focus {
    background: #125ea7;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.15);
}

.schedule-time {
    margin-bottom: 1rem;
}

/* Live Test Specific Styles */
.live-test-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #dc3545;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-text {
    font-weight: 700;
    color: #dc3545;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Live Test Hero Bar Layout */
.mock-test-app .mock-hero-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}