@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* =========================================
   GLOBAL SAAS CSS
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* =========================================
   LANDING PAGE (FRONTEND)
   ========================================= */
body.saas-landing { font-family: var(--font-main); background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
.saas-landing a { text-decoration: none; color: inherit; }
.saas-landing ul { list-style: none; }

/* Container */
.saas-landing .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Button */
.saas-landing .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 8px; font-weight: 700; transition: all 0.2s; cursor: pointer; border: 2px solid transparent; font-size: 15px; }
.saas-landing .btn-primary { background: var(--primary); color: white; }
.saas-landing .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.saas-landing .btn-secondary { background: var(--secondary); color: white; }
.saas-landing .btn-secondary:hover { filter: brightness(0.95); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.saas-landing .btn-outline { background: transparent; border-color: var(--border-color); color: var(--text-dark); }
.saas-landing .btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Navbar */
.saas-landing header { position: sticky; top: 0; left: 0; right: 0; background: #ffffff !important; z-index: 99999 !important; border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.saas-landing .nav-container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.saas-landing .logo { font-size: 24px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.saas-landing .logo img { max-height: 68px; max-width: 220px; object-fit: contain; }
.saas-landing .footer-col img { max-height: 90px; max-width: 260px; object-fit: contain; }
.saas-landing .logo-icon { color: var(--primary); }
.saas-landing .nav-links { display: flex; gap: 32px; }
.saas-landing .nav-links a { color: var(--text-gray); font-weight: 600; font-size: 15px; transition: color 0.2s; }
.saas-landing .nav-links a:hover { color: var(--primary); }
.saas-landing .nav-actions { display: flex; gap: 16px; align-items: center; }

/* Hero Section */
.saas-landing .hero { padding: 180px 0 100px; text-align: center; background: var(--bg-light); position: relative; overflow: hidden; }
.saas-landing .hero h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; color: #1e3a8a; max-width: 900px; margin-inline: auto; }
.saas-landing .hero p { font-size: 18px; color: var(--text-gray); max-width: 750px; margin: 0 auto 40px; line-height: 1.8; }
.saas-landing .hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }
.saas-landing .hero-mockup { max-width: 1000px; margin: 0 auto; position: relative; }
.saas-landing .hero-mockup img { width: 100%; border-radius: 12px; display: block; box-shadow: var(--shadow-lg); }

/* Social Proof / Clients */
.saas-landing .clients { padding: 40px 0; border-bottom: 1px solid var(--border-color); text-align: center; background: white; }
.saas-landing .clients p { color: var(--text-dark); font-size: 16px; font-weight: 700; margin-bottom: 24px; }
.saas-landing .client-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.7; filter: grayscale(100%); }
.saas-landing .client-logos svg { height: 40px; width: auto; color: var(--text-dark); }

