/* ============================================================
   SHARED ENTERPRISE VIEW STYLES — views.css
   Loaded once via index.html; applies to all app views.
   Per-view files keep only: unique classes + accent overrides.
   ============================================================ */

/* --- Font --- */
.font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif; }

/* --- Base Colors --- */
.bg-enterprise-50  { background-color: #f8fafc; }
.text-slate-muted  { color: #8ba3cb; }

/* --- Card --- */
.card-enterprise {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-enterprise:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

/* --- Stat Cards --- */
.stat-card { position: relative; overflow: hidden; }
.stat-icon-wrap {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5);
}

/* --- Gradient Icon Palettes (used in dashboard, Pengaturan, etc.) --- */
.grad-blue    { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #2563eb; border: 1px solid #bfdbfe; }
.grad-purple  { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #9333ea; border: 1px solid #d8b4fe; }
.grad-emerald { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #059669; border: 1px solid #a7f3d0; }
.grad-cyan    { background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%); color: #0891b2; border: 1px solid #a5f3fc; }
.grad-amber   { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: #d97706; border: 1px solid #fde68a; }
.grad-red     { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); color: #dc2626; border: 1px solid #fecaca; }

/* --- Layout Containers --- */
.max-w-1050 { max-width: 1050px; margin: 0 auto; }
.max-w-1200 { max-width: 1200px; margin: 0 auto; }

/* --- Typography --- */
.meta-label    { font-size: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; display: block; }
.content-title { font-size: 16px; font-weight: 800; color: #1e293b; line-height: 1.3; letter-spacing: -0.3px; }
.content-body  { font-size: 14px; font-weight: 500; color: #475569; line-height: 1.6; }

/* --- Filter / Segmented Control --- */
.filter-group { background-color: #f1f5f9; padding: 5px; border-radius: 14px; display: inline-flex; border: 1px solid #e2e8f0; }
.filter-btn   { border: none; background: transparent; padding: 8px 18px; border-radius: 10px; color: #64748b; font-weight: 600; font-size: 13px; transition: all 0.2s; cursor: pointer; }
.filter-btn.active { background: #ffffff; color: #1e293b; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }

/* --- Search Input (focus color overridden per-view) --- */
.search-clean { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; transition: all 0.2s; box-shadow: 0 2px 10px rgba(15,23,42,0.02); padding: 8px 16px; }
.search-clean input { border: none; box-shadow: none; background: transparent; font-weight: 500; font-size: 13px; padding: 0; outline: none; }
.search-clean input::placeholder { color: #94a3b8; font-weight: 500; }

/* --- Dropdown (focus color overridden per-view) --- */
.dropdown-premium { font-size: 13px; font-weight: 600; color: #475569; background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 36px 8px 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(15,23,42,0.02); transition: all 0.2s; appearance: none; }

/* --- Badge Enterprise (color variants defined per-view) --- */
.badge-enterprise { font-weight: 700; padding: 6px 14px; border-radius: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid transparent; }

/* --- Action Buttons --- */
.btn-action-premium { background: #ffffff; border: 1px solid #e2e8f0; color: #475569; border-radius: 12px; font-weight: 700; font-size: 11px; transition: all 0.2s; box-shadow: 0 2px 4px rgba(15,23,42,0.02); cursor: pointer; }
.btn-action-premium:hover { background: #f8fafc; border-color: #cbd5e1; box-shadow: 0 4px 6px rgba(15,23,42,0.04); color: #1e293b; }

.btn-primary-gradient { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; border: none; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); transition: all 0.3s; }
.btn-primary-gradient:hover { box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); transform: translateY(-1px); color: white; }

.btn-action-sm { background: #ffffff; border: 1px solid #e2e8f0; color: #64748b; border-radius: 8px; font-size: 11px; font-weight: 800; padding: 6px 12px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.btn-action-sm:hover { background: #f8fafc; color: #1e293b; border-color: #cbd5e1; }
.btn-action-sm.delete:hover { background: #fef2f2; color: #dc2626; border-color: #fca5a5; }

.btn-text { background: none; border: none; padding: 0; cursor: pointer; text-align: inherit; font-family: inherit; }

/* --- Modal Enterprise (focus color overridden per-view) --- */
.modal-enterprise .modal-content { border-radius: 24px; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.modal-enterprise .modal-header  { border-bottom: 1px solid #f1f5f9; background: #ffffff; border-radius: 24px 24px 0 0; padding: 20px 24px; }
.modal-enterprise .form-control,
.modal-enterprise .form-select   { border-radius: 12px; border: 1px solid #cbd5e1; padding: 10px 14px; font-weight: 500; font-size: 14px; background: #f8fafc; }

/* --- Tabs — Underline style (Info_Peraturan overrides to pill style) --- */
.modern-tabs { display: flex; gap: 24px; border-bottom: 2px solid #f1f5f9; margin-bottom: 16px; overflow-x: auto; }
.tab-btn { background: transparent; border: none; padding: 10px 4px; font-size: 13px; font-weight: 700; color: #94a3b8; position: relative; transition: all 0.2s; cursor: pointer; white-space: nowrap; }
.tab-btn:hover { color: #475569; }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px; background-color: currentColor; border-radius: 3px 3px 0 0; }

/* --- Layout Dividers (lg+) --- */
@media (min-width: 992px) {
    .border-end-enterprise   { border-right: 1px solid rgba(226, 232, 240, 0.6); }
    .border-start-enterprise { border-left:  1px solid rgba(226, 232, 240, 0.6); }
}

/* --- Public Footer (Home, Info_Peraturan, Roadmap) --- */
.glass-footer { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 -10px 30px -10px rgba(15, 23, 42, 0.02); position: relative; z-index: 10; }
.footer-link  { color: #64748b; text-decoration: none; font-weight: 700; font-size: 13px; transition: all 0.2s; display: block; margin-bottom: 10px; }
.footer-link:hover { color: #0ea5e9; transform: translateX(5px); }
.footer-icon-box { width: 32px; height: 32px; border-radius: 8px; background: #e0f2fe; color: #0ea5e9; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hover-lift-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.hover-lift-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px -8px rgba(16, 185, 129, 0.2) !important; border-color: #6ee7b7 !important; background: #ffffff !important; }
