﻿/* Enhanced Home Page Styles - Fixed SmartExam.Pro Visibility */

/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: #ffffff !important;
}

.hero-content h1 .text-gradient-primary {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
    font-size: 1.2em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: #667eea !important;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

.hero-btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    color: white;
}

.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

/* Trust Section */
.trust-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.company-logo {
    transition: all 0.3s ease;
    opacity: 0.6;
}

.company-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Enhanced Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-highlight {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
}

.author-avatar {
    transition: all 0.3s ease;
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.border-primary {
    border: 2px solid var(--primary-color) !important;
}

.pricing-badge {
    margin-bottom: 1rem;
}

.pricing-title {
    color: var(--gray-800);
    font-weight: 600;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-guarantee {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h1 .text-gradient-primary {
        font-size: 1.1em;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .company-logo {
        margin-bottom: 1rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h1 .text-gradient-primary {
        font-size: 1em;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .feature-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card .card-body {
        padding: 2rem 1.5rem;
    }
}

/* Animation Delays */
.scale-in {
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Fixed Navigation Bar Visibility */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: white !important;
    font-weight: 700;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white !important;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    color: white !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: var(--gray-700) !important;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateX(5px);
}

.logo-circle {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2) !important;
}

.navbar-brand:hover .logo-circle {
    transform: rotate(360deg);
    background: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Layout Styles */
.main-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 0;
    background-color: var(--gray-50);
}

/* Remove old sidebar styles */
.page {
    display: flex;
    flex-direction: column;
}

.sidebar {
    display: none !important;
}

.top-row {
    display: none !important;
}

.content {
    padding: 0;
}

article {
    padding: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 0.75rem;
        margin-left: -1rem;
        margin-right: -1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        width: 100%;
        margin: 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }

    .nav-link {
        margin: 0;
        padding: 1rem 1.25rem !important;
        border-radius: 0.5rem;
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateX(5px);
        border-color: rgba(255, 255, 255, 0.2);
        color: white !important;
    }

    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        font-weight: 600;
        color: white !important;
    }

    .nav-link i {
        width: 20px;
        text-align: center;
        margin-right: 0.75rem;
    }
    
    /* Account dropdown styling */
    .navbar-nav .nav-item.dropdown {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.75rem;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.75rem 1.25rem;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
        transform: translateX(5px);
    }

    .dropdown-item i {
        width: 20px;
        text-align: center;
        margin-right: 0.75rem;
    }

    .dropdown-divider {
        margin: 0.5rem 0;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .main-content {
        padding-top: 0;
    }
}

/* Desktop Responsive */
@media (min-width: 992px) {
    .main-content {
        margin-top: 0;
    }
}

/* Override any remaining sidebar styles */
@media (min-width: 641px) {
    .page {
        flex-direction: column !important;
    }
    
    .sidebar {
        width: 0 !important;
        height: 0 !important;
        position: static !important;
    }
    
    .top-row {
        position: static !important;
        z-index: auto !important;
    }
    
    .top-row, article {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* Minimized Home Page Spacing */

/* Hero Section - Reduced Height */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh !important; /* Reduced from 100vh */
    padding: 2rem 0 !important; /* Added padding control */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem; /* Reduced from 2rem */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 1rem !important; /* Reduced from mb-3 */
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: #ffffff !important;
    margin-bottom: 1rem !important; /* Reduced from mb-4 */
    font-size: 2.5rem !important; /* Reduced from display-3 */
}

.hero-content h1 .text-gradient-primary {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
    font-size: 1.2em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 1.5rem !important; /* Reduced from mb-4 */
    font-size: 1rem !important; /* Reduced from fs-5 */
}

.hero-buttons {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin-bottom: 2rem !important; /* Reduced from mb-5 */
}

.hero-buttons .btn {
    padding: 0.75rem 2rem !important; /* Reduced from px-5 py-3 */
    font-size: 1rem !important;
}

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stats .stat-item h3 {
    font-size: 1.5rem !important; /* Reduced from default */
    margin-bottom: 0.25rem !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: #667eea !important;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

.hero-btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    color: white;
}

.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item small {
    color: rgba(255, 255, 255, 0.8) !important;
}

.floating-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

/* Reduced Section Padding */
.trust-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 0 !important; /* Reduced from py-4 */
}

.features-section {
    padding: 3rem 0 !important; /* Reduced from py-5 */
}

.testimonials-section {
    padding: 3rem 0 !important; /* Reduced from py-5 */
}

.pricing-preview {
    padding: 3rem 0 !important; /* Reduced from py-5 */
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 3rem 0 !important; /* Reduced from py-5 */
}

/* Reduced Container Padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Reduced Card Padding */
.feature-card .card-body {
    padding: 2rem !important; /* Reduced from p-5 */
}

.testimonial-card .card-body {
    padding: 1.5rem !important; /* Reduced from p-4 */
}

.pricing-card .card-body {
    padding: 1.5rem !important; /* Reduced from p-4 */
}

/* Reduced Margins */
.mb-5 {
    margin-bottom: 2rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* Reduced Text Sizes */
.lead {
    font-size: 1rem !important; /* Reduced from default */
}

.h1 {
    font-size: 2rem !important; /* Reduced from default */
}

.display-3 {
    font-size: 2.5rem !important; /* Reduced from default */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh !important;
        padding: 1rem 0 !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .hero-content h1 .text-gradient-primary {
        font-size: 1em;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1.5rem !important;
    }
    
    .hero-stats {
        margin-top: 1.5rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .company-logo {
        margin-bottom: 0.75rem;
    }
    
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .features-section,
    .testimonials-section,
    .pricing-preview,
    .cta-section {
        padding: 2rem 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-content h1 .text-gradient-primary {
        font-size: 0.9em;
    }
    
    .hero-content p {
        font-size: 0.9rem !important;
    }
    
    .feature-card .card-body {
        padding: 1.5rem !important;
    }
    
    .testimonial-card .card-body {
        padding: 1.25rem !important;
    }
    
    .pricing-card .card-body {
        padding: 1.25rem !important;
    }
    
    .features-section,
    .testimonials-section,
    .pricing-preview,
    .cta-section {
        padding: 1.5rem 0 !important;
    }
}

/* Animation Delays */
.scale-in {
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Exam Taking Styles */
.exam-taking-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.exam-header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.timer-circle {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.question-nav-card {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    padding: 16px;
}

.question-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
}

.question-btn:hover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.question-btn.current {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: white;
}

.question-btn.answered {
    border-color: #198754;
    background-color: #d1e7dd;
    color: #0f5132;
}

.question-btn.answered.current {
    background-color: #198754;
    color: white;
}

.question-card {
    margin-bottom: 20px;
}

.question-text h6 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.answer-options .form-check {
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.answer-options .form-check:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

.answer-options .form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: #0d6efd;
}

.question-navigation {
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Exam Result Styles */
.exam-result-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.3);
}

.score-circle.excellent {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
}

.score-circle.good {
    background-color: rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.5);
}

.score-circle.average {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
}

.score-circle.pass {
    background-color: rgba(253, 126, 20, 0.2);
    border-color: rgba(253, 126, 20, 0.5);
}

.score-circle.fail {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

.score-percentage {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.detailed-review {
    margin-top: 2rem;
}

.question-review-item {
    border-bottom: 1px solid #e9ecef;
}

.question-review-item:last-child {
    border-bottom: none;
}

.question-review-item.correct {
    background-color: rgba(40, 167, 69, 0.05);
}

.question-review-item.incorrect {
    background-color: rgba(220, 53, 69, 0.05);
}

.correct-answer {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745 !important;
}

.incorrect-answer {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545 !important;
}

.explanation {
    border-left: 4px solid #0d6efd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .exam-controls {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .timer-display {
        font-size: 1rem;
    }
    
    .question-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
        gap: 6px;
        padding: 12px;
    }
    
    .question-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-percentage {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .exam-header .container-fluid {
        padding: 0 15px;
    }
    
    .exam-info h4 {
        font-size: 1.1rem;
    }
    
    .question-navigation .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .question-actions {
        order: -1;
    }
}

/* Additional Responsive Improvements */

/* Mobile-first approach for better touch targets */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* iOS recommended touch target size */
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .card-columns {
        column-count: 2;
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .dropdown,
    .toast-container {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline-primary {
        border-width: 2px;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* This can be implemented later for dark mode support */
}
