/* ============================================
   DESIGN SYSTEM — Bagian Keuangan UBS
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --primary: #1A56DB;
  --primary-dark: #1e429f;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-gradient: linear-gradient(135deg, #1A56DB 0%, #3b82f6 50%, #60a5fa 100%);
  --primary-gradient-dark: linear-gradient(135deg, #1e429f 0%, #1A56DB 100%);

  --secondary: #F0F4FF;
  --accent: #10B981;
  --accent-warm: #F59E0B;
  --accent-red: #EF4444;

  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-white: #FFFFFF;

  --bg-body: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-dark: #0F172A;
  --bg-dark-card: #1E293B;

  --border: #E5E7EB;
  --border-light: #F3F4F6;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 60px -12px rgba(0, 0, 0, 0.2);
  --shadow-blue: 0 10px 40px -10px rgba(26, 86, 219, 0.3);
  --shadow-blue-lg: 0 20px 60px -15px rgba(26, 86, 219, 0.4);

  /* Borders */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography Scale */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--primary);
  color: white;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-main {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229,231,235,0.5);
  padding: 0.6rem 0;
  transition: var(--transition);
  z-index: 1050;
}

.navbar-main.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding: 0.4rem 0;
}

.navbar-main .navbar-brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-main .navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-main .navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-main .navbar-brand .brand-text small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.navbar-main .nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-50);
}

.navbar-main .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  padding: 0.4rem;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: var(--primary-gradient);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23F8FAFC' d='M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,80C672,85,768,75,864,64C960,53,1056,43,1152,42.7C1248,43,1344,53,1392,58.7L1440,64L1440,100L1392,100C1344,100,1248,100,1152,100C1056,100,960,100,864,100C768,100,672,100,576,100C480,100,384,100,288,100C192,100,96,100,48,100L0,100Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.hero-floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: floatShape 8s ease-in-out infinite;
}

.hero-floating-shape:nth-child(1) {
  width: 300px; height: 300px;
  top: -50px; right: -50px;
  animation-delay: 0s;
}

.hero-floating-shape:nth-child(2) {
  width: 200px; height: 200px;
  bottom: 100px; left: -30px;
  animation-delay: 2s;
}

.hero-floating-shape:nth-child(3) {
  width: 150px; height: 150px;
  top: 50%; right: 20%;
  animation-delay: 4s;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

.hero-content h1 {
  font-size: var(--fs-6xl);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: var(--fs-xl);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  color: white;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */
.page-header {
  background: var(--primary-gradient);
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23F8FAFC' d='M0,32L120,37.3C240,43,480,53,720,53.3C960,53,1200,43,1320,37.3L1440,32L1440,60L1320,60C1200,60,960,60,720,60C480,60,240,60,120,60L0,60Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

.page-header h1 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-lg);
}

.page-header .breadcrumb {
  background: transparent;
  margin-bottom: 1rem;
}

.page-header .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
  color: rgba(255,255,255,0.95);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-label i {
  font-size: 0.65rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-custom {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.card-custom .card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.card-custom:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon-blue {
  background: var(--primary-100);
  color: var(--primary);
}

.card-icon-green {
  background: #D1FAE5;
  color: #059669;
}

.card-icon-amber {
  background: #FEF3C7;
  color: #D97706;
}

.card-icon-red {
  background: #FEE2E2;
  color: #DC2626;
}

.card-icon-purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.card-icon-teal {
  background: #CCFBF1;
  color: #0D9488;
}

.card-custom h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-custom p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* Glass Card */
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Stat Card */
.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
}

.stat-card .stat-number {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* KPI Card for Dashboard */
.kpi-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
}

.kpi-card.kpi-blue::before { background: var(--primary); }
.kpi-card.kpi-green::before { background: var(--accent); }
.kpi-card.kpi-amber::before { background: var(--accent-warm); }
.kpi-card.kpi-red::before { background: var(--accent-red); }

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-card .kpi-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.kpi-card .kpi-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kpi-card .kpi-change {
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.kpi-change.positive {
  background: #D1FAE5;
  color: #059669;
}

.kpi-change.negative {
  background: #FEE2E2;
  color: #DC2626;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.7rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-white {
  background: white;
  color: var(--primary);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn-white:hover {
  background: var(--primary-50);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: white;
  transform: translateY(-2px);
}

.btn-sm-custom {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
}

/* ============================================
   NEWS / BERITA CARD
   ============================================ */
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card .news-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.news-card .news-body {
  padding: 1.5rem;
}

.news-card .news-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-size: var(--fs-base);
}

.news-card p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

/* ============================================
   FLOWCHART / SOP STEPS
   ============================================ */
.sop-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.sop-step::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50px;
  bottom: -2rem;
  width: 2px;
  background: var(--primary-200);
}

.sop-step:last-child::before {
  display: none;
}

.sop-step .step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-lg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-blue);
}

