* { font-family: 'Nunito', sans-serif; box-sizing: border-box; }

html, body { height: 100%; margin: 0; background: #f0f2f5; overflow: hidden; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}
.sidebar-logo {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-logo img { height: 40px; object-fit: contain; }
.sidebar-logo span { font-size: 18px; font-weight: 700; color: #67748e; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-label { font-size: 10px; font-weight: 700; color: #adb5bd; text-transform: uppercase; letter-spacing: 1px; padding: 8px 12px 4px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #67748e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}
.sidebar-link:hover { background: #f0f2f5; color: #344767; }
.sidebar-link.active { background: #67748e; color: #fff; }
.sidebar-link i { width: 18px; text-align: center; font-size: 14px; color: #67748e; }
.sidebar-link.active i { color: #fff; }

/* Main */
.main-wrapper {
    margin-left: 260px;
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(103,116,142,0.3) transparent;
}
.main-wrapper::-webkit-scrollbar { width: 5px; }
.main-wrapper::-webkit-scrollbar-thumb { background: rgba(103,116,142,0.3); border-radius: 10px; }

/* Topbar */
.topbar {
    background: #fff;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-title { font-size: 16px; font-weight: 700; color: #344767; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-btn {
    background: none;
    border: none;
    color: #67748e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s;
}
.topbar-btn:hover { background: #f0f2f5; }
.hamburger { display: none; background: none; border: none; font-size: 20px; color: #67748e; cursor: pointer; }

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.stat-info p { margin: 0; font-size: 12px; font-weight: 700; color: #adb5bd; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-info h4 { margin: 4px 0; font-size: 22px; font-weight: 800; color: #344767; }
.stat-info small { font-size: 12px; color: #adb5bd; }
.stat-info small span { font-weight: 700; }
.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
}
.bg-primary-grad { background: linear-gradient(135deg, #667eea, #764ba2); }
.bg-success-grad { background: linear-gradient(135deg, #11998e, #38ef7d); }
.bg-warning-grad { background: linear-gradient(135deg, #f7971e, #ffd200); }
.bg-info-grad    { background: linear-gradient(135deg, #4facfe, #00f2fe); }

/* Cards */
.card-custom {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}
.card-custom .card-head {
    padding: 18px 20px 12px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-custom .card-head h6 { margin: 0; font-size: 15px; font-weight: 700; color: #344767; }
.card-custom .card-head p { margin: 0; font-size: 12px; color: #adb5bd; }
.card-body-custom { padding: 20px; }

/* Table */
.table th { font-size: 11px; font-weight: 700; color: #adb5bd; text-transform: uppercase; letter-spacing: 0.5px; border: none; }
.table td { font-size: 13px; color: #344767; vertical-align: middle; border-color: #f0f2f5; }
.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-active   { background: #d4edda; color: #155724; }
.badge-pending  { background: #fff3cd; color: #856404; }
.badge-inactive { background: #f8d7da; color: #721c24; }

/* Avatar */
.avatar-circle {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; color: #fff;
}

/* Info labels */
.info-label { font-size: 11px; font-weight: 700; color: #adb5bd; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; display: block; }
.info-value  { font-size: 14px; font-weight: 600; color: #344767; margin: 0; }

/* Plan Card */
.plan-card {
    background: #fff; border-radius: 14px; padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.plan-header h5 { margin: 0; font-size: 17px; font-weight: 800; color: #344767; }
.plan-price { font-size: 32px; font-weight: 800; color: #344767; margin-bottom: 12px; }
.plan-price span { font-size: 14px; font-weight: 500; color: #adb5bd; }
.plan-info { font-size: 13px; color: #67748e; margin-bottom: 20px; }
.plan-actions { display: flex; gap: 8px; }

/* Footer */
.footer-custom { padding: 20px 28px; text-align: center; font-size: 13px; color: #adb5bd; }

/* Responsive */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-260px); }
    .sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .hamburger { display: block; }
    .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; }
    .overlay.show { display: block; }
}
