.bg-light-green
{
    background-color: #6dd97d !important;
}

.bg-light-red
{
    background-color: #ff8585 !important;
}

.swal2-popup {
    font-size: .7rem !important;
}

.swal2-title {
    font-size: 20px !important;
}

.col-action {
    width: 80px;
}

.rpp-dropdown {
    height: auto !important;
    padding: 0px 22px 0px 10px;
}

.sm-btn {
    font-size: 14px !important;
    padding: 2px 12px !important;
    border-radius: 16px !important;
}

.sm-btn .btn-title {
    margin-top: -2px !important;
}
.form-check
{
    display: flex;
    align-items: center;
    gap: 4px!important;
}
.md-btn {
    padding: 8px 24px !important;
    height: 42px !important;
    border-radius: 20px !important;
}

.breadcrumb {
    margin-bottom: 18px;
}

.page-title {
    font-size: 20px !important;
}

.datatable-search-input {
    height: 32px;
}

#dataTable_wrapper .bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.section-item {
    display: flex;
    gap: 8px;
}

.seats-input {
    width: 200px;
}

.flatpickr-wrapper
{
	width: 100%;
}
.datepicker[readonly], .daterangepicker[readonly], .datetimepicker[readonly], .timepicker[readonly]
{
	background-color: #FFF!important;
}

.md-field
{
	height: 38px!important;
	padding: 5px 24px 5px 10px!important
}

.dt-length .dt-input
{
	height: 36px;
    padding: 5px 12px 5px 8px;
	background-color: #FFF!important;
}

.exp-btn
{
	height: 38px;
}


/* Fee Collection - Month Card Styles */
.month-selectable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.month-selectable:hover {
    background-color: #f0f7ff !important;
}

.month-selectable.month-selected {
    background-color: #e0f2fe !important;
    border-color: #0ea5e9 !important;
}

.month-group[data-disabled="disabled"] {
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Fee Calculation Loader */
#feeCalculationLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#feeCalculationLoader img {
    width: 64px;
    height: 64px;
}

/* Timetable Slots - Schedule Group Header Styles */
.schedule-group-header {
    background-color: #f0f4ff !important;
    border-top: 3px solid #6366f1 !important;
    border-bottom: 2px solid #6366f1 !important;
}

.schedule-group-header td {
    padding: 14px 20px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #6366f1 !important;
    background-color: #f0f4ff !important;
    text-align: left !important;
}

.schedule-group-header:hover {
    background-color: #e0e7ff !important;
}

.schedule-group-header td:hover {
    background-color: #e0e7ff !important;
}

.schedule-group-header td strong {
    display: block;
    font-size: 16px;
    color: #4f46e5 !important;
    text-align: left !important;
}

/* Add slight indentation to slot rows when grouped 
#dataTable tbody tr:not(.schedule-group-header) td:first-child {
    padding-left: 28px;
}*/

/* Badge close button styling */
.badge .btn-close-sm {
    background-size: 8px;
    opacity: 0.7;
}

.badge .btn-close-sm:hover {
    opacity: 1;
}

.select2-container--default .select2-selection--single
{
    height: 2.75rem !important;
    border: 1px solid var(--input-form-light) !important;
    color: var(--text-primary-light) !important;
    border-radius:  var(--bs-border-radius) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered
{
    line-height: 42px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 4px !important;;
}
.select2-container--default .select2-selection--single .select2-selection__clear
{
    right: 4px;
}

/* Vertical Tabs Styling */
.nav-pills.flex-column .nav-link {
    border: 1px solid var(--light-800);
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-pills.flex-column .nav-link:hover {
    background-color: #FFF;
    border: 1px solid var(--warning-200);
    background-color: var(--warning-200);
}

.nav-pills.flex-column .nav-link.active {
    background-color: var(--primary-600) !important;
    border: 1px solid var(--primary-600);
    color: #fff !important;
}

.nav-pills.flex-column .nav-link.active i {
    color: #fff !important;
}

.nav-pills.flex-column .nav-item:last-child {
    margin-bottom: 0 !important;
}

.nav-link:focus, .nav-link:hover
{
    color: var(--primary-600) !important;
}

.attendance-marked
{
    background: #deffe1;
}

/* === FullCalendar CSS === */
:root {
  --fc-primary: #7F77DD;
  --fc-radius: 8px;
  --fc-btn-height: 36px;
}

/* Toolbar container */
.fc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border: 0.5px solid #e5e5e5;
  border-radius: 12px;
  margin-bottom: 0;
}

.fc-toolbar-title {
  font-size: 18px !important;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.2px;
}

/* All buttons reset */
.fc-button {
  height: var(--fc-btn-height);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--fc-radius) !important;
  border: 0.5px solid #d0d0d0 !important;
  background: #fff !important;
  color: #333 !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  outline: none !important;
  text-transform: capitalize;
}

.fc-button:hover:not(:disabled) {
  background: #f5f5f5 !important;
  border-color: #aaa !important;
}