/* Feature Grid Cards */
.saas-landing .feature-cards { padding: 90px 0; background: var(--bg-light); }
.saas-landing .fc-header { text-align: left; margin-bottom: 40px; }
.saas-landing .fc-header h2 { font-size: 34px; font-weight: 800; color: #1e3a8a; line-height: 1.3; }
.saas-landing .fc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.saas-landing .fc-card { padding: 32px; border: 1px solid var(--border-color); border-radius: 16px; background: white; transition: 0.3s; position: relative; }
.saas-landing .fc-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); transform: translateY(-3px); }
.saas-landing .fc-icon { width: 48px; height: 48px; background: var(--primary-light); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.saas-landing .fc-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.saas-landing .fc-card p { font-size: 15px; color: var(--text-gray); line-height: 1.6; }

/* Comparison Section (Cara Lama vs KelolaBola) */
.saas-landing .comparison { padding: 90px 0; background: #f8fafc; }
.saas-landing .comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.saas-landing .comp-card { border-radius: 20px; padding: 40px; }
.saas-landing .comp-card.old { background: #fff1f2; border: 1px solid #fecdd3; }
.saas-landing .comp-card.new { background: #f0fdf4; border: 2px solid #86efac; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1); }
.saas-landing .comp-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.saas-landing .comp-card.old .comp-title { color: #9f1239; }
.saas-landing .comp-card.new .comp-title { color: #166534; }
.saas-landing .comp-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.saas-landing .comp-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.saas-landing .comp-card.old .comp-list li { color: #881337; }
.saas-landing .comp-card.new .comp-list li { color: #14532d; }

/* Pricing (Sejajar & Equal Height Guaranteed) */
.saas-landing .pricing { padding: 100px 0; background: #ffffff; text-align: center; }
.saas-landing .pricing .container { max-width: 1400px; }
.saas-landing .pricing-header h2 { font-size: 34px; font-weight: 800; color: #1e3a8a; margin-bottom: 12px; }
.saas-landing .pricing-header p { color: var(--text-gray); font-size: 16px; max-width: 680px; margin: 0 auto; }
.saas-landing .pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 20px; 
    margin-top: 50px; 
    text-align: left; 
    align-items: stretch; /* Memaksa semua kartu memiliki tinggi yang sama sejajar */
}
.saas-landing .price-card { 
    background: white; 
    border-radius: 18px; 
    padding: 30px 22px; 
    border: 1px solid var(--border-color); 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.saas-landing .price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.saas-landing .price-card.popular { 
    border-color: var(--primary); 
    border-width: 2px; 
    box-shadow: 0 12px 36px rgba(64, 106, 243, 0.15);
}
.saas-landing .popular-badge { 
    position: absolute; 
    top: -14px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--secondary); 
    color: white; 
    padding: 6px 18px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(251, 179, 41, 0.4);
}
.saas-landing .price-card-header {
    min-height: 120px;
    display: flex;
    flex-direction: column;
}
.saas-landing .price-name { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.saas-landing .price-period { color: var(--text-gray); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.saas-landing .price-amount { font-size: 34px; font-weight: 800; color: var(--primary); margin-bottom: 0; line-height: 1.1; }
.saas-landing .price-card .btn {
    width: 100%;
    margin: 20px 0 24px;
    padding: 13px 20px;
    font-size: 15px;
    border-radius: 10px;
}
.saas-landing .price-features-wrap {
    flex: 1;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
}
.saas-landing .price-features-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 16px;
}
.saas-landing .price-features { 
    margin: 0; 
    padding: 0; 
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.saas-landing .price-features li { 
    display: flex; 
    align-items: flex-start; 
    gap: 10px; 
    font-size: 13.5px; 
    color: #334155; 
    font-weight: 500; 
    line-height: 1.4;
}
.saas-landing .price-features li svg { 
    color: #10b981; 
    width: 17px; 
    height: 17px; 
    flex-shrink: 0; 
    margin-top: 2px;
}

/* Testimonials */
.saas-landing .testimonials { padding: 90px 0; background: #f8fafc; text-align: center; }
.saas-landing .testimonials h2 { font-size: 34px; font-weight: 800; color: #1e3a8a; margin-bottom: 12px; }
.saas-landing .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; text-align: left; }
.saas-landing .testi-card { background: white; border-radius: 16px; padding: 32px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; }
.saas-landing .testi-quote { font-size: 15px; color: #334155; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.saas-landing .testi-author { display: flex; align-items: center; gap: 14px; }
.saas-landing .testi-avatar { width: 48px; height: 48px; border-radius: 50%; background: #e2e8f0; object-fit: cover; font-weight: 800; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; }
.saas-landing .testi-name { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.saas-landing .testi-role { color: var(--text-gray); font-size: 13px; }

/* FAQ Accordion */
.saas-landing .faq { padding: 90px 0; background: white; }
.saas-landing .faq-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.saas-landing .faq-header h2 { font-size: 34px; font-weight: 800; color: #1e3a8a; margin-bottom: 12px; }
.saas-landing .faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.saas-landing .faq-item { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; background: #ffffff; transition: 0.2s; }
.saas-landing .faq-item:hover { border-color: var(--primary-light); }
.saas-landing .faq-question { padding: 20px 24px; font-weight: 700; color: var(--text-dark); font-size: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.saas-landing .faq-question::after { content: '+'; font-size: 22px; color: var(--primary); font-weight: 600; transition: transform 0.2s; }
.saas-landing .faq-item.open .faq-question::after { content: '−'; transform: rotate(180deg); }
.saas-landing .faq-answer { padding: 0 24px 20px; color: #64748b; font-size: 15px; line-height: 1.6; display: none; }
.saas-landing .faq-item.open .faq-answer { display: block; }

/* Call to Action Banner */
.saas-landing .cta-banner { padding: 80px 0; background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); color: white; text-align: center; }
.saas-landing .cta-banner h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.saas-landing .cta-banner p { font-size: 18px; opacity: 0.9; max-width: 700px; margin: 0 auto 36px; line-height: 1.6; }
.saas-landing .cta-banner .btn-cta { background: #fbb329; color: #1e293b; font-size: 16px; padding: 15px 36px; border-radius: 10px; font-weight: 800; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.saas-landing .cta-banner .btn-cta:hover { background: #f59e0b; transform: translateY(-3px); }

/* Floating WhatsApp Lead Capture Button */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25d366;
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
    color: white;
}
.floating-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Footer */
.saas-landing footer { background: white; border-top: 1px solid var(--border-color); padding: 80px 0 40px; }
.saas-landing .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.saas-landing .footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 24px; color: var(--text-dark); }
.saas-landing .footer-col ul li { margin-bottom: 16px; }
.saas-landing .footer-col ul li a { color: var(--text-gray); font-size: 14px; transition: color 0.2s; font-weight: 500; }
.saas-landing .footer-col ul li a:hover { color: var(--primary); }
.saas-landing .footer-bottom { border-top: 1px solid var(--border-color); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; color: var(--text-gray); font-size: 14px; }

@media (max-width: 900px) {
    .saas-landing .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .saas-landing .comp-grid, .saas-landing .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .saas-landing .nav-links { display: none; }
    .saas-landing .hero h1 { font-size: 32px; }
    .saas-landing .fc-grid, .saas-landing .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .floating-whatsapp span { display: none; }
    .floating-whatsapp { padding: 16px; border-radius: 50%; bottom: 20px; right: 20px; }
}


/* =========================================
   SUPERADMIN DASHBOARD (BACKEND)
   ========================================= */
body.saas-admin { font-family: var(--font-main); background: var(--bg-dark); color: var(--text-main); display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.saas-admin .sidebar { width: 260px; background: var(--surface-dark); border-right: 1px solid var(--border-dark); display: flex; flex-direction: column; }
.saas-admin .brand { padding: 24px; font-size: 20px; font-weight: 800; border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; gap: 10px; }
.saas-admin .brand span { color: var(--primary); }
.saas-admin .nav-list { padding: 20px 16px; flex: 1; overflow-y: auto; }
.saas-admin .nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-muted); text-decoration: none; border-radius: 8px; margin-bottom: 8px; transition: 0.2s; font-weight: 500; }
.saas-admin .nav-item:hover, .saas-admin .nav-item.active { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
.saas-admin .nav-item a { text-decoration: none; color: inherit; }

/* Main Content */
.saas-admin .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.saas-admin .topbar { height: 70px; border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); }
.saas-admin .topbar-title { font-size: 18px; font-weight: 700; }

.saas-admin .content-area { padding: 32px; overflow-y: auto; flex: 1; }

/* Stats Cards */
.saas-admin .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 32px; }
.saas-admin .stat-card { background: var(--surface-dark); border: 1px solid var(--border-dark); border-radius: 16px; padding: 24px; }
.saas-admin .stat-label { color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.saas-admin .stat-value { font-size: 32px; font-weight: 800; color: var(--text-main); }

/* Card & Table */
.saas-admin .card { background: var(--surface-dark); border: 1px solid var(--border-dark); border-radius: 16px; overflow: hidden; }
.saas-admin .card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-dark); display: flex; justify-content: space-between; align-items: center; }
.saas-admin .card-title { font-size: 18px; font-weight: 700; }
.saas-admin .card-body { padding: 24px; }

.saas-admin table { width: 100%; border-collapse: collapse; }
.saas-admin th { text-align: left; padding: 16px 24px; font-size: 13px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-dark); background: var(--bg-dark); }
.saas-admin td { padding: 16px 24px; border-bottom: 1px solid var(--border-dark); font-size: 14px; }
.saas-admin tr:hover td { background: var(--bg-dark); }

/* Badges & Links */
.saas-admin .badge { padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.saas-admin .badge.active { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.saas-admin .badge.trial { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.saas-admin .badge.suspended { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

.saas-admin .action-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 13px; margin-right: 10px; }
.saas-admin .action-link.danger { color: var(--danger); }

/* Forms */
.saas-admin .form-group { margin-bottom: 20px; }
.saas-admin .form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-muted); font-size: 14px; }
.saas-admin .form-control { width: 100%; padding: 12px 16px; background: var(--bg-dark); border: 1px solid var(--border-dark); border-radius: 8px; color: var(--text-main); font-family: inherit; }
.saas-admin .form-control:focus { outline: none; border-color: var(--primary); }

.saas-admin .color-picker { display: flex; align-items: center; gap: 12px; }
.saas-admin .color-input { width: 50px; height: 50px; padding: 0; border: none; border-radius: 8px; cursor: pointer; background: transparent; }

.saas-admin .btn { padding: 12px 24px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.saas-admin .btn:hover { background: #4338ca; }

.saas-admin .alert { padding: 16px; background: rgba(16, 185, 129, 0.1); color: var(--success); border-left: 4px solid var(--success); border-radius: 4px; margin-bottom: 24px; font-weight: 500; }

/* =========================================
   THEME 2 (Modern Rounded Dashboard)
   ========================================= */
.saas-admin.theme-2 {
    background: #eedbdc; /* Soft pink background like mockup */
    padding: 4vh 4vw;
}
.saas-admin.theme-2 .sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-right: none;
    border-radius: 40px 0 0 40px; /* Rounded only on the left */
    margin: 0;
    height: 100%;
    transition: width 0.3s ease;
    position: relative;
}
/* Extend purple background under the rounded corners of main-content */
.saas-admin.theme-2 .sidebar::after {
    content: '';
    position: absolute;
    top: 0; right: -50px; bottom: 0;
    width: 50px;
    background: var(--sidebar-bg);
    z-index: 0;
}
.saas-admin.theme-2 .sidebar .brand {
    border-bottom: none;
    color: var(--sidebar-text);
    padding: 40px 24px;
}
.saas-admin.theme-2 .sidebar .nav-item {
    color: var(--sidebar-text);
    opacity: 0.7;
    margin: 4px 16px;
    border-radius: 12px;
}
.saas-admin.theme-2 .sidebar .nav-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
}
.saas-admin.theme-2 .sidebar .nav-item.active {
    opacity: 1;
    background: transparent;
    color: var(--secondary); /* Highlight active in yellow */
    font-weight: 700;
}
.saas-admin.theme-2 .topbar {
    background: transparent;
    border-bottom: none;
    padding: 20px 40px;
    backdrop-filter: none;
}
.saas-admin.theme-2 .main-content {
    background: #ffffff;
    border-radius: 40px; /* Rounded on ALL sides to create the inward curve */
    margin: 0;
    height: 100%;
    position: relative;
    z-index: 1;
}
.saas-admin.theme-2 .content-area {
    padding: 20px 40px 40px;
}
.saas-admin.theme-2 .stat-card,
.saas-admin.theme-2 .card {
    border-radius: 24px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.saas-admin.theme-2 .stat-card:nth-child(1) { background: #ff7675; color: white; }
.saas-admin.theme-2 .stat-card:nth-child(1) .stat-label, .saas-admin.theme-2 .stat-card:nth-child(1) .stat-value { color: white; }
.saas-admin.theme-2 .stat-card:nth-child(2) { background: #ffffff; border: 1px solid #f1f2f6; }
.saas-admin.theme-2 .stat-card:nth-child(3) { background: #ffffff; border: 1px solid #f1f2f6; }
.saas-admin.theme-2 .stat-card:nth-child(4) { background: var(--secondary); color: white; }
.saas-admin.theme-2 .stat-card:nth-child(4) .stat-label, .saas-admin.theme-2 .stat-card:nth-child(4) .stat-value { color: white; }

.saas-admin.theme-2 th {
    background: transparent;
    border-bottom: 2px solid #f1f2f6;
    color: #a4b0be;
}
.saas-admin.theme-2 td {
    border-bottom: 1px dashed #f1f2f6;
}

/* Sidebar Collapsed State */
.saas-admin .sidebar { transition: width 0.3s ease; }
.saas-admin .sidebar.collapsed { width: 80px; }
.saas-admin .sidebar.collapsed .brand-text { display: none; }
.saas-admin .sidebar.collapsed .nav-text { display: none; }
.saas-admin .sidebar.collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.saas-admin .sidebar.collapsed .nav-item { justify-content: center; padding-left: 0; padding-right: 0; font-size: 20px; }
.saas-admin .sidebar.collapsed .nav-item .nav-icon { margin-right: 0; }
.saas-admin .toggle-btn { background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--text-main); margin-right: 20px; }

/* Responsive Logo in Sidebar */
.saas-admin .brand {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 18px 16px !important;
    min-height: 120px !important;
    transition: all 0.3s ease;
}
.saas-admin .sidebar-logo {
    max-height: 125px !important; /* Tampil besar, tegas, dan proporsional saat sidebar terbuka */
    max-width: 190px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    padding: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}
.saas-admin .sidebar.collapsed .brand {
    padding: 18px 8px !important;
    min-height: 70px !important;
}
.saas-admin .sidebar.collapsed .sidebar-logo {
    max-height: 44px !important; /* Otomatis mengecil proporsional saat sidebar di-collapse */
    max-width: 44px !important;
    padding: 0;
}

/* =========================================
   THEME 3 (Corporate Blue Top-Nav)
   ========================================= */
.saas-admin.theme-3 {
    flex-direction: column;
    background: #f4f5f9;
}
.saas-admin.theme-3 .sidebar {
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    background: var(--sidebar-bg);
    color: white;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 10;
}
.saas-admin.theme-3 .sidebar .brand {
    border-bottom: none;
    padding: 0 32px;
    color: white;
}
.saas-admin.theme-3 .nav-list {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    flex: 1;
}
.saas-admin.theme-3 .nav-item {
    color: rgba(255,255,255,0.7);
    margin: 0;
    border-radius: 0;
    height: 100%;
    align-items: center;
    padding: 0 20px;
    border-bottom: 3px solid transparent;
}
.saas-admin.theme-3 .nav-item:hover {
    color: white;
    background: transparent;
}
.saas-admin.theme-3 .nav-item.active {
    color: white;
    background: transparent;
    border-bottom-color: white;
}
.saas-admin.theme-3 .sidebar > a.nav-item {
    margin-top: 0;
    border-top: none;
    padding: 0 32px;
    height: 100%;
    color: white !important;
}

.saas-admin.theme-3 .main-content {
    background: #f4f5f9;
    position: relative;
    overflow-y: auto;
}
.saas-admin.theme-3 .topbar {
    background: var(--sidebar-bg);
    color: white;
    border-bottom: none;
    height: 80px;
    padding: 0 32px;
}
.saas-admin.theme-3 .topbar .topbar-title {
    color: white;
    font-size: 20px;
}
.saas-admin.theme-3 .toggle-btn {
    display: none;
}
.saas-admin.theme-3 .topbar a {
    color: white !important;
}

.saas-admin.theme-3 .main-content::before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: var(--sidebar-bg);
    z-index: 0;
}
.saas-admin.theme-3 .content-area {
    position: relative;
    z-index: 1;
    padding: 0 32px 32px;
}

.saas-admin.theme-3 .stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
}
.saas-admin.theme-3 .stat-card .stat-label { color: rgba(255,255,255,0.8); }
.saas-admin.theme-3 .stat-card .stat-value { color: white; }

.saas-admin.theme-3 .card {
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* =========================================
   SETTINGS TABS
   ========================================= */
.saas-admin .tabs { display: flex; border-bottom: 1px solid var(--border-dark); margin-bottom: 24px; }
.saas-admin .tab-btn { padding: 12px 24px; font-weight: 600; color: var(--text-muted); background: transparent; border: none; border-bottom: 3px solid transparent; cursor: pointer; transition: 0.3s; font-family: inherit; font-size: 15px; }
.saas-admin .tab-btn:hover { color: var(--text-main); }
.saas-admin .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.saas-admin .tab-content { display: none; }
.saas-admin .tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   TOPBAR PROFILE DROPDOWN
   ========================================= */
.saas-admin .profile-dropdown { position: relative; }
.saas-admin .profile-btn { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; cursor: pointer; border: none; }
.saas-admin .dropdown-menu { display: none; position: absolute; top: 100%; right: 0; margin-top: 10px; background: var(--surface-dark); border: 1px solid var(--border-dark); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 220px; z-index: 1000; overflow: hidden; animation: fadeIn 0.2s ease; }
.saas-admin .dropdown-menu.show { display: block; }
.saas-admin .dropdown-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 500; transition: 0.2s; border-bottom: 1px solid var(--border-dark); }
.saas-admin .dropdown-item:last-child { border-bottom: none; }
.saas-admin .dropdown-item:hover { background: rgba(79, 70, 229, 0.05); color: var(--primary); }
.saas-admin .dropdown-item.danger { color: var(--danger); }
.saas-admin .dropdown-item.danger:hover { background: rgba(239, 68, 68, 0.05); }
