/* ==========================================================================
   DRVaishampayan 2026 Premium Pink SaaS Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --pink-50:  #fff0f7;
    --pink-100: #ffe0f0;
    --pink-200: #ffc0e0;
    --pink-300: #ff8ec5;
    --pink-400: #ff5eac;
    --pink-500: #e91e8c;
    --pink-600: #c91478;
    --pink-700: #a30d63;
    --pink-800: #7c0a4b;
    --pink-900: #1a0a12;

    --primary:          #e91e8c;
    --primary-hover:    #c91478;
    --primary-dark:     #a30d63;
    --primary-light:    #fff0f7;
    --primary-soft:     #ffe0f0;
    --primary-glow:     rgba(233, 30, 140, 0.22);
    --primary-gradient: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    --primary-gradient-hover: linear-gradient(135deg, #c91478 0%, #e91e8c 100%);

    --surface-bg:           #ffffff;
    --surface-secondary:    #fff8fc;
    --surface-card:         #ffffff;
    --surface-card-hover:   #fff0f7;
    --surface-sidebar:      #ffffff;
    --surface-sidebar-item: rgba(233, 30, 140, 0.04);
    --surface-sidebar-hover:#fff0f7;
    --surface-topbar:       rgba(255, 255, 255, 0.88);
    --surface-overlay:      rgba(19, 4, 13, 0.6);

    --text-primary:   #0d0d0d;
    --text-secondary: #4a4a5a;
    --text-muted:     #9196a8;
    --text-inverse:   #ffffff;
    --text-pink:      #e91e8c;

    --success:       #10b981;
    --success-light: #d1fae5;
    --success-dark:  #065f46;
    --warning:       #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark:  #92400e;
    --danger:        #ef4444;
    --danger-light:  #fee2e2;
    --danger-dark:   #991b1b;
    --info:          #06b6d4;
    --info-light:    #cffafe;

    --border-color:       #f0e8f0;
    --border-color-hover: #e0c8dc;
    --border-color-focus: #ff5eac;
    --border-color-input: #e5dce8;

    --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Manrope', var(--font-body);

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;

    --radius-xs:   4px;
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-2xl:  32px;
    --radius-full: 9999px;

    --shadow-xs:   0 1px 2px rgba(19, 4, 13, 0.04);
    --shadow-sm:   0 2px 6px rgba(233, 30, 140, 0.06), 0 1px 3px rgba(19, 4, 13, 0.04);
    --shadow-md:   0 6px 16px rgba(233, 30, 140, 0.1), 0 2px 6px rgba(19, 4, 13, 0.06);
    --shadow-lg:   0 16px 40px rgba(233, 30, 140, 0.12), 0 6px 16px rgba(19, 4, 13, 0.06);
    --shadow-xl:   0 32px 64px rgba(233, 30, 140, 0.15), 0 12px 24px rgba(19, 4, 13, 0.08);
    --shadow-glow: 0 0 24px rgba(233, 30, 140, 0.35);
    --shadow-card: 0 0 0 1px rgba(233, 30, 140, 0.06), 0 4px 16px rgba(233, 30, 140, 0.08);

    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in:     cubic-bezier(0.4, 0, 1, 1);
    --t-fast:      0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --t-normal:    0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --t-slow:      0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --t-bounce:    0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body) !important;
    background-color: var(--surface-bg) !important;
    color: var(--text-primary) !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-size: var(--text-sm);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-hover); }

.text-primary   { color: var(--primary) !important; }
.text-pink      { color: #e91e8c !important; }
.text-xs        { font-size: 0.75rem !important; }
.text-sm        { font-size: 0.875rem !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.fw-semibold    { font-weight: 600 !important; }

.bg-surface-bg        { background-color: #ffffff !important; }
.bg-surface-secondary { background-color: #fff8fc !important; }
.bg-primary-light     { background-color: #fff0f7 !important; }
.bg-pink-gradient     { background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%) !important; }
.bg-sidebar           { background-color: #13040d !important; }

/* -- LIGHT SIDEBAR -- */
#sidebar {
    background: #ffffff !important;
    border-right: 1.5px solid #f0e8f0 !important;
    box-shadow: 4px 0 20px rgba(233, 30, 140, 0.05) !important;
}
.sidebar-wrapper {
    background: #ffffff !important;
    border-right: 1.5px solid #f0e8f0 !important;
}

