/* Exam Scheduler Styles */

/* Modern Wizard Card */
.modern-wizard-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Wizard Container */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.wizard-step.active {
    display: block;
}

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

.step-header {
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
}

.step-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.9rem;
}

.wizard-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.wizard-actions .btn {
    min-width: 120px;
}

/* Modern Step 1 Styles */
.modern-step1-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modern-step1-container:hover {
    border-color: #2c70b8;
    box-shadow: 0 4px 20px rgba(44, 112, 184, 0.1);
    transform: translateY(-2px);
}

.step1-row-content {
    padding: 1.5rem;
}

.step1-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .step1-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Modern Exam Row Styles */
.sleek-rows-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modern-exam-row {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 0;
    margin: 0;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.modern-exam-row:hover {
    border-color: #2c70b8;
    box-shadow: 0 4px 20px rgba(44, 112, 184, 0.1);
    transform: translateY(-2px);
}

.exam-row-content {
    padding: 1.5rem;
    overflow: visible;
    position: relative;
}

.exam-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.exam-number {
    background: linear-gradient(135deg, #2c70b8, #1e5a9e);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(44, 112, 184, 0.3);
}

.remove-exam-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-exam-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

.exam-row-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.control-group {
    position: relative;
}

.control-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.control-group:has(.custom-select-trigger.disabled) .control-label {
    color: #9ca3af;
    opacity: 0.7;
}

.modern-select {
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.modern-select:focus {
    border-color: #2c70b8;
    box-shadow: 0 0 0 3px rgba(44, 112, 184, 0.1);
    outline: none;
}

.modern-trigger {
    border-radius: 12px !important;
    border: 1px solid #d0d7de !important;
    padding: 0.75rem 1rem !important;
}

.modern-trigger:hover {
    border-color: #2c70b8 !important;
}

.modern-trigger:focus {
    border-color: #2c70b8 !important;
    box-shadow: 0 0 0 3px rgba(44, 112, 184, 0.1) !important;
}

/* Modern Button Styles */
.modern-add-btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border: 2px solid #2c70b8;
    color: #2c70b8;
    transition: all 0.2s ease;
}

.modern-add-btn:hover {
    background-color: #2c70b8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 112, 184, 0.3);
}

.modern-btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modern-btn-primary {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    background: #2c70b8; /* Brand blue */
    border: none;
    transition: all 0.2s ease;
}

.modern-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(44, 112, 184, 0.35);
}

@media (max-width: 768px) {
    .exam-row-controls { grid-template-columns: 1fr; gap: 0.75rem; }
    .exam-row-content { padding: 0.9rem; }
    .exam-row-header { margin-bottom: 0.75rem; }
    .custom-select-trigger { min-height: 44px; }
    .dropdown-search-input { padding: 0.65rem; }
    .modern-add-btn { width: 100%; }
    .wizard-actions .btn { width: 100%; }
}

/* Form Validation */
.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Modern Schedule Results */
.modern-schedule-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
}

.schedule-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #2A78C4;
}

.schedule-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #2A78C4;
}

.schedule-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #E53935;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Demo badge removed for cleaner UI */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Exam Cards Grid - Desktop: Extended width, Mobile: Full width stacking */
.exam-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

/* Individual Exam Card - Compact for stacking 15+ exams */
.exam-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    width: 100%;
    min-height: 75px;
}

.exam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-left-strip {
    width: 4px;
    flex-shrink: 0;
    /* Color set dynamically via style attribute - no gradients */
}

.card-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.subject-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.2;
}

.exam-code-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    margin-left: 0.5rem;
}

