﻿
/* ==================== Base & Overlay ==================== */
body .mud-dialog-fullscreen,
body .mud-dialog-fullscreen .mud-dialog-container,
body .mud-overlay {
    background-color: transparent !important;
}

    /* ==================== Left Panel Container ==================== */
    body .mud-dialog-fullscreen .left-panel-container {
        background-color: #f5f5f5 !important;
        padding: 8px !important;
        border-radius: 10px !important;
        width:380px !important;
    }

        body .mud-dialog-fullscreen .left-panel-container .mud-card {
            background-color: #f5f5f5 !important;
            box-shadow: none !important;
            border: none !important;
            margin-bottom: 8px !important;
        }

            body .mud-dialog-fullscreen .left-panel-container .mud-card:last-child {
                margin-bottom: 0 !important;
            }

            body .mud-dialog-fullscreen .left-panel-container .mud-card:not(:last-child)::after {
                content: "";
                display: block;
                height: 1.8px;
                background-color: #d9d9d9;
                margin: 8px 0;
                width: 100%;
                border-radius: 2px;
            }

    /* ==================== Candidate Info ==================== */
    body .mud-dialog-fullscreen .exam-candidate-info-card {
        background-color: #fff !important;
        border-radius: 12px !important;
        padding: 18px 14px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    }

    body .mud-dialog-fullscreen .candidate-avatar {
        border: 2px solid #7b1fa2 !important;
        width: 70px !important;
        height: 70px !important;
    }

    body .mud-dialog-fullscreen .candidate-info-container {
        margin-top: -15px;
    }

    body .mud-dialog-fullscreen .info-item .label {
        font-weight: 600 !important;
        color: #7b1fa2 !important;
        min-width: 120px !important;
    }

    body .mud-dialog-fullscreen .info-item .value {
        font-weight: 500 !important;
        color: #000 !important;
    }

    /* ==================== Question Panel & Buttons ==================== */
    body .mud-dialog-fullscreen .question-panel {
        background: var(--mud-palette-background) !important;
        border-radius: 8px !important;
    }

    body .mud-dialog-fullscreen .question-button {
        min-width: 50px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 20% !important;
        border-color:transparent !important;
    }

        body .mud-dialog-fullscreen .question-button.mud-button-filled,
        body .mud-dialog-fullscreen .question-button.mud-button-outlined {
            background-color: #9e9e9e !important;
            color: #fff !important;
            font-weight: bold !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        }

        body .mud-dialog-fullscreen .question-button.answered-question {
            background-color: #e8f5e8 !important;
            color: #2e7d32 !important;
            border: 1px solid #4caf50 !important;
        }

        body .mud-dialog-fullscreen .question-button.not-answered-question {
            background-color: #fff3e0 !important;
            color: #f57c00 !important;
            border: 1px solid #ff9800 !important;
        }

        body .mud-dialog-fullscreen .question-button.marked-review-question {
            background-color: #f3e5f5 !important;
            color: #7b1fa2 !important;
            border: 1px solid #9c27b0 !important;
        }

        body .mud-dialog-fullscreen .question-button.answered-marked-question {
            background-color: #e6e0ea !important;
            color: #0277bd !important;
            border: 1px solid #761a9c !important;
        }

        body .mud-dialog-fullscreen .question-button:hover {
            transform: translateY(-2px) scale(1.1) !important;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
            transition: all 0.3s ease !important;
        }

        body .mud-dialog-fullscreen .question-button.mud-disabled {
            opacity: 1 !important;
            cursor: not-allowed !important;
        }

    /* ==================== Legend Circles ==================== */
    body .mud-dialog-fullscreen .legend-circle {
        width: 15px !important;
        height: 15px !important;
        border-radius: 50% !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
    }

        body .mud-dialog-fullscreen .legend-circle.not-visited {
            background-color: #c4c0c0 !important;
        }

        body .mud-dialog-fullscreen .legend-circle.not-answered {
            background-color: #f5af45 !important;
        }

        body .mud-dialog-fullscreen .legend-circle.answered {
            background-color: #4caf50 !important;
        }

        body .mud-dialog-fullscreen .legend-circle.marked-review {
            background-color: #9c27b0 !important;
        }

        body .mud-dialog-fullscreen .legend-circle.answered-marked {
            background-color: #d343e8 !important;
        }

    body .mud-dialog-fullscreen .legend-item {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* ==================== Tools & Action Buttons ==================== */
    body .mud-dialog-fullscreen .tools-card {
        background: var(--mud-palette-background) !important;
        border-radius: 8px !important;
    }

    body .mud-dialog-fullscreen .tool-buttons {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    body .mud-dialog-fullscreen .tools-card .mud-icon-button:hover {
        transform: scale(1.1) !important;
        transition: all 0.3s ease !important;
    }

    body .mud-dialog-fullscreen .exam-action-button,
    body .mud-dialog-fullscreen .exam-nav-button {
        padding: 10px 20px !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
        height: 42px !important;
        min-width: 140px !important;
    }

        body .mud-dialog-fullscreen .exam-action-button:hover,
        body .mud-dialog-fullscreen .exam-nav-button:hover {
            transform: scale(1.05) translateY(-1px) !important;
            box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
        }

    body .mud-dialog-fullscreen .action-buttons-wrapper,
    body .mud-dialog-fullscreen .exam-actions-content {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }

    body .mud-dialog-fullscreen .exam-actions-bar {
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    body .mud-dialog-fullscreen .action-buttons-card .exam-action-button,
    body .mud-dialog-fullscreen .action-buttons-card .exam-action-button * {
        color: #fff !important;
    }

    /* ==================== Cards & Papers ==================== */
    body .mud-dialog-fullscreen .mud-card {
        background: #fff !important;
    }

    body .mud-dialog-fullscreen .mud-card-content {
        overflow: visible !important;
        padding: 0px !important;
    }

    body .mud-dialog-fullscreen .mud-paper {
        background-color: #fff !important;
        border-radius: 10px !important;
    }

    body .mud-dialog-fullscreen .exam-question-area {
        flex: 1 !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        padding: 24px !important;
        margin-bottom: 0px !important;
        background-color: #fafafa !important;
    }

    /* ==================== Typography & Buttons ==================== */
    body .mud-dialog-fullscreen .mud-typography {
        color: rgba(91, 42, 134, 1) !important;
    }

    body .mud-dialog-fullscreen .mud-button-filled.mud-button-filled-primary {
        background-color: rgba(91, 42, 134, 1);
    }

    /* ==================== Close Button ==================== */
    body .mud-dialog-fullscreen .mud-icon-button-close {
        background-color: #e94560 !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        width: 48px !important;
        height: 48px !important;
    }

        body .mud-dialog-fullscreen .mud-icon-button-close:hover {
            background-color: #ff6b81 !important;
            transform: rotate(90deg) scale(1.1) !important;
            transition: all 0.3s ease !important;
        }

    body .mud-dialog-fullscreen .mud-dialog-title {
        padding: 0 !important;
    }

    /* ==================== Exam Header ==================== */
    body .mud-dialog-fullscreen .exam-header-container {
        width: 100% !important;
        background-color: #f7f7f9 !important;
        border: 1px solid #ddd !important;
        border-radius: 10px !important;
        padding: 5px 13px !important;
        box-sizing: border-box !important;
        margin-bottom: 12px !important;
    }

    body .mud-dialog-fullscreen .exam-title {
        color: #4b0082 !important;
        font-weight: 600 !important;
        text-align: center !important;
    }

    /* ==================== Tabs Styling ==================== */
    body .mud-dialog-fullscreen .mud-tabs .mud-tab-panel {
        background-color: rgba(91, 42, 134, 1) !important;
    }

    body .mud-dialog-fullscreen .mud-tabs .mud-tab {
        background-color: rgba(91, 42, 134, 1) !important;
        color: #fff !important;
    }

    body .mud-dialog-fullscreen .mud-tabs-toolbar {
        background-color: rgba(91, 42, 134, 1) !important;
    }

    body .mud-dialog-fullscreen .mud-tab-slider {
        background-color: transparent;
    }

    /* ==================== Section Tabs ==================== */
    body .mud-dialog-fullscreen .exam-sections-tabs .mud-tabs-toolbar {
        background-color: transparent !important;
    }

    body .mud-dialog-fullscreen .exam-sections-tabs .mud-tab {
        background-color: #f5f5f5 !important;
        color: #666 !important;
        border-radius: 8px 8px 0 0 !important;
        margin: 0 4px !important;
        transition: all 0.3s ease !important;
    }

    body .mud-dialog-fullscreen .exam-sections-tabs .mud-tab-active {
        background-color: rgba(91, 42, 134, 1) !important;
        color: #fff !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 8px rgba(91, 42, 134, 0.3) !important;
        border-radius: 0% !important;
    }

    body .mud-dialog-fullscreen .exam-sections-tabs .mud-tab:hover {
        background-color: rgba(91, 42, 134, 0.1) !important;
    }

    body .mud-dialog-fullscreen .exam-sections-tabs .mud-tab-active:hover {
        background-color: rgba(91, 42, 134, 0.9) !important;
    }

    body .mud-dialog-fullscreen .exam-sections-tabs .mud-tabs-panels {
        display: none !important;
    }

    /* ==================== Timer Icon ==================== */
    body .mud-dialog-fullscreen .exam-sections-tabs .timer-fab {
        background-color: #db5732 !important;
        color: #fff !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }

    /* ==================== Scrollbars ==================== */
    body .mud-dialog-fullscreen .mud-dialog-content::-webkit-scrollbar,
    body .mud-dialog-fullscreen .question-panel::-webkit-scrollbar {
        width: 8px;
    }

    body .mud-dialog-fullscreen .mud-dialog-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 5px;
    }

    body .mud-dialog-fullscreen .question-panel::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    body .mud-dialog-fullscreen .mud-dialog-content::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #7b1fa2 0%, #9c27b0 100%);
        border-radius: 5px;
    }

    body .mud-dialog-fullscreen .question-panel::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    body .mud-dialog-fullscreen .mud-dialog-content::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    }

    body .mud-dialog-fullscreen .question-panel::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    body .mud-dialog-fullscreen .question-button {
        min-width: 40px !important;
        height: 40px !important;
        font-size: 0.85rem !important;
    }

    body .mud-dialog-fullscreen .action-buttons-wrapper {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body .mud-dialog-fullscreen .exam-action-button {
        width: 100% !important;
        min-width: unset !important;
    }
}

body .mud-dialog-fullscreen .question-grid-flex{
    padding:8px;
}