body {
    font-family: 'Arial', 'Noto Sans Devanagari', sans-serif;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #f5f7fa 100%);
}
/* Main App Bar */
.main-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff; /* Changed to white to match ganit.html */
    color: #0284c7; /* Changed to blue to match ganit.html */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.main-app-bar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #0284c7; /* Changed to blue to match ganit.html */
}
.submit-btn {
    background-color: #0ea5e9; /* Changed to accent color */
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: bold;
    cursor: pointer;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #e2e8f0; /* Changed to secondary-light */
    z-index: 1000;
}
.progress-bar {
    height: 100%;
    background-color: #0ea5e9; /* Changed to accent color */
    width: 0%;
    transition: width 0.3s ease;
}

/* Sub App Bar */
.sub-app-bar {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: #f0f4f8; /* Changed to primary-bg */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.question-count {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a; /* Changed to text-dark */
}
.sound-control {
    cursor: pointer;
    color: #0284c7; /* Changed to accent-dark */
}
.question-panel-toggle {
    cursor: pointer;
    color: #0f172a; /* Changed to text-dark */
}

/* Question Panel */
.question-panel {
    position: fixed;
    top: 85px;
    right: -275px;
    width: 250px;
    height: calc(100vh - 85px);
    background: white;
    z-index: 998;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 15px;
}
.question-panel.open {
    right: 0;
}
.question-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.question-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}
.not-visited {
    background-color: #e2e8f0; /* Changed to secondary-light */
    color: #0f172a; /* Changed to text-dark */
}
.visited {
    background-color: #bae6fd; /* Changed to accent-light */
    color: #0f172a; /* Changed to text-dark */
}
.answered {
    background-color: #0ea5e9; /* Changed to accent-color */
    color: white;
}