.sop-step .step-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  flex: 1;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.sop-step .step-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.sop-step .step-content h5 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.sop-step .step-content p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: 0;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-custom {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.table-custom thead th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 1rem 1.25rem;
  border: none;
  white-space: nowrap;
}

.table-custom tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

.table-custom tbody tr:hover {
  background: var(--primary-50);
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   ACCORDION / FAQ
   ============================================ */
.accordion-custom .accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-custom .accordion-item:hover {
  border-color: var(--primary-200) !important;
}

.accordion-custom .accordion-button {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--fs-base);
  padding: 1.25rem 1.5rem;
  background: transparent;
  box-shadow: none !important;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: var(--primary-50);
  color: var(--primary);
}

.accordion-custom .accordion-button::after {
  background-size: 1rem;
}

.accordion-custom .accordion-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control-custom {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
  transition: var(--transition);
  background: var(--bg-white);
  color: var(--text-primary);
  font-family: var(--font-family);
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-muted);
}

.form-label-custom {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box input {
  padding-left: 3rem;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ============================================
   BADGE / TAG
   ============================================ */
.badge-custom {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-blue { background: var(--primary-100); color: var(--primary); }
.badge-green { background: #D1FAE5; color: #059669; }
.badge-amber { background: #FEF3C7; color: #D97706; }
.badge-red { background: #FEE2E2; color: #DC2626; }
.badge-purple { background: #EDE9FE; color: #7C3AED; }

/* ============================================
   DOWNLOAD ITEMS
   ============================================ */
.download-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.download-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.download-item .file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.download-item .file-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.download-item .file-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.download-item .file-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.download-item .btn-download {
  border: none;
  background: var(--primary-50);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.download-item .btn-download:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-main {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
  position: relative;
}

.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.footer-main h5 {
  color: white;
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: 1.25rem;
}

.footer-main p {
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: white;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-bottom p {
  margin: 0;
  font-size: var(--fs-xs);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ============================================
   CONTACT MAP
   ============================================ */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

.contact-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.contact-info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-200);
}

.contact-info-card .contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-100);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h6 {
  font-weight: 700;
  margin-bottom: 0.15rem;
  font-size: var(--fs-sm);
}

.contact-info-card p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ============================================
   CHARTS / DASHBOARD
   ============================================ */
.chart-container {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.chart-container .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-container .chart-header h5 {
  font-weight: 700;
  margin: 0;
}

/* ============================================
   FILTER / TAB BAR
   ============================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-color: var(--bg-body);
  background-image: radial-gradient(circle at 1px 1px, rgba(26,86,219,0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
  margin: 1rem 0;
}

.z-1 { z-index: 1; }
.z-2 { z-index: 2; }

/* ============================================
   STRUKTUR ORGANISASI
   ============================================ */
.org-chart {
  text-align: center;
}

.org-person {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.org-person:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.org-person .org-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.org-person h6 {
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.org-person small {
  color: var(--text-secondary);
  font-size: var(--fs-xs);
}

.org-connector {
  width: 2px;
  height: 40px;
  background: var(--primary-200);
  margin: 0 auto;
}

/* ============================================
   SLA TABLE BADGE
   ============================================ */
.sla-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.sla-fast { background: #D1FAE5; color: #059669; }
.sla-medium { background: #FEF3C7; color: #D97706; }
.sla-slow { background: #FEE2E2; color: #DC2626; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-blue);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue-lg);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade {
  animation: fadeIn 0.5s ease forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: var(--fs-4xl);
  }

  .section {
    padding: 3.5rem 0;
  }

  .page-header {
    padding: 6rem 0 3rem;
  }

  .page-header h1 {
    font-size: var(--fs-3xl);
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: var(--fs-3xl);
  }

  .hero-content p {
    font-size: var(--fs-base);
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .section {
    padding: 3rem 0;
  }

  .card-custom {
    padding: 1.5rem;
  }

  .download-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .kpi-card .kpi-value {
    font-size: var(--fs-2xl);
  }
}

@media (max-width: 575.98px) {
  .page-header {
    padding: 5.5rem 0 2.5rem;
  }

  .hero-content h1 {
    font-size: var(--fs-2xl);
  }

  .stat-card .stat-number {
    font-size: var(--fs-3xl);
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .filter-btn {
    white-space: nowrap;
  }
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--primary-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
