/* User Panel CSS Variables - Override base variables */












:root {
    --primary-color: #6366f1;
    --primary-color-rgb: 99, 102, 241;
    --secondary-color: #4f46e5;
    --secondary-color-rgb: 79, 70, 229;

    /* Sidebar colors for both modes */
    --sidebar-bg: #4f46e5;
    --sidebar-text: #e0e7ff;
    --sidebar-hover-bg: #f8fafc;
    --sidebar-active-bg: #ffffff;
    --sidebar-active-text: #4f46e5;
    --sidebar-border: #4f46e5;

    /* High-end transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode sidebar variables */
[data-theme="dark"] {
    --sidebar-bg: #111827;
    --sidebar-text: #f9fafb;
    --sidebar-hover-bg: #1f2937;
    --sidebar-active-bg: #1f2937;
    --sidebar-active-text: #e0f2fe;
    --sidebar-border: #1f2937;
}

/* High-end Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-radius: 1rem;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .glass-card {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Hover effects for Bento cards */
.bento-card {
    transition: var(--transition-smooth);
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(var(--primary-color-rgb), 0.12), 
                0 8px 10px -6px rgba(var(--primary-color-rgb), 0.04);
}

/* Sidebar Custom Styling */
#sidebar {
    transition: width var(--transition-smooth), transform var(--transition-smooth);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
}

#sidebar .border-b,
#sidebar .border-t {
    border-color: var(--sidebar-border);
}

#sidebar .text-xl {
    color: var(--sidebar-text);
}

#sidebar ul.space-y-3 li a {
    color: var(--sidebar-text);
    transition: var(--transition-fast);
    position: relative;
}

#sidebar ul.space-y-3 li a:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-active-text);
    padding-left: 0.85rem;
}

/* Active indicator vertical line */
#sidebar ul.space-y-3 li a.bg-primary-100,
#sidebar ul.space-y-3 li a.bg-primary-900 {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

#sidebar ul.space-y-3 li a.bg-primary-100::before,
#sidebar ul.space-y-3 li a.bg-primary-900::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px var(--primary-color);
}

/* Logo styling */
.full-logo {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
    cursor: default;
}

.full-logo:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 8px rgba(var(--primary-color-rgb), 0.35));
}

.full-logo::before {
    content: "\f233"; /* Server icon from Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 6px;
    font-size: 0.9em;
    opacity: 0.9;
    color: var(--primary-color);
    transition: transform var(--transition-smooth);
}

.full-logo:hover::before {
    transform: rotate(-10deg);
}

/* Data Table premium improvements */
[data-theme="light"] thead tr,
[data-theme="dark"] thead tr {
    background-color: var(--sidebar-active-bg) !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

[data-theme="light"] th,
[data-theme="dark"] th {
    color: var(--sidebar-active-text) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.75rem !important;
    background-color: transparent !important;
}

tbody tr {
    transition: background-color var(--transition-fast);
}

tbody tr:hover {
    background-color: var(--sidebar-hover-bg) !important;
}

/* Glowing Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    border-width: 1px;
}

.status-online, .status-completed, .status-success, .status-paid {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.status-processing, .status-active, .status-renewing {
    background-color: rgba(var(--primary-color-rgb), 0.1) !important;
    color: var(--primary-color) !important;
    border-color: rgba(var(--primary-color-rgb), 0.2) !important;
}

.status-pending, .status-unpaid, .status-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}

.status-failed, .status-expired, .status-cancel, .status-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent; 
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.25); 
    border-radius: 9999px;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-color-rgb), 0.6); 
}