.conflict-indicator {
    background-color: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.session-indicator {
    background-color: #17a2b8;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 0.5rem;
}

.exam-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.info-item i {
    width: 16px;
    color: #6c757d;
    text-align: center;
    flex-shrink: 0;
}

.info-text {
    color: #212529;
    font-weight: 500;
    line-height: 1.2;
}

/* Countdown Section - Flat, compact design */
.countdown-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 1px solid #dee2e6;
    min-width: 80px;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-number.normal {
    color: #198754;
}

.countdown-number.warning {
    color: #fd7e14;
}

.countdown-number.urgent {
    color: #dc3545;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.countdown-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.countdown-icon {
    margin-top: 0.25rem;
    color: #6c757d;
    font-size: 1rem;
}

/* Conflict Card */
.conflict-card {
    border-color: #dc3545;
    background: #fff5f5;
}

.conflict-card .card-left-strip {
    background: #dc3545;
}

/* Single Save as Image Button */
.schedule-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

.btn-save-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2c70b8;
    color: white;
    box-shadow: 0 4px 15px rgba(44, 112, 184, 0.3);
    text-align: center;
}

.btn-save-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 112, 184, 0.4);
    background: #1E5A9E;
}

.btn-save-image:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(44, 112, 184, 0.3);
}

/* Inline Search Dropdown Styling */
.searchable-select-container {
    position: relative;
    z-index: 1;
}

.searchable-select {
    cursor: pointer;
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    font-size: 0.95rem;
}

.custom-select-trigger:hover {
    border-color: #2c70b8;
}

.custom-select-trigger:focus {
    border-color: #2c70b8;
    box-shadow: 0 0 0 3px rgba(44, 112, 184, 0.1);
    outline: none;
}

.custom-select-trigger.disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.4;
    border-color: #e9ecef;
    position: relative;
    transition: all 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.custom-select-trigger.disabled:hover {
    opacity: 0.4;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.custom-select-trigger.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.15) 100%);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.custom-select-trigger.disabled::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    right: 2.5rem;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.8;
    z-index: 2;
    pointer-events: none;
    animation: pulse-lock 2s infinite;
}