.app-bar {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #0284c7;
    display: flex;
    padding: 0px 20px;
    text-align: center;
    z-index: 997;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.shuffle-button {
    background: none;
    border: none;
    color: #0284c7; /* Changed to accent-dark */
    cursor: pointer;
    margin-right: 0px;
}
/* Submit Button Styles */
.submit-button {
    background: linear-gradient(135deg, #f5f5f5, #f5f5f5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    transition: all 0.3s ease;
    color: #555;
    margin-left: 0px;
    margin-right: 0px;
}
.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.app-bar h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0284c7; /* Changed to accent-dark */
}
#quiz-container {
    max-width: 800px;
    margin: 100px auto 100px; /* Increased top margin for app bars */
    padding: 10px;
}
.quiz-item {
    background-color: #fff;
    border-radius: 16px; /* Changed to match border-radius variable */
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Changed to match card-shadow */
}
.question {
    font-weight: 600;
    margin-bottom: 15px;
    color: #0284c7; /* Changed to accent-dark */
    font-size: 16px;
}
.exam-info {
    font-size: 12px;
    color: #64748b; /* Changed to text-muted */
    margin-top: 10px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.report-icon {
    color: #64748b; /* Changed to text-muted */
    cursor: pointer;
    margin-top: 0px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.report-icon:hover {
    transform: scale(1.2);
}
.options {
    padding: 0;
}
.option {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0; /* Changed to secondary-light */
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.selected {
    background-color: #0ea5e9; /* Changed to accent-color */
    color: #fff;
    border-color: #0ea5e9; /* Changed to accent-color */
}
.correct {
    background-color: #b9eec5; /* Changed to accent-color */
    color: #080808;
    border-color: #28a745; /* Changed to accent-color */
}
.incorrect {
    background-color: #f6cbd0;
    color: #080808;
    border-color: #dc3545;
}
.explanation {
    margin-top: 15px;
    font-style: normal;
    color: #0284c7; /* Changed to accent-dark */
    display: none;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0284c7; /* Changed to accent-dark */
}

/* Modern Score Display Styles */
.score-display-container {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #FFFFFF, #FFFFFF);
    border-radius: 60px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 5px 5px;
    width: 90%;
    max-width: 340px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.progress-circle {
    width: 50px;
    height: 50px;
}
.circular-chart {
    display: block;
    margin: 0;
    max-width: 50px;
}
.circle-bg {
    fill: none;
    stroke: #e2e8f0; /* Changed to secondary-light */
    stroke-width: 3.8;
}
.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
    stroke: #0ea5e9; /* Changed to accent-color */
}
.percentage {
    fill: #0f172a; /* Changed to text-dark */
    font-family: Arial, sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: bold;
}
.score-info {
    display: flex;
    flex-direction: column;
}

.score-value {
    font-size: 24px;
    font-weight: bold;
    color: #0f172a; /* Changed to text-dark */
}

.yourscore {
    font-size: 14px;
    color: #64748b; /* Changed to text-muted */
    margin-bottom: -7px;
}            
.page-info {
    font-size: 14px;
    color: #64748b; /* Changed to text-muted */
    margin-top: -7px;
}
.navigation-controls {
    display: flex;
    gap: 15px;
    margin-left: 5px;
    margin-right: 5px
}
.nav-button {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    transition: all 0.2s ease;
}
.material-icons {
    font-size: 40px;
    color: #0284c7; /* Changed to accent-dark */
}
.nav-button:hover:not(:disabled) {
    background: #e2e8f0; /* Changed to secondary-light */
}
.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}
@media (max-width: 480px) {
    .score-display-container {
        padding: 5px 5px;
    }
    .progress-circle {
        width: 50px;
        height: 50px;
    }
    .score-value {
        font-size: 20px;
    }
    .page-info {
        font-size: 12px;
    }
    .nav-button {
        width: 50px;
        height: 50px;
    }
}
.math-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.math-inline > * {
    margin-right: 0.5em;
}
.video-solution {
    display: block;
    align-items: center;
    margin-top: 15px;
    color: #0284c7; /* Changed to accent-dark */
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(14, 165, 233, 0.1); /* Changed to accent-color with opacity */
    border-radius: 20px;
    transition: all 0.3s ease;
}
.video-solution:hover {
    background: rgba(14, 165, 233, 0.2); /* Changed to accent-color with opacity */
    transform: translateX(5px);
}
.fa-video {
    margin-right: 5px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.5s ease-out;
}
.diagram {
    text-align: left;
    margin: 20px 0;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 5px;
}
.diagram img {
    max-width: 100%;
    height: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 16px; /* Changed to match border-radius variable */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Changed to match card-shadow */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0; /* Changed to secondary-light */
    padding-bottom: 10px;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a; /* Changed to text-dark */
}

.close {
    color: #64748b; /* Changed to text-muted */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #0f172a; /* Changed to text-dark */
    text-decoration: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0; /* Changed to secondary-light */
    border-radius: 4px;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #0ea5e9; /* Changed to accent-color */
    outline: none;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.report-btn {
    background: #0ea5e9; /* Changed to accent-color */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.report-btn:hover {
    background: #0284c7; /* Changed to accent-dark */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Results Page Styles */
.results-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.5s;
}

.results-content {
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
}

.results-header {
    background: #ffffff; /* Changed to white */
    color: #0284c7; /* Changed to accent-dark */
    padding: 15px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1003;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #0284c7; /* Changed to accent-dark */
}

.results-body {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.results-score {
    text-align: center;
    margin-bottom: 30px;
}

.score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative;
}

.score-circle svg {
    width: 100%;
    height: 100%;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: bold;
    color: #0f172a; /* Changed to text-dark */
}

.results-summary {
    background: #f0f4f8; /* Changed to primary-bg */
    border-radius: 16px; /* Changed to match border-radius variable */
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Changed to match card-shadow */
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0f172a; /* Changed to text-dark */
}

.summary-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 15px;
}

.stat-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
}

.stat-correct {
    background-color: rgba(14, 165, 233, 0.1); /* Changed to accent-color with opacity */
    border: 1px solid rgba(14, 165, 233, 0.2); /* Changed to accent-color with opacity */
}

.stat-incorrect {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.stat-unattempted {
    background-color: rgba(100, 116, 139, 0.1); /* Changed to text-muted with opacity */
    border: 1px solid rgba(100, 116, 139, 0.2); /* Changed to text-muted with opacity */
}

.stat-accuracy {
    background-color: rgba(2, 132, 199, 0.1); /* Changed to accent-dark with opacity */
    border: 1px solid rgba(2, 132, 199, 0.2); /* Changed to accent-dark with opacity */
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #64748b; /* Changed to text-muted */
}

.time-chart-container {
    background: #f0f4f8; /* Changed to primary-bg */
    border-radius: 16px; /* Changed to match border-radius variable */
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Changed to match card-shadow */
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0f172a; /* Changed to text-dark */
    text-align: center;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.share-container {
    text-align: center;
    margin-top: 20px;
}

.share-btn {
    background-color: #0ea5e9; /* Changed to accent-color */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn:hover {
    background-color: #0284c7; /* Changed to accent-dark */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.app-promo {
    margin-top: 20px;
    text-align: center;
}

.app-link {
    display: inline-flex;
    align-items: center;
    background-color: #0ea5e9; /* Changed to accent-color */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    gap: 8px;
    transition: all 0.3s ease;
}

.app-link:hover {
    background-color: #0284c7; /* Changed to accent-dark */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.app-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .results-body {
        padding: 15px;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-text {
        font-size: 28px;
    }
    
    .chart-container {
        height: 200px;
    }
}