/* ========================================
   sriwedarimalang - Premium SaaS Admin Dashboard CSS
   ======================================== */

/* --- Premium Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

/* Sidebar Specific Scrollbar */
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366f1;
    /* Indigo-500 */
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    /* Pink-500 */
    --success-color: #10b981;
    /* Emerald-500 */
    --warning-color: #f59e0b;
    /* Amber-500 */
    --danger-color: #ef4444;
    /* Red-500 */
    --info-color: #06b6d4;
    /* Cyan-500 */

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #334155;
    --slate-500: #1e293b;
    --slate-600: #0f172a;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --sidebar-bg: #ffffff;
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-color-secondary: #6b7280;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
    --sidebar-shadow: 10px 0 30px rgba(0, 0, 0, 0.02);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--body-bg);
    color: var(--slate-900);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--slate-900);
}

/* Typography Utilities */
.fw-800 {
    font-weight: 800;
}

.fw-600 {
    font-weight: 600;
}

.fw-400 {
    font-weight: 400;
}

.xx-small {
    font-size: 0.65rem !important;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Glassmorphism Utilities */
.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.3);
    box-shadow: var(--shadow-md);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #3b82f6 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--danger-color) 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--primary-color) 100%);
}

.mesh-gradient {
    background-color: #6366f1;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
}

/* ========================================
   Sidebar — Premium Redesign v2.0
   ======================================== */
.sidebar-seamless {
    --sidebar-width: 272px;
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1060;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.03);
}

.sidebar-seamless.collapsed {
    transform: translateX(-100%);
}

/* Sidebar content is now always fully rendered, only transformed off-screen when collapsed */

/* --- Brand Header --- */
.sidebar-brand-box {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.sidebar-brand-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    background: #fff;
    padding: 3px;
}

.sidebar-brand-info h6 {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.btn-sidebar-close {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--text-color-secondary);
    font-size: 1rem;
    padding: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sidebar-close:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* --- Mobile Overlay --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1050;
    transition: opacity 0.3s ease;
}

body.sidebar-show .sidebar-overlay {
    display: block;
}

/* --- Scrollable Menu Area --- */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0 1rem;
    scrollbar-gutter: stable;
}

.sidebar-menu::-webkit-scrollbar {
    width: 8px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s;
}

.sidebar-menu:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

/* --- Section Labels --- */
.sidebar-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-color-secondary);
    opacity: 0.5;
    padding: 1.25rem 1.5rem 0.5rem;
    margin: 0;
    line-height: 1;
    user-select: none;
}

/* --- Nav Links --- */
.nav-link-material {
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin: 2px 12px;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    gap: 0;
    border: 1px solid transparent;
}

.nav-link-material i:first-child {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nav-link-material span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link-material:hover {
    background: var(--slate-100);
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.06);
}

/* Active state — gradient pill with left accent */
.nav-link-material.active {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.10) 0%,
            rgba(99, 102, 241, 0.04) 100%);
    color: var(--primary-color);
    font-weight: 600;
    border-color: rgba(99, 102, 241, 0.08);
}

.nav-link-material.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 0 3px 3px 0;
}

.nav-link-material.active i:first-child {
    color: var(--primary-color);
    opacity: 1;
}

/* --- Chevron Animation --- */
.nav-link-material .fa-chevron-right {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.55rem;
}

.nav-link-material[aria-expanded="true"] .fa-chevron-right {
    transform: rotate(90deg);
}

/* --- Menu Groups --- */
.menu-group {
    margin-bottom: 2px;
}

/* --- Sub-menu --- */
.sub-menu {
    margin-left: 28px;
    padding-left: 12px;
    border-left: 1.5px solid var(--slate-200);
    position: relative;
}

.sub-menu .nav-link-material {
    padding: 8px 12px;
    margin: 1px 4px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    border-radius: 8px;
}

.sub-menu .nav-link-material:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.sub-menu .nav-link-material.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    font-weight: 600;
}

.sub-menu .nav-link-material.active::before {
    display: none;
}

.sub-menu .nav-link-material i {
    font-size: 0.75rem;
    width: 18px;
}

/* --- Badges inside sidebar --- */
.nav-link-material .badge {
    font-size: 0.55rem;
    padding: 3px 7px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* --- User Footer --- */
.sidebar-user-footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.01);
}