#sidebar .navbar-nav.theme-brand {
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid #f0e8f0;
    margin-bottom: 0.5rem;
    background: #ffffff !important;
}

#sidebar .theme-brand div.theme-logo img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

#sidebar ul.menu-categories li.menu > a {
    color: #4a4a5a !important;
    border-radius: 12px !important;
    padding: 0.75rem 1.1rem !important;
    margin: 4px 10px !important;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

#sidebar ul.menu-categories li.menu > a:hover {
    background: #fff0f7 !important;
    color: #e91e8c !important;
    transform: translateX(4px) !important;
}

#sidebar ul.menu-categories li.menu > a i,
#sidebar ul.menu-categories li.menu > a svg {
    color: #7a7a8c !important;
    width: 20px; font-size: 16px; flex-shrink: 0;
    transition: color 0.2s ease;
}

#sidebar ul.menu-categories li.menu > a:hover i,
#sidebar ul.menu-categories li.menu > a:hover svg {
    color: #e91e8c !important;
}

#sidebar ul.menu-categories li.menu.active > a,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(233,30,140,0.35) !important;
}

#sidebar ul.menu-categories li.menu.active > a i,
#sidebar ul.menu-categories li.menu.active > a svg,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle i,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle svg,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle span {
    color: #ffffff !important;
}

#sidebar ul.menu-categories li.menu.active > a,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(233,30,140,0.3) !important;
    border-radius: 10px !important;
}

#sidebar ul.menu-categories li.menu.active > a i,
#sidebar ul.menu-categories li.menu.active > a svg,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle svg,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle span {
    color: #ffffff !important;
}