.fc-button:active:not(:disabled) {
  transform: scale(0.97);
}

/* Active view button */
.fc-button-active,
.fc-button-active:hover {
  background: #EEEDFE !important;
  border-color: #AFA9EC !important;
  color: #3C3489 !important;
}

/* Disabled button */
.fc-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Grouped prev/next buttons */
.fc-button-group .fc-button:first-child {
  border-radius: 8px 4px 4px 8px !important;
}
.fc-button-group .fc-button:last-child {
  border-radius: 4px 8px 8px 4px !important;
}
.fc-button-group {
  gap: 2px;
  display: flex;
}

.fc-today-button {
  padding: 0 16px;
}

.fc-holiday-cell
{
    background: #ffbec4;
}

.fc-daygrid-block-event .fc-event-time, .fc-daygrid-block-event .fc-event-title {
    color: #000;
}


/* Global Student Search Styles */
.navbar-search {
  position: relative;
}

.search-results-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1050;
  margin-top: 8px;
}

.search-results-dropdown.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f1f1f1;
  text-decoration: none;
  color: inherit;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.search-result-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #e9ecef;
}

.search-result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-photo i {
  font-size: 32px;
  color: #6c757d;
}

.search-result-info {
  flex-grow: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-details {
  font-size: 12px;
  color: #6c757d;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

.search-loading {
  padding: 20px;
  text-align: center;
  color: #487fff;
  font-size: 14px;
}

/* Quick Menu Sidebar Styles */
.quick-menu-sidebar {
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 9999;
    max-width: 700px;
}

.quick-menu-sidebar.active {
    transform: translateX(0) !important;
}

.quick-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quick-menu-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.quick-menu-btn:hover {
    background-color: var(--primary-600) !important;
    transform: scale(1.05);
}

.quick-menu-btn:hover i {
    color: white !important;
}

.quick-menu-item {
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-menu-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.close-quick-menu {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-quick-menu:hover {
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-menu-sidebar {
        max-width: 100% !important;
    }
}

/* Additional color classes for Quick Menu icons */
.bg-purple-600 {
    background-color: #9333ea !important;
}

.bg-cyan-600 {
    background-color: #0891b2 !important;
}

.bg-indigo-600 {
    background-color: #4f46e5 !important;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active
{
    border-color: transparent;
}

.dropdown>button.show {
    background-color: transparent;
}
.table-responsive
{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Dropdowns moved to body need proper styling */
body > .dropdown-menu {
    position: fixed !important;
    z-index: 9999 !important;
}

/* Fix for dropdown menus in DataTables appearing behind rows */
.dataTable-wrapper {
    overflow: visible !important;
}

.card-body.dataTable-wrapper {
    overflow: visible !important;
}

table.dataTable tbody tr {
    position: relative;
    z-index: 1;
}

table.dataTable tbody tr:hover {
    z-index: 2;
}

table.dataTable .dropdown-menu {
    z-index: 1060 !important;
}

.my-table {
    overflow: overlay;
}

/* Glassmorphism Login Card */
.login-glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-height: 90vh;
    overflow-y: auto;
}

.login-glass-card::-webkit-scrollbar {
    width: 6px;
}

.login-glass-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.login-glass-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.login-glass-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Glass Input Fields */
.glass-input {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #333 !important;
    transition: all 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(100, 100, 100, 0.8) !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2) !important;
    color: #333 !important;
}

/* Glass Select Dropdown Options */
.glass-input option {
    background: rgba(255, 255, 255, 0.98);
    color: #333;
}

/* Responsive Design for Login */
@media (max-width: 991px) {
    .login-glass-card {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .login-glass-card label,
    .login-glass-card h1,
    .login-glass-card p,
    .login-glass-card .form-check-label,
    .login-glass-card a:not(.btn) {
        color: #333 !important;
    }
    
    .glass-input {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #333 !important;
        border: 1px solid #ddd !important;
    }
    
    .glass-input::placeholder {
        color: #999 !important;
    }
    
    .glass-input option {
        background: #fff;
        color: #333;
    }
    
    .toggle-password {
        color: #333 !important;
    }
}

/* Sidebar Profile Dropdown Fix */
.sidebar .profile-dropdown {
    position: relative;
}

.sidebar .profile-dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    margin-top: 0.5rem !important;
    will-change: auto !important;
}

.sidebar .profile-dropdown .dropdown-menu.dropdown-menu-lg-end {
    left: auto !important;
    right: 0 !important;
}

/* Force dropdown to use proper positioning */
.sidebar .dropdown-menu[data-bs-popper] {
    position: absolute !important;
    inset: auto !important;
}

/* Sidebar Menu Icon Alignment Fix */
.sidebar-menu > li > a,
.sidebar-menu .dropdown > a {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
}

.sidebar-menu > li > a > i,
.sidebar-menu .dropdown > a > i {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 18px !important;
}

.sidebar-submenu li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
}

.sidebar-submenu li a i {
    flex-shrink: 0 !important;
}
