/* 
 * Core CSS for Watar Lebanon Music Academy
 * Consolidated from multiple CSS files to optimize loading
 */
 .progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: unset!important; 
    color: #000000 !important;/* var(--bs-progress-bar-color); */
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-progress-bar-bg);
    transition: var(--bs-progress-bar-transition);
}
/* Modal accessibility styles */
.modal-open {
    overflow: hidden;
}
/* #app_notifications{
    max-width: fit-content !important;
}
#notifications-list{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.notification-content{
   width: 100%;
} */
.user-avatar{
    float: left;
    width: 1rem;
    height: 1rem;
    margin-top: -2px;
    border-radius: 50%;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto; /* Center horizontally */
    pointer-events: none;
    max-width: 500px; /* Default max-width */
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Modal sizes */
.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-dialog.modal-xl {
    max-width: 1140px;
}

.modal-dialog.modal-sm {
    max-width: 300px;
}

/* Nested modals styles */
.modal-stacked {
    z-index: 1060 !important; /* Higher than regular modals */
}

.modal-backdrop-stacked {
    z-index: 1055 !important; /* Higher than regular backdrop */
}

/* Sidebar Enhancements */
.app-sidebar {
    transition: all 0.3s ease;
    background-color: #343a40 !important;
}

/* Brand area styling */
.sidebar-brand {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.brand-link {
    padding: 8px;
    display: flex;
    align-items: center;
}

.brand-image {
    max-height: 80px !important;
    width: auto;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-left: 5px;
}


/* Better spacing for menu items */
.sidebar-menu .nav-item {
    margin-bottom: 2px;
}

.sidebar-menu .nav-link {
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Improved treeview appearance */
.nav-treeview {
    padding-left: 15px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-treeview .nav-item {
    margin-bottom: 1px;
}

.nav-treeview .nav-link {
    padding: 6px 15px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
}

.nav-treeview .nav-link:hover {
    color: #fff;
}

/* Coming soon items styling */
.nav-link.disabled {
    opacity: 0.6;
    position: relative;
    color: rgba(255, 255, 255, 0.5) !important;
}

.nav-link.disabled::after {
    content: "Soon";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(var(--bs-primary-rgb), 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
}

/* Improved icons */
.sidebar-menu .nav-icon {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Active item highlighting */
.sidebar-menu .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Nested active items */
.nav-treeview .nav-link.active {
    background-color: rgba(var(--bs-primary-rgb), 0.7);
    color: white;
}

/* Chevron icon animation */
.nav-arrow {
    transition: transform 0.3s ease;
}

.nav-item.menu-open > .nav-link .nav-arrow {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(90deg);
}

/* Section headers */
/* Improved section headers */
.sidebar-wrapper .nav-header {
    color: var(--lte-sidebar-header-color);
    background-color: inherit;
  }
  .sidebar-menu .nav-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
  .sidebar-menu .nav-header2 {
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
  }
  .sidebar-menu,
  .sidebar-menu > .nav-header,
  .sidebar-menu .nav-link {
    white-space: nowrap;
  }

.nav-header2 {
    padding: 1.5rem 1rem 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    /* font-weight: 700; */
    color: white;
    margin-top: 1rem;
    display: block;
    width: 100%;
}

/* Section headers with underline */
/* .nav-header2.underline {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
} */
.nav-header2.underline {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.nav-header2.underline a {
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* Section header text */
.nav-header2 span {
    letter-spacing: 0.05em;
    display: block;
    color: #adb5bd;
}

/* Common search results styling */
.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 8px 12px;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

/* Common form and card styles */
.card-title-summary {
    text-align: right;
    font-size: 40px;
}

/* Common schedule and attendance styles */
.schedule-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.schedule-day {
    margin-bottom: 20px;
}

.schedule-header {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #dee2e6;
}

.schedule-time-slot {
    display: flex;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.schedule-time {
    flex: 0 0 150px;
    font-weight: bold;
}

.schedule-details {
    flex: 1;
}

/* Export buttons styling */
.export-buttons-container {
    position: relative;
}

.dt-buttons {
    position: absolute;
    /* right: 0; */
   /*  top: 40px; */
    z-index: 1000;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
}

.dt-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
}

.dt-button:hover {
    background-color: #f8f9fa;
}

/* Schedule Specific Styles */
/* Styling for the list view */
.list-view .day-section {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

.list-view .day-header {
    background-color: #e9ecef;
    padding: 10px 15px;
    margin: -15px -15px 15px -15px; /* Extend to edges */
    border-bottom: 1px solid #ccc;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 1.2em;
    text-align: center;
}

.list-view .time-slot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-view .time-slot-item {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    min-height: 50px; /* Ensure minimum height */
    cursor: pointer; /* Indicate clickable area for adding */
}

.list-view .time-slot-item:last-child {
    border-bottom: none;
}

.list-view .time-label {
    width: 80px; /* Fixed width for time */
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
    padding-right: 10px;
    flex-shrink: 0; /* Prevent shrinking */
    margin-top: 5px; /* Align better with cards */
}

.list-view .classes-container {
    display: flex;
    flex-wrap: wrap; /* Allow classes to wrap */
    gap: 5px; /* Space between class cards */
    flex-grow: 1;
}

/* Adjust class card for list view */
.list-view .class-card {
    max-width: 150px; /* Prevent cards from becoming too wide */
    vertical-align: top; /* Align cards nicely when they wrap */
    white-space: normal; /* Allow text wrapping within the card */
    word-wrap: break-word; /* Break long words if necessary */
}

.class-card {
    background-color: #cfe2ff; /* Light blue */
    border: 1px solid #9ec5fe;
    border-radius: 4px;
    padding: 5px;
    font-size: 0.8em;
    margin-bottom: 2px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Keep content on one line initially */
}
.class-card:hover {
    background-color: #b6d4fe;
}
.class-card .teacher-name {
    font-weight: bold;
}
.class-card .student-list {
    font-size: 0.9em;
    margin-top: 3px;
    white-space: normal; /* Allow student list to wrap */
}
/* Highlighting styles */
.original-slot { /* Class card for original slot of a relocated student */
    background-color: #fff3cd !important; /* Light yellow */
    border-color: #ffe69c !important;
}
.temporary-slot { /* Class card for the temporary slot of a relocated student */
    background-color: #cff4fc !important; /* Light cyan */
    border-color: #9eeaf9 !important;
}

/* Add styles for suggestion dropdowns */
#teacherSuggestions, #studentSuggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #ced4da;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 2px); /* Match input width */
    z-index: 1050; /* Ensure it's above modal content */
    display: none; /* Hidden by default */
}
.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
}
.suggestion-item:hover {
    background-color: #e9ecef;
}

.relocate{
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-font-size: 0.75rem;
}

/* Styles for student name highlighting within card */
.relocation-needed-student { /* Red text/icon for student needing move */ }
.temporary-slot-student { /* Blue text/icon for student in temp slot */ }

/* Style for relocation mode */
.relocation-mode .class-card {
    cursor: crosshair !important; /* Indicate target selection */
}
.relocation-mode .class-card:hover {
    border: 2px solid #0d6efd; /* Highlight potential target */
}
.selected-student .remove-student {
    margin-left: 5px;
    padding: 0 3px;
    line-height: 1;
}


/* add discount */
.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 8px 12px;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}
.card-title-summary{
    /* position: absolute; */
    text-align: right;
    font-size: 40px;
}

/* Sidebar Enhancements */
.app-sidebar {
    transition: all 0.3s ease;
}

/* Improved section headers */
.nav-header2.underline {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.nav-header2.underline a {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Better spacing for menu items */
.sidebar-menu .nav-item {
    margin-bottom: 2px;
}

.sidebar-menu .nav-link {
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.sidebar-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Improved treeview appearance */
.nav-treeview {
    padding-left: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.nav-treeview .nav-item {
    margin-bottom: 1px;
}

.nav-treeview .nav-link {
    padding: 6px 15px;
    font-size: 0.95em;
}

/* Coming soon items styling */
.nav-link.disabled {
    opacity: 0.6;
    position: relative;
}

.nav-link.disabled::after {
    content: "Soon";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(var(--bs-primary-rgb), 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
}

/* Improved icons */
.sidebar-menu .nav-icon {
    margin-right: 8px;
}

/* Active item highlighting */
.sidebar-menu .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
}

/* Nested active items */
.nav-treeview .nav-link.active {
    background-color: rgba(var(--bs-primary-rgb), 0.7);
}
/* Increase z-index for the bulk add modal to appear above the schedule modal */
#bulkAddModal {
    z-index: 1060; /* Higher than default Bootstrap modal z-index */
}

/* Ensure proper backdrop handling for nested modals */
.modal-backdrop + .modal-backdrop {
    z-index: 1059; /* One less than the nested modal */
}

/* Fix for focus outline when nested modals are used */
.modal.show:focus {
    outline: none;
}
/**
 * Modal Accessibility CSS
 * Enhances modal accessibility with proper focus styles and management
 */

/* Ensure focus is visible on all interactive elements */
:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
  }
  
  /* Ensure modals don't interfere with focus management */
  .modal {
    outline: none;
  }
  
  /* Remove Bootstrap's default aria-hidden behavior for modals */
  .modal.show {
    /* Override Bootstrap's default behavior */
    visibility: visible !important;
    display: block !important;
  }
  
  /* Ensure buttons in modals have clear focus states */
  .modal button:focus,
  .modal input:focus,
  .modal select:focus,
  .modal a:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  }
  
  /* Ensure close buttons are clearly visible when focused */
  .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    opacity: 1;
  }