/* Global Styles matching Duralux theme */
:root {
    --bg-dark: #0b1120;
    --bg-card: rgba(21, 30, 50, 0.9);
    /* More opaque, less blur dependency */
    --bg-sidebar: #0f172a;
    /* Solid background for sidebar */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --header-height: 60px;
    --sidebar-width: 280px;
}

html {
    background: #020617;
    /* Prevent white flash */
}

body {
    background: radial-gradient(circle at top left, #1e293b, #0f172a 40%, #020617);
    color: var(--text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Hide default number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Blinking animation for insufficient balance warning */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Page transition animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

body {
    animation: fadeIn 0.3s ease-in-out;
}

body.page-transitioning {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Progress Bar */
#page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #6366f1);
    background-size: 200% 100%;
    animation: gradientMove 1.5s linear infinite;
    z-index: 1000000;
    /* Extremely high */
    transition: width 0.4s cubic-bezier(0.1, 0.05, 0, 1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 1), 0 0 30px rgba(16, 185, 129, 0.6);
}

/* Add a light trail at the end of the progress bar */
#page-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: pulseTrail 1s ease-in-out infinite;
}

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

    100% {
        transform: translateX(0%);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 100% 0%;
    }

    100% {
        background-position: -100% 0%;
    }
}

#page-progress-bar.loading {
    width: 75%;
}

#page-progress-bar.complete {
    width: 100% !important;
    opacity: 0;
    transition: width 0.4s ease-out, opacity 0.5s 0.2s ease-out;
}

/* Glassmorphism Card */
.card,
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    /* Reduced from 12px */
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 24px;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    padding-bottom: 20px;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: var(--glass-border);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 10px;
}

.sidebar-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0 14px;
    margin-top: 20px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.sidebar-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 0;
    margin-bottom: 4px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sidebar-link-content {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    width: 100%;
    gap: 10px;
}

.sidebar-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    font-size: 14px;
    transition: all 0.3s;
}

.sidebar-icon-wrapper i {
    transition: all 0.3s;
}

.sidebar-text {
    flex: 1;
    transition: color 0.3s;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-link:hover .sidebar-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #22c55e 0%, #10b981 100%);
    border-radius: 0 3px 3px 0;
}

.sidebar-link.active .sidebar-icon-wrapper {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.sidebar-link.active .sidebar-icon-wrapper i {
    color: #22c55e;
}

/* Individual menu colors */
#nav-dashboard.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

#nav-dashboard.active::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

#nav-dashboard.active .sidebar-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#nav-dashboard.active .sidebar-icon-wrapper i {
    color: #3b82f6;
}

/* Profile - Purple */
[href="#menuProfile"].active,
#menuProfile .sidebar-link.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.15) 0%, rgba(147, 51, 234, 0.08) 100%);
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
}

[href="#menuProfile"].active::before,
#menuProfile .sidebar-link.active::before {
    background: linear-gradient(180deg, #a855f7 0%, #9333ea 100%);
}

[href="#menuProfile"].active .sidebar-icon-wrapper,
#menuProfile .sidebar-link.active .sidebar-icon-wrapper {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.15) 100%);
    color: #a855f7;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

[href="#menuProfile"].active .sidebar-icon-wrapper i,
#menuProfile .sidebar-link.active .sidebar-icon-wrapper i {
    color: #a855f7;
}

/* Sales - Orange */
[href="#menuSales"].active,
#menuSales .sidebar-link.active {
    background: linear-gradient(90deg, rgba(251, 146, 60, 0.15) 0%, rgba(249, 115, 22, 0.08) 100%);
    box-shadow: 0 2px 10px rgba(251, 146, 60, 0.2);
}

[href="#menuSales"].active::before,
#menuSales .sidebar-link.active::before {
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
}

[href="#menuSales"].active .sidebar-icon-wrapper,
#menuSales .sidebar-link.active .sidebar-icon-wrapper {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(249, 115, 22, 0.15) 100%);
    color: #fb923c;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.3);
}

[href="#menuSales"].active .sidebar-icon-wrapper i,
#menuSales .sidebar-link.active .sidebar-icon-wrapper i {
    color: #fb923c;
}

/* Org - Cyan */
[href="#menuOrg"].active,
#menuOrg .sidebar-link.active {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
    box-shadow: 0 2px 10px rgba(34, 211, 238, 0.2);
}

[href="#menuOrg"].active::before,
#menuOrg .sidebar-link.active::before {
    background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%);
}

[href="#menuOrg"].active .sidebar-icon-wrapper,
#menuOrg .sidebar-link.active .sidebar-icon-wrapper {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    color: #22d3ee;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.3);
}

[href="#menuOrg"].active .sidebar-icon-wrapper i,
#menuOrg .sidebar-link.active .sidebar-icon-wrapper i {
    color: #22d3ee;
}

/* Bonus - Yellow */
[href="#menuBonus"].active,
#menuBonus .sidebar-link.active {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.15) 0%, rgba(234, 179, 8, 0.08) 100%);
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.2);
}

[href="#menuBonus"].active::before,
#menuBonus .sidebar-link.active::before {
    background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
}

[href="#menuBonus"].active .sidebar-icon-wrapper,
#menuBonus .sidebar-link.active .sidebar-icon-wrapper {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(234, 179, 8, 0.15) 100%);
    color: #facc15;
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.3);
}

