/* REKAPLIVE PRO - MASTER STYLESHEET (DEEP AUDIT V2.3) */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-body: #f3f4f6; /* Lebih soft untuk mata (Tailwind gray-100) */
    --bg-card: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --sidebar-width: 260px;
    --transition: all 0.25s ease-in-out;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* LAYOUTING */
.app-wrapper { display: flex; min-height: 100vh; }
.main-content { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-width: 0; transition: margin 0.3s; }

/* SIDEBAR */
.sidebar { width: var(--sidebar-width); background: var(--bg-card); border-right: 1px solid var(--border); position: fixed; height: 100vh; z-index: 50; transition: transform 0.3s ease; display: flex; flex-direction: column; }
.sidebar-header { padding: 2rem 1.5rem; border-bottom: 1px solid var(--border); background: #f9fafb; }
.tenant-profile { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.tenant-profile img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid white; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); object-fit: cover; }
.badge-pro { background: var(--primary); color: white; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; }

.sidebar-nav { padding: 1rem 0; flex: 1; overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.5rem; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: var(--transition); border-left: 3px solid transparent; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: #eff6ff; color: var(--primary); border-left-color: var(--primary); }

/* HEADER */
.main-header { height: 72px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; margin-bottom: 32px; position: sticky; top: 0; z-index: 30; }
.content-body { padding: 0 2rem 2rem 2rem; flex: 1; max-width: 1400px; margin: 0 auto; width: 100%; }

/* UI COMPONENTS */
.card { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 1.5rem; overflow: hidden; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); background: #f9fafb; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 1.5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.25rem; border-radius: 8px; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: var(--transition); font-size: 0.875rem; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(79,70,229,0.3); }

/* RESPONSIVE GRID */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

/* MOBILE LOGIC */
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(2px); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); padding: 0.5rem; border-radius: 6px; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-toggle { display: block; }
    .sidebar-backdrop.active { opacity: 1; pointer-events: auto; }
    .main-header { padding: 0 1.25rem; }
    .content-body { padding: 0 1.25rem 1.25rem 1.25rem; }
}