.sidebar-user-footer .user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    flex-shrink: 0;
}

.sidebar-user-footer .user-info {
    flex: 1;
    min-width: 0;
    margin-left: 0.75rem;
}

.sidebar-user-footer .user-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.3;
}

.sidebar-user-footer .user-role {
    font-size: 0.65rem;
    color: var(--text-color-secondary);
    margin: 0;
    line-height: 1.3;
}

.sidebar-user-footer .btn-logout-sidebar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-color-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-user-footer .btn-logout-sidebar:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger-color);
}

/* --- Old classes kept for compatibility --- */
.logo-container {
    background: white;
    padding: 2px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-100);
}

.icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    border-radius: 12px;
    background: var(--slate-50);
    color: var(--slate-400);
    transition: var(--transition);
    border: 1px solid var(--slate-100);
}

.nav-link-material:hover .icon-box,
.nav-link-material.active .icon-box {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}

/* Glass Navbar */
.navbar-premium {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
    padding: 0.35rem 2rem;
    z-index: 1040;
}

/* Layout Adjustments */
.main-content {
    margin-left: 0; /* Diubah agar konten selalu full layar (100%) */
    min-height: 100vh;
    background-color: var(--body-bg);
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper {
    padding: 2.5rem;
}

/* Animated Content */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Card Styles */
.card-premium {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
    transition: var(--transition);
    overflow: hidden;
    background-color: #ffffff;
}

.card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px 0 rgba(67, 89, 113, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background-color: white;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    color: var(--text-color);
}

.card-body {
    padding: 1.5rem;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.welcome-card .card-body {
    position: relative;
    z-index: 2;
}

/* Statistic Cards */
.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background-color: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background-color: rgba(var(--success-color), 0.1);
    color: var(--success-color);
}

.stat-icon.warning {
    background-color: rgba(var(--warning-color), 0.1);
    color: var(--warning-color);
}

.stat-icon.info {
    background-color: rgba(var(--info-color), 0.1);
    color: var(--info-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-color-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Chart Card */
.chart-card .card-body {
    padding: 2rem;
}

/* Activity Table */
.activity-table {
    margin: 0;
}

.activity-table thead th {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    color: var(--text-color);
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.activity-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.activity-time {
    color: var(--text-color-secondary);
    font-size: 0.75rem;
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Badge Styles */
.badge {
    border-radius: 12px;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
}

.badge.xx-small {
    padding: 0.15rem 0.5rem;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 300px;
}

.search-bar input {
    padding-left: 2.5rem;
    border-radius: 25px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
}

.search-bar i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color-secondary);
}

/* Notification Bell */
.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Profile Avatar */
.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: var(--text-color-secondary);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 500;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar-seamless {
        transform: translateX(-280px);
    }

    body.sidebar-show .sidebar-seamless {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }


    .navbar-toggler {
        display: block;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .welcome-card .card-body {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .navbar-custom {
        padding: 0.5rem 1rem;
    }

    .xx-small {
        font-size: 0.75rem !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   Dashboard Components
   ======================================== */

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.welcome-content {
    flex: 1;
    z-index: 1;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.welcome-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.welcome-visual {
    flex-shrink: 0;
    margin-left: 2rem;
    z-index: 1;
}

.dashboard-illustration {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-trend.positive {
    color: #10b981;
}

.stat-trend.negative {
    color: #ef4444;
}

.stat-trend.neutral {
    color: #6b7280;
}

/* ========================================
   Dashboard v2.0 — Premium Components
   ======================================== */

.dashboard-banner-premium {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    min-height: 120px;
    border: none;
    overflow: hidden;
    position: relative;
    border-radius: 1.25rem !important;
}

.banner-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.banner-shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.12);
    top: -100px;
    right: -50px;
}

.banner-shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.10);
    top: -30px;
    right: 150px;
}

.banner-shape-3 {
    width: 150px;
    height: 150px;
    background: rgba(59, 130, 246, 0.08);
    bottom: -50px;
    left: 30%;
}

.glass-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.stat-chip-premium {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.stat-chip-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.clock-widget-premium {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-dot-active {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* Statistics Grid */
.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.stat-card-v2 {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.stat-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.stat-icon-v2 {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Tabular numbers for clocks and stats */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Chart Section Refinement */
.chart-card-premium {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.chart-header-premium {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Activity Section */
.activity-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-card,
.quick-actions-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #e5e7eb;
}

.activity-header,
.quick-actions-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-title,
.quick-actions-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.activity-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition);
}

.activity-item:hover {
    background-color: #f9fafb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Quick Actions */
.quick-actions-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .welcome-stats {
        justify-content: center;
    }

    .welcome-visual {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0 !important;
    }
    
    .content-wrapper {
        padding: 1rem 0; /* Nol margin kiri-kanan */
    }

    .content-wrapper .container-fluid {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .sidebar-seamless {
        transform: translateX(-100%);
        z-index: 1060;
    }

    body.sidebar-show .sidebar-seamless {
        transform: translateX(0);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-actions-body {
        grid-template-columns: 1fr;
    }

    .chart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .welcome-card {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .chart-body {
        height: 250px;
    }
}

/* Soft Label Utilities */
.bg-label-primary {
    background-color: rgba(var(--primary-color), 0.12) !important;
    color: var(--primary-color) !important;
}

.bg-label-secondary {
    background-color: rgba(var(--secondary-color), 0.12) !important;
    color: var(--secondary-color) !important;
}

.bg-label-success {
    background-color: rgba(var(--success-color), 0.12) !important;
    color: var(--success-color) !important;
}

.bg-label-info {
    background-color: rgba(var(--info-color), 0.12) !important;
    color: var(--info-color) !important;
}

.bg-label-warning {
    background-color: rgba(var(--warning-color), 0.12) !important;
    color: var(--warning-color) !important;
}

.bg-label-danger {
    background-color: rgba(var(--danger-color), 0.12) !important;
    color: var(--danger-color) !important;
}

.bg-label-dark {
    background-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
}

/* === THEME COLORS === */
:root[data-theme='default'] {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --text-color: #1f2937;
    --text-color-secondary: #6b7280;
}

:root[data-theme='emerald'] {
    --primary-color: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary-color: #6366f1;
    --success-color: #22d3ee;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #818cf8;
    --text-color: #047857;
    --text-color-secondary: #059669;
}

:root[data-theme='rose'] {
    --primary-color: #f43f5e;
    --primary-light: #fb7185;
    --primary-dark: #be123c;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #818cf8;
    --text-color: #be123c;
    --text-color-secondary: #e11d48;
}

[data-theme-sidebar] {
    background: var(--sidebar-bg) !important;
    color: var(--slate-900) !important;
}

[data-theme-sidebar] .sidebar-seamless,
[data-theme-sidebar] .sidebar-menu,
[data-theme-sidebar] .sidebar-brand-box {
    background: var(--sidebar-bg) !important;
    color: var(--slate-900) !important;
}

[data-theme-sidebar] .nav-link-material.active,
[data-theme-sidebar] .nav-link-material:hover {
    color: var(--primary-color) !important;
    background: rgba(var(--primary-color-rgb, 16, 185, 129), 0.08) !important;
}

[data-theme-sidebar] .nav-link-material.active::before {
    background: var(--primary-color) !important;
}

[data-theme-sidebar] .icon-box,
[data-theme-sidebar] .sidebar-brand-box img {
    border-color: var(--primary-color) !important;
}

[data-theme-main] {
    background: var(--body-bg) !important;
    color: var(--slate-900) !important;
}

[data-theme-main] .card,
[data-theme-main] .card-premium,
[data-theme-main] .stat-card,
[data-theme-main] .activity-card,
[data-theme-main] .quick-actions-card {
    background: var(--card-bg) !important;
    color: var(--slate-900) !important;
    border-color: var(--primary-color) !important;
}

[data-theme-main] .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

[data-theme-main] .btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

[data-theme-main] .stat-icon,
[data-theme-main] .profile-avatar,
[data-theme-main] .activity-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: #fff !important;
}

[data-theme-sidebar] .sidebar-brand-box h6,
[data-theme-sidebar] .sidebar-brand-info,
[data-theme-sidebar] .nav-link-material {
    color: var(--text-color) !important;
}

[data-theme-main] .card-header,
[data-theme-main] h1,
[data-theme-main] h2,
[data-theme-main] h3,
[data-theme-main] h4,
[data-theme-main] h5,
[data-theme-main] h6 {
    color: var(--text-color) !important;
}