@keyframes pulse-lock {
    0% { opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

.custom-select-trigger.disabled .trigger-text {
    color: #9ca3af;
    font-style: italic;
}

.custom-select-trigger.disabled i {
    color: #9ca3af;
    opacity: 0.5;
}

.trigger-text {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 500;
    font-style: italic;
}

.custom-select-trigger.has-value .trigger-text {
    color: #212529;
    font-style: normal;
}

.custom-select-trigger i {
    color: #6c757d;
    transition: transform 0.2s ease;
    font-size: 0.875rem;
}

.custom-select-trigger.open i {
    transform: rotate(180deg);
}

.dropdown-search-overlay {
    position: fixed;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: min(60vh, 420px);
    overflow: hidden;
    min-width: 300px;
    backdrop-filter: blur(8px);
}

.dropdown-search-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.95rem;
    outline: none;
    background: #fafbfc;
    border-radius: 12px 12px 0 0;
    font-weight: 500;
}

.dropdown-search-input:focus {
    border-bottom-color: #2c70b8;
    background: #fff;
}

.dropdown-options {
    max-height: min(50vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.search-option {
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.search-option:hover,
.search-option.active {
    background-color: #f1f5ff;
    border-left: 3px solid #2c70b8;
    padding-left: calc(1rem - 3px);
}

.search-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.search-option.no-results {
    color: #6c757d;
    font-style: italic;
    justify-content: center;
    padding: 2rem 1rem;
}

.subject-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.subject-code {
    font-size: 0.8rem;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-weight: 500;
}

.country-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.session-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

.board-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.95rem;
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Placeholder styling for select elements */
select:invalid {
    color: #9ca3af;
}

select option[disabled] {
    color: #9ca3af;
    font-style: italic;
}

select option:not([disabled]) {
    color: #212529;
}

/* Modern select placeholder behavior */
select:required:invalid {
    color: #9ca3af;
}

select:required:valid {
    color: #212529;
}

.exam-planner-area {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.subject-selector-container {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}

.subject-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.5rem;
}

.subject-list .form-check {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.subject-list .form-check:hover {
    background-color: #f8f9fa;
}

.subject-list .form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: #dc3545;
}

.intensity-slider {
    background: #dc3545;
}

.calendar-view {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.calendar-day {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.day-header {
    background-color: #f8f9fa;
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.day-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}

.day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0.25rem 0;
}

.month-name {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

.day-events {
    padding: 0.5rem;
}

.event {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.event:last-child {
    margin-bottom: 0;
}

.exam-event {
    border-left: 4px solid #dc3545 !important;
    background-color: #f8d7da !important;
}

.study-event {
    border-left: 4px solid #dc3545 !important;
    background-color: #cfe2ff !important;
}

.event-type {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.event-subject {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.event-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.list-view {
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
}

.schedule-day {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.schedule-day:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.day-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background-color: #f8f9fa;
    border-left: 4px solid #dee2e6;
}

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

.exam-item {
    border-left-color: #dc3545 !important;
    background-color: #f8d7da !important;
}

.study-item {
    border-left-color: #dc3545 !important;
    background-color: #cfe2ff !important;
}

.item-time {
    min-width: 80px;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.item-details {
    flex: 1;
    margin: 0 1rem;
}

.item-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.item-subject {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.item-code {
    font-size: 0.75rem;
    color: #6c757d;
}

.item-duration {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .wizard-container {
        padding: 0;
    }
    
    .step1-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exam-row-controls {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .exam-row-content {
        padding: 0.9rem;
    }
    
    .exam-row-header {
        margin-bottom: 0.75rem;
    }
    
    .custom-select-trigger {
        min-height: 44px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .dropdown-search-overlay {
        max-height: min(50vh, 300px);
        min-width: calc(100vw - 24px);
        left: 12px !important;
        right: 12px;
        width: auto !important;
    }
    
    .dropdown-search-input {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .dropdown-options {
        max-height: min(40vh, 240px);
    }
    
    .search-option {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .subject-name {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .subject-code {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .modern-add-btn {
        width: 100%;
    }
    
    .wizard-actions .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .schedule-meta {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .meta-item {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .exam-cards-grid {
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .exam-card {
        min-height: 60px;
        border-radius: 6px;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .exam-code-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0.3rem;
    }
    
    .info-item {
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .countdown-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-left: 1px solid #dee2e6;
        border-top: none;
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .countdown-icon {
        margin-top: 0.1rem;
        font-size: 0.8rem;
    }
    
    .schedule-actions {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .btn-save-image {
        width: 100%;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .schedule-title {
        font-size: 1.6rem;
    }
    
    .modern-schedule-container {
        padding: 0.75rem;
        margin-top: 2rem;
    }
}

/* Print Styles */
@media print {
    .exam-planner-area {
        background-color: #fff;
    }
    
    .calendar-view,
    .list-view {
        break-inside: avoid;
    }
    
    .event,
    .schedule-item {
        break-inside: avoid;
    }
    
    .btn {
        display: none !important;
    }
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#loading p {
    margin-top: 1rem;
    color: #495057;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Button Styles */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    border-radius: 8px;
}

.btn-outline-primary {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-primary:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Form Controls */
.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-range:focus {
    box-shadow: none;
}

.form-range::-webkit-slider-thumb {
    background-color: #dc3545;
}

.form-range::-moz-range-thumb {
    background-color: #dc3545;
    border: none;
}

/* Deroosak Watermark Styles */
.deroosak-watermark {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
}

.watermark-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.watermark-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.watermark-logo {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.watermark-text {
    font-size: 1rem;
    font-weight: 600;
    color: #E53935;
    font-style: italic;
    white-space: nowrap;
}

/* Disabled option styling */
.form-select option:disabled {
    color: #6c757d;
    background-color: #f8f9fa;
    font-style: italic;
}

/* Mobile watermark adjustments */
@media (max-width: 768px) {
    .deroosak-watermark {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .watermark-content {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .watermark-logo {
        width: 32px;
        height: 32px;
    }
    
    .watermark-text {
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
    }
}
