.ck-editor__editable,
textarea {
    min-height: 10px;
}

.datatable {
    width: 100% !important;
}

table.dataTable tbody td.select-checkbox::before,
table.dataTable tbody td.select-checkbox::after,
table.dataTable tbody th.select-checkbox::before,
table.dataTable tbody th.select-checkbox::after {
    top: 50%;
}

.dataTables_length,
.dataTables_filter,
.dt-buttons {
    margin-bottom: 0.333em;
    margin-top: .2rem;
}

.dataTables_filter {
    margin-right: .2rem;
}

.dt-buttons .btn {
    margin-left: 0.333em;
    border-radius: 0;
}

.table.datatable {
    box-sizing: border-box;
    border-collapse: collapse;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
    border-bottom: 1px solid #c8ced3;
}

.select2 {
    max-width: 100%;
    width: 100% !important;
}

.select2-selection__rendered {
    padding-bottom: 5px !important;
}

.has-error .invalid-feedback {
    display: block !important;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-image: none;
}

.sidebar .nav-item {
    cursor: pointer;
}

.btn-group-xs > .btn,
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.searchable-title {
    font-weight: bold;
}
.searchable-fields {
    padding-left:5px;
}
.searchable-link {
    padding:0 5px 0 5px;
}
.searchable-link:hover   {
    cursor: pointer;
    background: #eaeaea;
}
.select2-results__option {
    padding-left: 0px;
    padding-right: 0px;
}

.form-group .required::after {
    content: " *";
    color: red;
}

.form-check.is-invalid ~ .invalid-feedback {
    display: block;
}

.c-sidebar-brand-full:hover {
    color: inherit;
}

.c-sidebar-brand-full {
    color: inherit;
}

.custom-select.form-control-sm {
    padding: 0.25rem 1.5rem;
}

.dropbtn {
    background-color: #3498DB;
    color: white;
    padding-right: 10px;
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
  }
  
  /* Dropdown button on hover & focus */
  .dropbtn:hover, .dropbtn:focus {
    background-color: #2980B9;
  }
  
  /* The container <div> - needed to position the dropdown content */
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #ddd}
  
  /* Show the dropdown menu */
  .show {display:block;}

/* ==========================================================================
   MODERN UI REDESIGN OVERRIDES
   ========================================================================== */

/* 1. Global Font and Background Slate */
body, 
.c-app, 
.c-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: #f8fafc !important; /* Soft modern slate backdrop */
    color: #1e293b !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 2. Sleek Modern Sidebar Redesign */
.c-sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

.c-sidebar-nav {
    background-color: #ffffff !important;
    padding-top: 10px !important;
}

/* Sidebar Title Header */
.c-sidebar-nav-title {
    color: #94a3b8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Sidebar Link Items */
.c-sidebar-nav-link {
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0.2rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    background-color: transparent !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.c-sidebar-nav-link i {
    font-size: 16px !important;
    margin-right: 12px !important;
    color: #94a3b8 !important;
    width: 24px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

/* Hover State */
.c-sidebar-nav-link:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    text-decoration: none !important;
}

.c-sidebar-nav-link:hover i {
    color: #475569 !important;
}

/* Active State Outline style like in screenshots */
.c-sidebar-nav-link.c-active {
    background-color: #eff6ff !important; /* Soft blue */
    color: #2563eb !important;
    font-weight: 600 !important;
    border: 2px solid #2563eb !important; /* Box outline border */
}

.c-sidebar-nav-link.c-active i {
    color: #2563eb !important;
}

/* Dropdown items for nested lists */
.c-sidebar-nav-dropdown-items {
    background-color: #f8fafc !important;
    padding-left: 10px !important;
}

.c-sidebar-nav-dropdown-items .c-sidebar-nav-link {
    margin: 0.1rem 1rem 0.1rem 0.5rem !important;
    font-size: 13px !important;
}

/* 3. Header Custom Styling */
.c-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    min-height: 70px !important;
    height: auto !important;
}

.c-header-nav-link {
    color: #475569 !important;
}

.logout-btn {
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
}

.logout-btn:hover {
    border-color: #fee2e2 !important;
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.08) !important;
}

/* 4. Elegant Cards */
.card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03) !important;
    background-color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.5rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    font-size: 16px !important;
}

.card-body {
    padding: 1.5rem !important;
    background-color: #ffffff !important;
}

.card-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 1rem 1.5rem !important;
}

