:root {
    --primary-color: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #f43f5e;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --sidebar-bg: #06112f;
    --sidebar-text: #e8eef8;
    --sidebar-hover-bg: rgba(255,255,255,0.08);
    --sidebar-active-bg: rgba(79, 70, 229, 0.14);
    --sidebar-active-text: #ffffff;
    --sidebar-border: rgba(255,255,255,0.10);
    --header-bg: linear-gradient(90deg, #06112f, #08172f);
    --header-border: rgba(255,255,255,0.08);
    --sidebar-width: 260px;
    --header-height: 70px;
    --app-bg: #000000;
    --app-text: #ffffff;
    --cursor-x: 0px;
    --cursor-y: 0px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-color);
    color: var(--app-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.site-open-modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
}

.site-open-modal-header {
    background: linear-gradient(135deg, #10b981 0%, #0f9d58 100%);
}

.site-open-modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.site-open-modal-image {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: #000;
}

.site-open-modal-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.site-open-modal-copy {
    width: 100%;
    background: #ffffff;
    color: #111827;
}

.site-open-modal-copy p {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
}

.site-open-modal-button {
    min-width: 170px;
    border-radius: 30px;
    padding: 0.85rem 1.4rem;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}

@media (min-width: 992px) {
    .site-open-modal-body {
        flex-wrap: nowrap;
    }

    .site-open-modal-image,
    .site-open-modal-copy {
        width: 50%;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    box-shadow: 2px 0 20px rgba(0,0,0,0.22);
    z-index: 1100;
    transition: transform 0.3s ease;
    overflow-y: auto;
    color: var(--light-color);
}

.sidebar{
     background:var(--app-bg);
     color: white;  
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.14);
    border-radius: 4px;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--sidebar-border);
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 15px 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu li {
    padding: 0 12px;
    margin-bottom: 6px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.92rem;
}

.sidebar-menu a i {
    margin-right: 14px;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover-bg);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    transform: translateX(3px);
}

.sidebar-menu a.active, .sidebar-menu a[aria-expanded="true"], .sidebar-menu a.active-submenu {
    background: var(--sidebar-active-bg) !important;
    color: var(--sidebar-active-text) !important;
    box-shadow: none !important;
    border-left: 4px solid rgba(79, 70, 229, 0.95);
    padding-left: 14px;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 5px 15px;
    padding: 0;
}

.sidebar-menu a[aria-expanded="true"] i, .sidebar-menu a.active i, .sidebar-menu a.active-submenu i {
    color: var(--sidebar-active-text) !important;
}

.sidebar-menu .collapse a {
    padding-left: 45px !important;
    font-size: 0.85rem !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
}
.sidebar-menu .collapse a:hover {
    color: #ffffff !important;
}
.sidebar-menu .collapse a.active-submenu {
    color: #ffffff !important;
    font-weight: 600 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: 0.3s;
    padding: 20px 30px 40px;
}

/* Header */
.top-header {
    height: var(--header-height);
    background: var(--header-bg);
    box-shadow: 0 10px 35px rgba(15,23,42,0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--header-border);
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: min(320px, 100%);
    }

    .mobile-nav-toggle {
        display: inline-flex !important;
    }

    .top-header {
        padding: 0 18px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left {
        gap: 12px;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .header-right {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
    }

    .top-header h5 {
        font-size: 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px 40px;
    }

    .content-wrapper {
        padding: 20px 0 0;
    }
}

.top-header .text-muted {
    color: #f8fafc !important;
}

.top-header .text-dark {
    color: #f8fafc !important;
}

.top-header .fa-bell {
    color: #f8fafc !important;
}

.header-left { display: flex; align-items: center; gap: 18px; }
.header-right { display: flex; align-items: center; gap: 20px; }

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: background 0.2s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.25);
}

.hamburger-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background: currentColor;
    display: inline-block;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    top: 6px;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
}

body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

.page-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.82);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1999;
    pointer-events: none;
}

