/* Simulation & Practice Options Panels Component */

/* Modal Card Header Styling */
#simulationOptionsPanel .card-header,
#practiceOptionsPanel .card-header {
    background-color: #2878eb !important;
    color: #ffffff !important;
    padding: 1rem !important;
}

#practiceOptionsPanel .card-header {
    background-color: #28a745 !important;
    /* Success green for practice panel */
}

#simulationOptionsPanel .card-header h4,
#practiceOptionsPanel .card-header h4 {
    margin-bottom: 0 !important;
    color: #ffffff !important;
}

#simulationOptionsPanel .card-header h4 *,
#practiceOptionsPanel .card-header h4 * {
    color: #ffffff !important;
}

/* Close Button Text Color */
#simulationOptionsPanel .card-header .btn-light,
#practiceOptionsPanel .card-header .btn-light {
    color: #000000 !important;
}

#simulationOptionsPanel .card-header .btn-light i,
#practiceOptionsPanel .card-header .btn-light i {
    color: #000000 !important;
}

/* Main Dashboard Buttons Styling */
.simulation-btn,
.practice-btn {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
}

.simulation-btn {
    background-color: #ffffff !important;
    border-color: #2878eb !important;
    color: #2878eb !important;
}

.practice-btn {
    background-color: #ffffff !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.simulation-btn:hover,
.practice-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.simulation-btn:active,
.practice-btn:active {
    transform: translateY(-1px) !important;
}

/* Modal Overlay/Backdrop */
#simulationOptionsPanel,
#practiceOptionsPanel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(177, 177, 177, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1050;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#simulationOptionsPanel[style*="display: none"],
#practiceOptionsPanel[style*="display: none"] {
    display: none !important;
}

/* Modal Content Card */
#simulationOptionsPanel .col-12,
#practiceOptionsPanel .col-12 {
    max-width: 1140px;
    width: 100%;
}

#simulationOptionsPanel .card,
#practiceOptionsPanel .card {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border-radius: 10px !important;
    overflow: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Year Selection Dropdowns */
.form-control-lg {
    font-size: 1.1rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.form-control-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(40, 120, 235, 0.25);
}

/* Ensure select dropdown options are visible and scrollable */
.form-control-lg option {
    padding: 8px 5px;
    line-height: 1.5;
}

/* Subject Cards in Real Exams Panel */
.card.border-primary,
.card.border-danger,
.card.border-warning {
    border-width: 2px !important;
    transition: all 0.3s ease;
}

.card.border-primary:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(40, 120, 235, 0.2);
    transform: translateY(-5px);
}

.card.border-danger:hover {
    border-color: #dc3545 !important;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    transform: translateY(-5px);
}

.card.border-warning:hover {
    border-color: #ffc107 !important;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
    transform: translateY(-5px);
}

/* Test Icon Dual (Two Icons) */
.test-icon-dual {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Subject Access Cards */
.subject-access-card {
    position: relative;
}

/* Lock Icon Styling */
.subject-access-card .lock-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #dc3545;
    z-index: 10;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Border radius for cards in simulation panels - Exact class combinations */
.subject-access-card.card,
.subject-access-card .card,
.card.subject-access-card,
.subject-access-card.border-primary,
.subject-access-card.border-danger,
.subject-access-card.border-warning {
    border-radius: 10px !important;
    overflow: hidden;
}

/* Disabled Dropdown Styling */
.subject-access-card select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Disabled Button Styling */
.subject-access-card .start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Border Radius */
.subject-access-card .start-btn,
.subject-access-card .purchase-btn,
.random-exam-card .start-btn,
.random-exam-card .purchase-btn {
    border-radius: 10px !important;
}

/* Purchase Button Styling */
.subject-access-card .purchase-btn {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(255, 193, 7, 0.6);
    }
}

/* Random Exam Cards */
.random-exam-card {
    position: relative;
}

.random-exam-card.locked-card {
    opacity: 0.7;
}

.random-exam-card .purchase-btn {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Close Button in Panel Header */
.card-header .btn-light {
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card-header .btn-light:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Mobile (768px and below) */
@media (max-width: 768px) {

    /* Modal adjustments for mobile */
    #simulationOptionsPanel,
    #practiceOptionsPanel {
        padding: 10px;
        align-items: flex-start;
    }

    #simulationOptionsPanel .card,
    #practiceOptionsPanel .card {
        margin-top: 20px;
    }

    /* Adjust icon sizes in simulation panel */
    .test-icon img {
        width: 60px !important;
    }

    .test-icon-dual img {
        width: 45px !important;
    }

    /* Close button in header adjustments */
    .card-header h4 {
        font-size: 1.1rem;
    }

    .card-header .btn-light {
        padding: 3px 10px;
        font-size: 0.85rem;
    }
}

/* Small mobile adjustments */
@media (max-width: 576px) {
    /* Card already has 10px border-radius from base styles */
}