/* -- TOPBAR -- */
header.header.navbar, .glass-header {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(16px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(200%) !important;
    border-bottom: 1px solid #f0e8f0 !important;
    box-shadow: 0 2px 6px rgba(233,30,140,0.06) !important;
}

/* -- LOADER -- */
#load_screen {
    background: #ffffff;
    position: fixed; inset: 0;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.loader-content {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.spinner-grow { display: none !important; }
.loader-content::before {
    content: '';
    width: 56px; height: 56px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    animation: pinkPulse 1.2s ease-in-out infinite;
}
.loader-content::after {
    content: 'Loading...';
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem; color: #9196a8; font-weight: 600; letter-spacing: 0.05em;
    animation: loaderFade 1.2s ease-in-out infinite;
}
@keyframes pinkPulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(233,30,140,0.22); }
    50%       { transform: scale(1.12); opacity: 0.85; box-shadow: 0 0 0 16px transparent; }
}
@keyframes loaderFade { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.skeleton {
    background: linear-gradient(90deg, #fdf0f8 25%, #fff0f9 50%, #fdf0f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* -- SAAS CARDS -- */
.saas-card {
    background: #ffffff;
    border: 1px solid #f0e8f0;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(233,30,140,0.06), 0 4px 16px rgba(233,30,140,0.08);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s cubic-bezier(0.16,1,0.3,1), border-color 0.25s cubic-bezier(0.16,1,0.3,1);
    position: relative; overflow: hidden;
}
.saas-card:hover { box-shadow: 0 6px 16px rgba(233,30,140,0.1); border-color: #e0c8dc; }
.saas-card-interactive:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(233,30,140,0.12);
    border-color: #ffc0e0;
}
.saas-card-interactive::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
    border-radius: 16px 16px 0 0;
}
.saas-card-interactive:hover::before { transform: scaleX(1); }
.saas-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0e8f0;
    display: flex; align-items: center; justify-content: space-between;
    background: #fff8fc;
}
.saas-card-body { padding: 1.5rem; }

/* -- STAT CARDS -- */
.saas-stat-card {
    background: #ffffff;
    border: 1px solid #f0e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative; overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
}
.saas-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(233,30,140,0.12);
    border-color: #ffc0e0;
}
.saas-stat-icon {
    width: 52px; height: 52px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.375rem;
    background: #fff0f7; color: #e91e8c;
    transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
    flex-shrink: 0;
}
.saas-stat-card:hover .saas-stat-icon {
    transform: scale(1.12) rotate(5deg);
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    color: #fff;
}
.saas-stat-value {
    font-size: 2rem; font-weight: 800;
    font-family: 'Manrope', sans-serif;
    color: #0d0d0d; line-height: 1.15; margin-top: 0.375rem;
}
.saas-stat-label {
    font-size: 0.75rem; font-weight: 600; color: #9196a8;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.saas-badge-trend {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.2rem 0.55rem; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700;
}
.saas-badge-trend.up   { background: #d1fae5; color: #065f46; }
.saas-badge-trend.down { background: #fee2e2; color: #991b1b; }

/* -- FORM CONTROLS -- */
.form-control, .form-select {
    border: 1.5px solid #e5dce8 !important;
    border-radius: 10px !important;
    padding: 0.7rem 0.95rem !important;
    font-size: 0.875rem !important;
    font-family: 'Poppins', sans-serif !important;
    color: #0d0d0d !important;
    background-color: #ffffff !important;
    transition: border-color 0.15s cubic-bezier(0.16,1,0.3,1), box-shadow 0.15s cubic-bezier(0.16,1,0.3,1) !important;
    line-height: 1.5 !important;
}
.form-control:focus, .form-select:focus {
    border-color: #ff5eac !important;
    box-shadow: 0 0 0 3.5px rgba(233,30,140,0.18) !important;
    outline: none !important;
}
.form-control::placeholder { color: #9196a8 !important; font-weight: 400; }
.form-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #4a4a5a !important;
    margin-bottom: 0.4rem !important;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.form-control.is-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important; }
.invalid-feedback, .text-danger { color: #ef4444 !important; font-size: 0.75rem !important; margin-top: 0.3rem; font-weight: 500; }
.input-group-text {
    background: #fff0f7 !important;
    border: 1.5px solid #e5dce8 !important;
    color: #e91e8c !important;
    border-radius: 10px !important;
}

/* -- RATING PILLS -- */
.rating-pills-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rating-pill-item { position: relative; flex: 1; min-width: 44px; }
.rating-pill-item input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-pill-label {
    display: flex; align-items: center; justify-content: center;
    padding: 0.625rem 0.75rem;
    border: 1.5px solid #e5dce8;
    border-radius: 10px;
    background: #ffffff;
    font-weight: 700; font-size: 0.875rem; color: #9196a8;
    cursor: pointer; transition: all 0.15s cubic-bezier(0.16,1,0.3,1); user-select: none;
}
.rating-pill-item input[type="radio"]:checked + .rating-pill-label {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    color: #ffffff; border-color: #e91e8c;
    box-shadow: 0 4px 14px rgba(233,30,140,0.3);
    transform: translateY(-2px);
}
.rating-pill-label:hover { border-color: #ff8ec5; color: #e91e8c; background: #fff0f7; }

/* -- BUTTONS -- */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important; font-size: 0.875rem !important;
    padding: 0.6rem 1.25rem !important;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1) !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    gap: 0.5rem !important; position: relative; overflow: hidden; letter-spacing: 0.01em;
}
.btn .ripple {
    position: absolute; border-radius: 50%; transform: scale(0);
    animation: rippleAnim 0.55s linear;
    background: rgba(255,255,255,0.35); pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

.btn-primary {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%) !important;
    border: none !important; color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(233,30,140,0.3) !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #c91478 0%, #e91e8c 100%) !important;
    box-shadow: 0 6px 20px rgba(233,30,140,0.4) !important;
    transform: translateY(-1px) !important; color: #ffffff !important;
}
.btn-primary:active { transform: translateY(0px) !important; }

.btn-secondary {
    background: #ffffff !important; color: #0d0d0d !important;
    border: 1.5px solid #f0e8f0 !important;
}
.btn-secondary:hover { background: #fff0f7 !important; border-color: #ffc0e0 !important; color: #e91e8c !important; }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important; color: #ffffff !important;
}
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important; color: #ffffff !important;
}
.btn-outline-primary { border: 1.5px solid #e91e8c !important; color: #e91e8c !important; background: transparent !important; }
.btn-outline-primary:hover { background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%) !important; color: #fff !important; }

.btn.loading { pointer-events: none; opacity: 0.75; }
.btn.loading::after {
    content: ''; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.7s linear infinite; margin-left: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -- TABLES -- */
.saas-table-wrapper {
    background: #ffffff; border: 1px solid #f0e8f0;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(233,30,140,0.06), 0 4px 16px rgba(233,30,140,0.08);
    overflow: hidden;
}
.table.saas-table { margin-bottom: 0 !important; color: #0d0d0d !important; border-collapse: separate !important; border-spacing: 0 !important; }
.table.saas-table thead th {
    background: #fff0f7 !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.75rem !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 0.06em !important;
    color: #4a4a5a !important;
    padding: 0.875rem 1.25rem !important;
    border-bottom: 2px solid #ffe0f0 !important; border-top: none !important;
    white-space: nowrap;
}
.table.saas-table td {
    padding: 0.875rem 1.25rem !important; vertical-align: middle !important;
    border-bottom: 1px solid #f0e8f0 !important; font-size: 0.875rem !important;
    transition: background-color 0.15s cubic-bezier(0.16,1,0.3,1) !important;
}
.table.saas-table tbody tr:last-child td { border-bottom: none !important; }
.table.saas-table tbody tr:hover td { background-color: #fff0f7 !important; }

.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid #e5dce8 !important; border-radius: 10px !important;
    padding: 0.5rem 0.875rem !important; font-size: 0.875rem !important;
    transition: border-color 0.15s, box-shadow 0.15s !important; background: #fff !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #ff5eac !important; box-shadow: 0 0 0 3px rgba(233,30,140,0.18) !important; outline: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%) !important;
    border: none !important; color: #fff !important; border-radius: 6px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #fff0f7 !important; border: 1px solid #ffc0e0 !important;
    color: #e91e8c !important; border-radius: 6px !important;
}

/* -- BADGES -- */
.badge-saas {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.275rem 0.65rem; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.03em;
}
.badge-saas-success { background: #d1fae5; color: #065f46; }
.badge-saas-warning { background: #fef3c7; color: #92400e; }
.badge-saas-danger  { background: #fee2e2; color: #991b1b; }
.badge-saas-pink    { background: #ffe0f0; color: #a30d63; }
.badge-saas-primary { background: #fff0f7; color: #e91e8c; }

/* -- MODALS -- */
.modal-backdrop {
    backdrop-filter: blur(6px) !important; -webkit-backdrop-filter: blur(6px) !important;
    background: rgba(19,4,13,0.6) !important;
}
.modal.fade .modal-dialog {
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.25s cubic-bezier(0.16,1,0.3,1) !important;
}
.modal.show .modal-dialog { transform: translateY(0) scale(1); }
.modal-content {
    background: #ffffff !important; border: 1px solid #f0e8f0 !important;
    border-radius: 24px !important;
    box-shadow: 0 32px 64px rgba(233,30,140,0.15) !important; overflow: hidden !important;
}
.modal-header { border-bottom: 1px solid #f0e8f0 !important; padding: 1.25rem 1.5rem !important; background: #fff0f7 !important; }
.modal-footer { border-top: 1px solid #f0e8f0 !important; padding: 1rem 1.5rem !important; background: #fff8fc !important; }

/* -- ALERTS -- */
.alert { border-radius: 10px !important; border: none !important; font-size: 0.875rem !important; padding: 0.875rem 1.125rem !important; font-weight: 500; }
.alert-success { background: #d1fae5 !important; color: #065f46 !important; border-left: 4px solid #10b981 !important; }
.alert-danger  { background: #fee2e2 !important; color: #991b1b !important; border-left: 4px solid #ef4444 !important; }
.alert-warning { background: #fef3c7 !important; color: #92400e !important; border-left: 4px solid #f59e0b !important; }
.alert-info    { background: #fff0f7 !important; color: #a30d63 !important; border-left: 4px solid #e91e8c !important; }

/* -- AVATAR -- */
.avatar-circle {
    width: 40px; height: 40px; border-radius: 9999px;
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    color: #ffffff; font-weight: 700; font-size: 0.875rem;
    display: flex; align-items: center; justify-content: center;
    text-transform: uppercase; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(233,30,140,0.3);
}
.avatar-circle-lg  { width: 64px; height: 64px; font-size: 1.125rem; }
.avatar-circle-xl  { width: 80px; height: 80px; font-size: 1.5rem; }

/* -- ANIMATIONS -- */
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft  { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn     { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes float       { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.animate-fade-in-up    { animation: fadeInUp    0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-fade-in-left  { animation: fadeInLeft  0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-fade-in-right { animation: fadeInRight 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-scale-in      { animation: scaleIn     0.35s cubic-bezier(0.16,1,0.3,1) forwards; }
.animate-float         { animation: float 4s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.hover-lift { transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s cubic-bezier(0.16,1,0.3,1); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(233,30,140,0.12); }

.gradient-text {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* -- EMPTY STATE -- */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state-icon {
    width: 80px; height: 80px; border-radius: 9999px;
    background: #fff0f7; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 2rem; color: #e91e8c;
}
.empty-state h5 { font-weight: 700; color: #0d0d0d; margin-bottom: 0.5rem; }
.empty-state p { color: #9196a8; font-size: 0.875rem; max-width: 320px; margin: 0 auto 1.5rem; }

/* -- MISC -- */
.page-meta { margin-top: 0px !important; }
.layout-top-spacing { margin-top: 0px !important; }

/* -- RESPONSIVE -- */
@media (max-width: 900px) {
    .det { display: block; }
    .layout-top-spacing { margin-top: 0px !important; }
    .mobile-bottom-nav { display: block; }
    .main-container { padding-bottom: 80px; }
    .saas-card-body { padding: 1rem; }
    .saas-stat-card { padding: 1rem; }
    li.menu.active { background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%); border-radius: 14px; padding: 2px 8px; color: white; }
}
@media (max-width: 768px) { h2 { font-size: 1.25rem; } .saas-stat-value { font-size: 1.5rem; } }

/* ==========================================================================
   LIGHT SIDEBAR OVERRIDES
   ========================================================================== */
.sidebar-wrapper,
.sidebar-wrapper.sidebar-theme,
.sidebar-theme {
    background: #ffffff !important;
    border-right: 1px solid #f0e8f0;
    box-shadow: 2px 0 12px rgba(233, 30, 140, 0.04);
}

#sidebar {
    background: #ffffff !important;
}

#sidebar .theme-brand {
    background: #ffffff !important;
    border-bottom: 1px solid #f0e8f0;
}

#sidebar .theme-brand div.theme-logo img {
    filter: none;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle {
    color: #4a4a5a !important;
    font-weight: 500;
    border-radius: 10px;
    margin: 2px 8px;
    padding: 10px 16px !important;
    transition: all 0.2s ease;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle:hover {
    background: #fff0f7 !important;
    color: #e91e8c !important;
}

#sidebar ul.menu-categories li.menu > .dropdown-toggle svg,
#sidebar ul.menu-categories li.menu > .dropdown-toggle span,
#sidebar ul.menu-categories li.menu > .dropdown-toggle i {
    color: inherit !important;
}

#sidebar ul.menu-categories li.menu.active > .dropdown-toggle {
    background: linear-gradient(135deg, #e91e8c 0%, #ff6bb5 100%) !important;
    color: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
}

#sidebar ul.menu-categories li.menu.active > .dropdown-toggle svg,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle span,
#sidebar ul.menu-categories li.menu.active > .dropdown-toggle i {
    color: #ffffff !important;
}

/* ---- Delete Confirmation Modal ---- */
.delete-confirm-modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    background: #ffffff !important;
    background-image: none !important;
}
.delete-confirm-modal .modal-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fff0f7 100%);
    border-bottom: 1px solid #f0e8f0;
    padding: 1.25rem 1.5rem;
}
.delete-confirm-modal .modal-header .modal-title {
    color: #991b1b;
    font-weight: 700;
    font-size: 1.1rem;
}
.delete-confirm-modal .modal-body {
    padding: 1.5rem;
    text-align: center;
}
.delete-confirm-modal .delete-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.delete-confirm-modal .delete-icon-circle i {
    font-size: 1.5rem;
    color: #ef4444;
}
.delete-confirm-modal .btn-cancel {
    background: #f5f5f5;
    color: #4a4a5a;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}
.delete-confirm-modal .btn-cancel:hover {
    background: #e8e8e8;
}
.delete-confirm-modal .btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.2s;
}
.delete-confirm-modal .btn-delete:hover {
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
    transform: translateY(-1px);
}

/* ---- No Search Results ---- */
.no-results-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #9196a8;
}
.no-results-state i {
    font-size: 2.5rem;
    color: #e0c8dc;
    margin-bottom: 1rem;
}
.no-results-state h5 {
    color: #4a4a5a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.no-results-state p {
    font-size: 0.875rem;
}

/* =====================================================
   2026 Mobile Responsive Design System Rules
   ===================================================== */
@media (max-width: 991px) {
    #content {
        padding-bottom: 95px !important;
    }
    .main-content {
        padding: 0.5rem !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px !important;
    }
    .layout-px-spacing {
        padding: 0.75rem 0.25rem !important;
    }
    .middle-content {
        padding: 0 0.25rem !important;
    }
    .saas-card {
        padding: 1.25rem 1rem !important;
        border-radius: 18px !important;
        margin-bottom: 1rem !important;
    }
    .saas-stat-card {
        padding: 1.25rem 1rem !important;
    }
    .border-end-lg, .border-end-md {
        border-right: none !important;
        border-bottom: 1.5px solid #f0e8f0 !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    .rating-pill {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        min-width: 44px !important;
        height: 44px !important;
    }
    .floating-patient-action-bar {
        min-width: 94vw !important;
        max-width: 94vw !important;
        bottom: 85px !important;
        padding: 8px 14px !important;
    }
    .mobile-bottom-nav {
        height: 68px !important;
    }
    .mobile-nav-item span {
        font-size: 0.68rem !important;
    }
    .table-responsive {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .saas-card {
        padding: 1rem 0.85rem !important;
    }
    .btn-sm {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    .floating-patient-action-bar {
        bottom: 80px !important;
        padding: 8px 10px !important;
    }
    .floating-patient-action-bar #floatingCountText {
        font-size: 0.75rem !important;
    }
}

/* Floating Sidebar Toggle Button Rules */
.sidebar-floating-toggle {
    display: none !important;
}
@media (max-width: 991px) {
    .sidebar-floating-toggle {
        display: flex !important;
    }
}
body.sidebar-closed .sidebar-floating-toggle {
    display: flex !important;
}

/* Sidebar Toggle Transitions & Overlay */
@media (max-width: 991px) {
    .sidebar-wrapper {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: -280px !important;
        width: 280px !important;
        z-index: 10000 !important;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 0 35px rgba(0,0,0,0.2) !important;
    }
    #container.sbar-open .sidebar-wrapper,
    body.sbar-open .sidebar-wrapper {
        left: 0 !important;
    }
    .overlay.show {
        display: block !important;
        opacity: 1 !important;
        background: rgba(0,0,0,0.45) !important;
        z-index: 9999 !important;
    }
}

@media (min-width: 992px) {
    #container.sidebar-closed .sidebar-wrapper,
    body.sidebar-closed .sidebar-wrapper {
        margin-left: -280px !important;
        transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    #container.sidebar-closed #content,
    body.sidebar-closed #content {
        margin-left: 0 !important;
        width: 100% !important;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
}