[href="#menuBonus"].active .sidebar-icon-wrapper i,
#menuBonus .sidebar-link.active .sidebar-icon-wrapper i {
    color: #facc15;
}

/* Wallet - Pink */
[href="#menuWallet"].active,
#menuWallet .sidebar-link.active {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.15) 0%, rgba(219, 39, 119, 0.08) 100%);
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.2);
}

[href="#menuWallet"].active::before,
#menuWallet .sidebar-link.active::before {
    background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
}

[href="#menuWallet"].active .sidebar-icon-wrapper,
#menuWallet .sidebar-link.active .sidebar-icon-wrapper {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(219, 39, 119, 0.15) 100%);
    color: #ec4899;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

[href="#menuWallet"].active .sidebar-icon-wrapper i,
#menuWallet .sidebar-link.active .sidebar-icon-wrapper i {
    color: #ec4899;
}

/* Board - Red */
#nav-board.active {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

#nav-board.active::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

#nav-board.active .sidebar-icon-wrapper {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

#nav-board.active .sidebar-icon-wrapper i {
    color: #ef4444;
}

/* Submenu */
.sidebar-submenu {
    list-style: none;
    padding-left: 14px;
    margin-bottom: 8px;
}

.sidebar-submenu .sidebar-link {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 2px;
}

.sidebar-submenu .sidebar-link-content {
    padding: 6px 14px;
}

.sidebar-submenu .sidebar-icon-wrapper {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.sidebar-submenu .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    opacity: 1;
}

.sidebar-submenu .sidebar-link.active {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.12) 0%, rgba(16, 185, 129, 0.06) 100%);
}

.caret-icon {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 0.64rem;
}

.collapsed .caret-icon {
    transform: rotate(0deg);
}

.sidebar-link[aria-expanded="true"] .caret-icon {
    transform: rotate(180deg);
}

/* Main Content Area */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    background: rgba(11, 17, 32, 0.95);
    /* More opaque */
    z-index: 900;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

/* Helpers */
.text-secondary {
    color: var(--text-secondary) !important;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    outline: none;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Stats */
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-align: right;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Org Chart Styles */
.org-chart-container {
    width: 100%;
    height: 600px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.1), 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.org-chart-container:active {
    cursor: grabbing;
}

.org-link {
    fill: none;
    stroke: rgba(148, 163, 184, 0.2);
    stroke-width: 2px;
}

.org-node-card {
    fill: #4a5568;
    stroke: rgba(59, 130, 246, 0.4);
    stroke-width: 1.5px;
    rx: 12px;
    ry: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Root node (the logged-in user) gets a gold highlight */
.org-node-root .org-node-card {
    fill: #2d2613;
    stroke: #f59e0b;
    stroke-width: 2.5px;
}

/* Members with sales get a vibrant green glow */
.org-node-has-sales .org-node-card {
    stroke: #10b981;
    stroke-width: 2px;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.4));
}

.org-node:hover .org-node-card {
    stroke: var(--accent-blue);
    stroke-width: 2.5px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    transform: translateY(-2px);
}

.org-node-root:hover .org-node-card {
    stroke: #fbbf24;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.org-node-has-sales:hover .org-node-card {
    stroke: #34d399;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.7));
}

.org-node-text-name {
    fill: white;
    font-size: 14px;
    font-weight: 700;
}

.org-node-text-rank {
    fill: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
}

.org-node-text-id {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.org-chart-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.org-control-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.org-control-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.org-reset-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.org-reset-btn:hover {
    background: #334155;
    color: white;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.org-reset-btn i {
    font-size: 16px;
    color: var(--accent-blue);
}

.org-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.org-loader .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ==================== Mobile Responsive Styles ==================== */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }

    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
    }

    /* Show sidebar when active */
    .sidebar.show {
        transform: translateX(0);
    }

    /* Remove left margin on main content for mobile */
    .main-wrapper {
        margin-left: 0;
    }

    /* Sidebar header adjustments */
    .sidebar-header {
        padding: 0 20px;
    }

    /* Adjust link padding for touch targets */
    .sidebar-link {
        padding: 10px 14px;
        margin-bottom: 6px;
    }

    /* Adjust icon size for mobile */
    .sidebar-link i,
    .sidebar-link svg {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    /* Submenu adjustments */
    .sidebar-submenu {
        padding-left: 48px;
    }

    .sidebar-submenu .sidebar-link {
        padding: 8px 14px;
    }

    .sidebar-submenu .sidebar-link i,
    .sidebar-submenu .sidebar-link svg {
        width: 28px;
        height: 28px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }

    .sidebar-link {
        font-size: 0.88rem;
    }

    .sidebar-link i,
    .sidebar-link svg {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* Table Styles for Dark Theme */
.table {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
    background-color: transparent;
}

.table thead {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table thead th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    background-color: transparent;
}

.table tbody {
    background-color: transparent;
}

.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
    background-color: transparent;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.table tbody td {
    color: var(--text-primary);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    background-color: transparent;
}

.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Remove any Bootstrap default white backgrounds */
.table> :not(caption)>*>* {
    background-color: transparent;
}

/* Badge styles for table */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-primary {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
}

.bg-opacity-10 {
    opacity: 1 !important;
}

.text-primary {
    color: #3b82f6 !important;
}

/* Performance optimization for mobile and low-power devices */
@media (max-width: 768px) {

    .card,
    .stat-card,
    .sidebar,
    .top-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .sidebar {
        background: #0f172a !important;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
        scroll-behavior: auto !important;
    }
}