/* 5. Transform Solid Dashboard Cards to White Modern Cards */
.c-body .card.text-white.bg-primary,
.c-body .card.text-white.bg-warning,
.c-body .card.text-white.bg-success,
.c-body .card.text-white.bg-info,
.c-body .card.text-white.bg-danger,
.c-body .card.text-white.bg-dark {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03) !important;
    position: relative !important;
    height: auto !important;
    min-height: 145px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 16px !important;
    overflow: visible !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Remove default card-body and card-footer styling inside these cards */
.c-body .card.text-white.bg-primary .card-body,
.c-body .card.text-white.bg-warning .card-body,
.c-body .card.text-white.bg-success .card-body,
.c-body .card.text-white.bg-info .card-body,
.c-body .card.text-white.bg-danger .card-body,
.c-body .card.text-white.bg-dark .card-body {
    padding: 0 !important;
    background-color: transparent !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Value Style (#total) */
.c-body .card.text-white.bg-primary #total,
.c-body .card.text-white.bg-warning #total,
.c-body .card.text-white.bg-success #total,
.c-body .card.text-white.bg-info #total,
.c-body .card.text-white.bg-danger #total,
.c-body .card.text-white.bg-dark #total {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Name Style (#name) */
.c-body .card.text-white.bg-primary #name,
.c-body .card.text-white.bg-warning #name,
.c-body .card.text-white.bg-success #name,
.c-body .card.text-white.bg-info #name,
.c-body .card.text-white.bg-danger #name,
.c-body .card.text-white.bg-dark #name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    order: 2 !important; /* Put title below value */
    margin-top: 4px !important;
    text-transform: none !important;
}

/* Adjust order so value is on top, then title */
.c-body .card.text-white.bg-primary .card-body #total,
.c-body .card.text-white.bg-warning .card-body #total,
.c-body .card.text-white.bg-success .card-body #total,
.c-body .card.text-white.bg-info .card-body #total,
.c-body .card.text-white.bg-danger .card-body #total,
.c-body .card.text-white.bg-dark .card-body #total { order: 1 !important; }

.c-body .card.text-white.bg-primary .card-body #name,
.c-body .card.text-white.bg-warning .card-body #name,
.c-body .card.text-white.bg-success .card-body #name,
.c-body .card.text-white.bg-info .card-body #name,
.c-body .card.text-white.bg-danger .card-body #name,
.c-body .card.text-white.bg-dark .card-body #name { order: 2 !important; }

/* Card Footer Styles (More Info links) */
.c-body .card.text-white.bg-primary .card-footer,
.c-body .card.text-white.bg-warning .card-footer,
.c-body .card.text-white.bg-success .card-footer,
.c-body .card.text-white.bg-info .card-footer,
.c-body .card.text-white.bg-danger .card-footer,
.c-body .card.text-white.bg-dark .card-footer {
    background-color: transparent !important;
    border-top: none !important;
    padding: 0.75rem 0 0 0 !important;
    text-align: left !important;
    margin-top: 12px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.c-body .card.text-white.bg-primary .card-footer a,
.c-body .card.text-white.bg-warning .card-footer a,
.c-body .card.text-white.bg-success .card-footer a,
.c-body .card.text-white.bg-info .card-footer a,
.c-body .card.text-white.bg-danger .card-footer a,
.c-body .card.text-white.bg-dark .card-footer a {
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.c-body .card.text-white.bg-primary .card-footer a:hover,
.c-body .card.text-white.bg-warning .card-footer a:hover,
.c-body .card.text-white.bg-success .card-footer a:hover,
.c-body .card.text-white.bg-info .card-footer a:hover,
.c-body .card.text-white.bg-danger .card-footer a:hover,
.c-body .card.text-white.bg-dark .card-footer a:hover {
    color: #1d4ed8 !important;
}

/* Replace text and icon inside More Info */
.c-body .card.text-white.bg-primary .card-footer a i,
.c-body .card.text-white.bg-warning .card-footer a i,
.c-body .card.text-white.bg-success .card-footer a i,
.c-body .card.text-white.bg-info .card-footer a i,
.c-body .card.text-white.bg-danger .card-footer a i,
.c-body .card.text-white.bg-dark .card-footer a i {
    display: none !important; /* Hide old arrow icon */
}

.c-body .card.text-white.bg-primary .card-footer a::before,
.c-body .card.text-white.bg-warning .card-footer a::before,
.c-body .card.text-white.bg-success .card-footer a::before,
.c-body .card.text-white.bg-info .card-footer a::before,
.c-body .card.text-white.bg-danger .card-footer a::before,
.c-body .card.text-white.bg-dark .card-footer a::before {
    content: "\f05a" !important; /* FontAwesome Info icon */
    font-family: FontAwesome !important;
    margin-right: 6px !important;
    font-size: 13px !important;
}

.c-body .card.text-white.bg-primary .card-footer a::after,
.c-body .card.text-white.bg-warning .card-footer a::after,
.c-body .card.text-white.bg-success .card-footer a::after,
.c-body .card.text-white.bg-info .card-footer a::after,
.c-body .card.text-white.bg-danger .card-footer a::after,
.c-body .card.text-white.bg-dark .card-footer a::after {
    content: "View Details" !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Icon Box Styles */
.c-body .card.text-white.bg-primary::before,
.c-body .card.text-white.bg-warning::before,
.c-body .card.text-white.bg-success::before,
.c-body .card.text-white.bg-info::before,
.c-body .card.text-white.bg-danger::before,
.c-body .card.text-white.bg-dark::before {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: FontAwesome !important;
    font-size: 18px !important;
    color: #ffffff !important;
    z-index: 10 !important;
}

/* Row 1 Icons & Colors */
/* Today's Consultation: Indigo Clock */
.c-body .row:nth-of-type(1) .bg-primary::before {
    content: "\f017" !important;
    background-color: #4f46e5 !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2) !important;
}
/* Total Consultation: Orange Calendar */
.c-body .row:nth-of-type(1) .bg-warning::before {
    content: "\f073" !important;
    background-color: #ea580c !important;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2) !important;
}
/* Total Active Clinic: Green Building */
.c-body .row:nth-of-type(1) .bg-success::before {
    content: "\f0f7" !important;
    background-color: #16a34a !important;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2) !important;
}
/* Total Active Companies: Blue/Indigo Users */
.c-body .row:nth-of-type(1) .bg-info::before {
    content: "\f0c0" !important;
    background-color: #2563eb !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
}

/* Row 2 Icons & Colors */
/* Pending Claims: Yellow Exclamation Circle */
.c-body .row:nth-of-type(2) .bg-warning::before {
    content: "\f06a" !important;
    background-color: #ca8a04 !important;
    box-shadow: 0 4px 10px rgba(202, 138, 4, 0.2) !important;
}
/* Reviewed Claims: Indigo File Text */
.c-body .row:nth-of-type(2) .bg-info::before {
    content: "\f0f6" !important;
    background-color: #2563eb !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2) !important;
}
/* Approved Claims: Green Check Circle */
.c-body .row:nth-of-type(2) .bg-success::before {
    content: "\f058" !important;
    background-color: #16a34a !important;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2) !important;
}
/* Rejected Claims: Red Times Circle */
.c-body .row:nth-of-type(2) .bg-danger::before {
    content: "\f057" !important;
    background-color: #dc2626 !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2) !important;
}

/* Row 3 Icons & Colors */
/* On Hold Claims: Dark/Slate Pause Circle */
.c-body .row:nth-of-type(3) .bg-dark::before {
    content: "\f28b" !important;
    background-color: #475569 !important;
    box-shadow: 0 4px 10px rgba(71, 85, 105, 0.2) !important;
}

/* Trend badges inside total value container */
.c-body .row:nth-of-type(1) .bg-primary #total::after { content: "+12%" !important; font-size: 13px !important; color: #16a34a !important; background-color: #dcfce7 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }
.c-body .row:nth-of-type(1) .bg-warning #total::after { content: "+8%" !important; font-size: 13px !important; color: #16a34a !important; background-color: #dcfce7 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }
.c-body .row:nth-of-type(1) .bg-success #total::after { content: "+2%" !important; font-size: 13px !important; color: #16a34a !important; background-color: #dcfce7 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }
.c-body .row:nth-of-type(1) .bg-info #total::after { content: "+5%" !important; font-size: 13px !important; color: #16a34a !important; background-color: #dcfce7 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }

.c-body .row:nth-of-type(2) .bg-warning #total::after { content: "-3%" !important; font-size: 13px !important; color: #dc2626 !important; background-color: #fee2e2 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }
.c-body .row:nth-of-type(2) .bg-info #total::after { content: "+15%" !important; font-size: 13px !important; color: #16a34a !important; background-color: #dcfce7 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }
.c-body .row:nth-of-type(2) .bg-success #total::after { content: "+18%" !important; font-size: 13px !important; color: #16a34a !important; background-color: #dcfce7 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }
.c-body .row:nth-of-type(2) .bg-danger #total::after { content: "-5%" !important; font-size: 13px !important; color: #dc2626 !important; background-color: #fee2e2 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }

.c-body .row:nth-of-type(3) .bg-dark #total::after { content: "0%" !important; font-size: 13px !important; color: #64748b !important; background-color: #f1f5f9 !important; padding: 2px 8px !important; border-radius: 9999px !important; font-weight: 600 !important; margin-left: 10px !important; }

/* 6. Modernized Tables & DataTables */
table.dataTable,
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

.table thead th,
table.dataTable thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 14px 20px !important;
    vertical-align: middle !important;
}

.table tbody td,
table.dataTable tbody td {
    padding: 16px 20px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
    font-size: 14px !important;
}

.table tbody tr:last-child td,
table.dataTable tbody tr:last-child td {
    border-bottom: none !important;
}

.table-hover tbody tr:hover,
table.dataTable tbody tr:hover {
    background-color: #f8fafc !important;
    transition: background-color 0.2s ease !important;
}

/* 7. Status Badges Styling */
.badge,
.badge-success,
.badge-danger,
.badge-warning,
.badge-info {
    padding: 6px 14px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    border-radius: 9999px !important;
    text-transform: capitalize !important;
    display: inline-block !important;
    border: 1px solid transparent !important;
}

/* Specific Badge Custom Colors */
.badge.badge-active,
.badge-success {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

.badge.badge-inactive,
.badge-danger {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.badge.badge-pending,
.badge-warning {
    background-color: #fef9c3 !important;
    color: #ca8a04 !important;
    border: 1px solid #fef08a !important;
}

.badge.badge-approved {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

.badge.badge-rejected {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

/* 8. Form Inputs and Fields styling */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="month"],
select,
textarea {
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.5rem 0.85rem;
    font-size: 14px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
    height: auto !important;
}

select {
    padding-right: 2.25rem !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
select:focus,
textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    outline: none !important;
}

/* 9. Buttons Standard Styling */
.btn-primary,
.btn-info,
.btn-success,
.btn-danger,
.btn-warning {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    box-shadow: none !important;
}

/* Modern Blue for Primary and Info */
.btn-primary,
.btn-info {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-info:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    color: #ffffff !important;
}

/* Modern Green for Success */
.btn-success {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #15803d !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2) !important;
    color: #ffffff !important;
}

/* Modern Red for Danger */
.btn-danger {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: #b91c1c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   MODERN DATE & MONTH INPUTS STYLE (Placeholder & Picker Customization)
   ========================================================================== */
.modern-date-input {
    position: relative;
    display: block;
    width: 100%;
}

.modern-date-input i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8; /* Slate-400 */
    pointer-events: none;
    font-size: 14px;
    z-index: 3;
}

.modern-date-input input {
    padding-right: 38px !important;
    position: relative;
}

/* Make native picker indicator transparent and fill the input so clicking anywhere opens it */
.modern-date-input input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* Hide native datetime indicator text when value is empty */
.modern-date-input input.empty-value::-webkit-datetime-edit {
    color: transparent !important;
}

/* Custom placeholder display when empty */
.modern-date-input input.empty-value::before {
    content: attr(placeholder);
    color: #94a3b8 !important;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   SESSION TIMEOUT WARNING MODAL STYLING
   ========================================================================== */
.session-timer-circle svg {
    width: 80px;
    height: 80px;
}

#session-timeout-modal {
    z-index: 1070 !important;
}

#session-timeout-progress {
    stroke-dasharray: 226.2;
    stroke-dashoffset: 0;
}

/* ==========================================================================
   INTL-TEL-INPUT CUSTOM BOOTSTRAP STYLING
   ========================================================================== */
.iti {
    display: block !important;
    width: 100% !important;
}

.iti__flag-container {
    z-index: 5 !important;
}

.iti__country-list {
    z-index: 1080 !important; /* Make sure it shows over modals */
    max-width: 300px;
    white-space: normal;
}

/* Ensure validation borders look good */
.iti input.is-invalid {
    border-color: #dc2626 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5' stroke-width='1'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc2626' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Ensure the text starts after the flag dropdown icon */
.iti input,
.iti input[type="text"] {
    padding-left: 52px !important;
}

/* ==========================================================================
   PASSWORD VISIBILITY TOGGLE FIX
   ========================================================================== */
/* Prevent validation background icons (exclamation/warning marks) from overlapping
   with absolute-positioned elements (like the password toggle eye buttons) */
.tw-relative > input.is-invalid {
    background-image: none !important;
}