/* ==============================================================
   ESTICA DARK THEME — NO SIDEBAR & TOPBAR (HOME + MODUL CEPAT)
   ============================================================== */

/* Hilangkan sidebar & jadikan konten penuh (100% width) */
.sidebar,
#sidebar-overlay,
.sidebar-overlay,
.mobile-header {
    display: none !important;
}

.app-shell {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.main-content {
    width: 100% !important;
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--navy, #111827) !important;
}

.page-body {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* ================== DARK TOPBAR ================== */
.estica-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 66px;
    background: var(--navy3, #0f172a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--white, #ffffff);
    flex-shrink: 0;
}

.estica-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.estica-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
}

.estica-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.estica-logo-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--white, #ffffff);
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.estica-logo-title span {
    color: var(--orange, #f97316);
}

.estica-logo-sub {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--gray, #94a3b8);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.estica-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

.estica-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.estica-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.estica-nav-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(16, 185, 129, 0.25) 100%);
    color: #ffffff;
    border-color: rgba(96, 211, 148, 0.5);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

/* Dropdown Modul Cepat (Dark Glass) */
.estica-dropdown {
    position: relative;
    display: inline-block;
}

.estica-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 0;
    z-index: 1001;
    animation: esticaFadeIn 0.18s ease;
}

@keyframes esticaFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.estica-dropdown.open .estica-dropdown-content {
    display: block;
}

.estica-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.estica-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding-left: 22px;
}

.estica-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 5px 0;
}

/* User Info Box on Right (Dark Theme) */
.estica-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.estica-user-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 14px;
    gap: 10px;
}

.estica-user-info {
    display: flex;
    flex-direction: column;
}

.estica-user-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--gray, #94a3b8);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.estica-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.estica-user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.estica-role-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    text-transform: uppercase;
}

.estica-btn-logout {
    padding: 7px 16px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.estica-btn-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
}

/* ==============================================================
   ESTICA CARD LAUNCHPAD (MODEL MENU ES BATU RENGGANIS — DARK PALETTE)
   ============================================================== */

.estica-launchpad {
    margin-bottom: 32px;
}

.estica-menu-section {
    margin-bottom: 28px;
}

.estica-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.estica-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.estica-menu-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white, #ffffff);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.estica-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .estica-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .estica-menu-grid {
        grid-template-columns: 1fr;
    }
}

.estica-menu-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    text-decoration: none;
}

.estica-menu-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.estica-menu-card .card-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.estica-menu-card:hover .card-icon {
    transform: scale(1.1);
}

.estica-menu-card .card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--white, #ffffff);
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.estica-menu-card .card-desc {
    font-size: 11px;
    color: var(--gray, #94a3b8);
    font-weight: 400;
    line-height: 1.3;
}

.estica-menu-card .card-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Featured Hero Card: Proyek Baru */
.estica-menu-card.card-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.estica-menu-card.card-hero:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32) 0%, rgba(5, 150, 105, 0.22) 100%);
    border-color: #10b981;
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.35);
}

.estica-menu-card.card-hero .card-title {
    color: #6ee7b7;
}

.estica-menu-card.card-hero .hero-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: #fef08a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