.page-loader.show,
body.page-loading .page-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader-content {
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
}

.page-loader .loader-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.page-loader .spinner-border {
    width: 3.2rem;
    height: 3.2rem;
    border-width: 0.35rem;
    border-top-color: #ffffff;
    border-right-color: rgba(255,255,255,0.35);
    border-bottom-color: rgba(255,255,255,0.25);
    border-left-color: rgba(255,255,255,0.18);
    animation: loader-spin 0.8s linear infinite;
}

.page-loader.show .page-loader-content,
body.page-loading .page-loader-content {
    animation: page-loader-fade 0.35s ease-out forwards;
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes page-loader-fade {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.sidebar-open .sidebar {
    transform: translateX(0);
}

.live-clock {
    font-weight: 600;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Content Area */
.content-wrapper {
    padding: 30px 0 0;
    max-width: 1360px;
    margin: 0 auto;
}

/* Announcement */
.announcement-bar {
    background: rgba(255,255,255,0.03);
    color: var(--app-text);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.announcement-bar i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.scrolling-text {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Table styling */
.card {
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 18px;
    box-shadow: 0 28px 50px rgba(15,23,42,0.05);
    background: #ffffff;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(15,23,42,0.08);
    padding: 18px 22px;
    font-weight: 700;
    color: #111827;
    border-radius: 18px 18px 0 0 !important;
}

.table th {
    font-weight: 700;
    color: #334155;
    border-bottom-width: 1px;
    border-color: rgba(15,23,42,0.08);
}

.badge {
    padding: 7px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.stat-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 24px 50px rgba(15,23,42,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(15,23,42,0.08);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(67,97,238,0.95), rgba(99,102,241,0.95));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 60px rgba(15,23,42,0.12);
}

.stat-card .stat-icon {
    min-width: 60px;
    min-height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card .stat-icon i {
    width: 1.5em;
    height: 1.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-card.blue .stat-icon { background: rgba(67, 97, 238, 0.12); color: var(--primary-color); }
.stat-card.green .stat-icon { background: rgba(76, 201, 240, 0.12); color: var(--success-color); }
.stat-card.red .stat-icon { background: rgba(247, 37, 133, 0.12); color: var(--danger-color); }
.stat-card.purple .stat-icon { background: rgba(99, 102, 241, 0.12); color: var(--secondary-color); }

.stat-info h4 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.stat-info p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Premium Button Animation */
.btn-premium {
  font-size: 15px;
  padding: 10px 25px;
  font-weight: 500;
  background: #1f2937;
  color: white !important;
  border: none;
  position: relative;
  overflow: hidden;
  border-radius: 0.6em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-premium .gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 0.6em;
  margin-top: -0.25em;
  background-image: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.3)
  );
  pointer-events: none;
}

.btn-premium .label {
  position: relative;
  top: -1px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-premium .transition {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  transition-duration: 500ms;
  background-color: rgba(67, 97, 238, 0.6); /* Use primary color for ripple */
  border-radius: 9999px;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.btn-premium:hover .transition {
  width: 300px;
  height: 300px;
}

.btn-premium:active {
  transform: scale(0.97);
}

.btn-premium.w-100 {
    width: 100%;
}

/* Global button hover animation */
button, input[type="submit"], input[type="button"], input[type="reset"], .btn {
    position: relative;
    /* overflow: hidden; */
    transition: transform .35s ease, box-shadow .35s ease, color .3s ease, background-color .3s ease;
}

button::before,
input[type="submit"]::before,
input[type="button"]::before,
input[type="reset"]::before,
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
    pointer-events: none;
    z-index: 1;
}

button:hover::before,
input[type="submit"]:hover::before,
input[type="button"]:hover::before,
input[type="reset"]:hover::before,
.btn:hover::before {
    transform: scaleX(1);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.15);
}

button span,
.btn span {
    position: relative;
    z-index: 2;
    transition: color .35s ease;
}

button:hover span,
.btn:hover span {
    color: #fff;
}

/* Background Bubbles */
.bubbles-container {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background: linear-gradient(135deg, rgba(10, 17, 46, 0.25), rgba(31, 41, 60, 0.18));
    border-radius: 50%;
    animation: floatUp 12s infinite ease-in;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.15);
    will-change: transform;
    transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0);
}

.bubble:nth-child(1) { left: 10%; width: 50px; height: 50px; animation-duration: 8s; background: linear-gradient(135deg, rgba(251, 207, 232, 0.6), rgba(249, 168, 212, 0.3)); }
.bubble:nth-child(2) { left: 20%; width: 100px; height: 100px; animation-duration: 10s; animation-delay: 1s; background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(59, 130, 246, 0.28)); }
.bubble:nth-child(3) { left: 35%; width: 55px; height: 55px; animation-duration: 7s; animation-delay: 2s; background: linear-gradient(135deg, rgba(248, 113, 113, 0.5), rgba(239, 68, 68, 0.25)); }
.bubble:nth-child(4) { left: 40%; width: 70px; height: 70px; animation-duration: 11s; animation-delay: 0s; background: linear-gradient(135deg, rgba(251, 146, 60, 0.55), rgba(249, 115, 22, 0.28)); }
.bubble:nth-child(5) { left: 55%; width: 35px; height: 35px; animation-duration: 6s; animation-delay: 3s; background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(244, 114, 182, 0.25)); }
.bubble:nth-child(6) { left: 65%; width: 80px; height: 80px; animation-duration: 9s; animation-delay: 1s; background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(147, 197, 253, 0.25)); }
.bubble:nth-child(7) { left: 75%; width: 45px; height: 45px; animation-duration: 8s; animation-delay: 2s; background: linear-gradient(135deg, rgba(251, 207, 232, 0.55), rgba(244, 114, 182, 0.2)); }
.bubble:nth-child(8) { left: 80%; width: 30px; height: 30px; animation-duration: 12s; animation-delay: 4s; background: linear-gradient(135deg, rgba(249, 168, 212, 0.45), rgba(236, 72, 153, 0.18)); }
.bubble:nth-child(9) { left: 95%; width: 60px; height: 60px; animation-duration: 9s; animation-delay: 5s; background: linear-gradient(135deg, rgba(251, 146, 60, 0.55), rgba(245, 158, 11, 0.22)); }
.bubble:nth-child(10) { left: 45%; width: 40px; height: 40px; animation-duration: 7s; animation-delay: 6s; background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(191, 219, 254, 0.18)); }
.bubble:nth-child(11) { left: 15%; width: 30px; height: 30px; animation-duration: 9s; animation-delay: 5s; background: linear-gradient(135deg, rgba(248, 113, 113, 0.45), rgba(251, 146, 60, 0.2)); }
.bubble:nth-child(12) { left: 55%; width: 40px; height: 40px; animation-duration: 7s; animation-delay: 6s; background: linear-gradient(135deg, rgba(251, 207, 232, 0.4), rgba(244, 114, 182, 0.16)); }
.bubble:nth-child(13) { left: 15%; width: 50px; height: 50px; animation-duration: 9s; animation-delay: 5s; background: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(96, 165, 250, 0.2)); }
.bubble:nth-child(14) { left: 55%; width: 30px; height: 30px; animation-duration: 7s; animation-delay: 6s; background: linear-gradient(135deg, rgba(249, 168, 212, 0.45), rgba(251, 207, 232, 0.18)); }
.bubble:nth-child(15) { left: 15%; width: 15px; height: 15px; animation-duration: 9s; animation-delay: 5s; background: linear-gradient(135deg, rgba(248, 113, 113, 0.45), rgba(251, 146, 60, 0.22)); }
.bubble:nth-child(16) { left: 55%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: 6s; background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(147, 197, 253, 0.25)); }

@keyframes floatUp {
    0% {
        transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0) translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0) translateY(-110vh) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}


