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

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

/* ===== AUTH PAGE ===== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #4a4e69, #22223b);
}

.auth-box {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  width: 360px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.2);
}

.auth-box h1 {
  margin-bottom: 25px;
  color: #22223b;
  font-size: 28px;
  font-weight: 700;
}

.auth-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.auth-box button {
  width: 100%;
  padding: 14px;
  background: #4a90e2;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

.auth-box p {
  margin-top: 18px;
  font-size: 14px;
}

.auth-box a {
  color: #4a90e2;
  font-weight: 500;
}

/* ===== ADMIN LAYOUT ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  transition: all 0.3s ease;
  background: #f4f6f8;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #1f1f2e;
  color: #fff;
  flex-shrink: 0;
  padding: 25px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 2px 0 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1002;
  border-radius: 0 16px 16px 0;
}

.sidebar h2.logo {
  text-align: center;
  margin-bottom: 35px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f4f6f8;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 18px;
}

.sidebar ul li a {
  display: block;
  padding: 12px 15px;
  border-radius: 8px;
  color: #f4f6f8;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
  background: #4a4e69;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-logout {
  margin-top: 30px;
  width: 100%;
  padding: 12px;
  background: #ff4d6d;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: #ff2a55;
}

/* Hamburger toggle button */
.menu-toggle {
  display: block;
  position: fixed;
  top: 15px;
  left: 15px;
  background: #007bff;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 18px;
  z-index: 1001;
  transition: all 0.3s ease;
}

/* Saat sidebar dibuka, sembunyikan hamburger */
.admin-layout.sidebar-open .menu-toggle {
  opacity: 0;
  visibility: hidden;
}

/* Overlay for mobile */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.admin-layout.sidebar-open .overlay {
  display: block;
  opacity: 1;
}

/* Content */
.content {
  flex: 1;
  padding: 35px;
  overflow-x: auto;
}

.content h1 {
  margin-bottom: 25px;
  font-size: 26px;
  color: #22223b;
  font-weight: 700;
}

/* Form Box */
.form-box {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 35px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.form-box button {
  padding: 12px 18px;
  background: #4a90e2;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.form-box button:hover {
  background: #3578c6;
}

.input-liga-baru {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.input-liga-baru input {
  flex: 1;
}

/* ===== TABLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

table th,
table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}

table th {
  background: #4a4e69;
  color: #fff;
  font-weight: 600;
}

.img-thumb {
  width: 80px;
  height: auto;
  border-radius: 12px;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons button {
  margin-right: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
}

.btn-edit {
  background: #ffcd38;
  color: #333;
}

.btn-edit:hover {
  background: #f7b500;
}

.btn-delete {
  background: #ff4d6d;
  color: #fff;
}

.btn-delete:hover {
  background: #ff2a55;
}

.btn-approve {
  background: #4caf50;
  color: #fff;
}

.btn-approve:hover {
  background: #3e8e41;
}

.btn-revisi {
  background: #ff9800;
  color: #fff;
}

.btn-revisi:hover {
  background: #e68900;
}

.btn-block {
  background: #ff4d6d;
  color: #fff;
}

.btn-unblock {
  background: #4caf50;
  color: #fff;
}

/* ===== MODAL REVISI MODERN ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: #fff;
  padding: 30px 35px;
  border-radius: 20px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
  animation: scaleIn 0.3s ease;
}

.modal-box h2 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: #22223b;
}

.modal-box textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  resize: vertical;
  margin-bottom: 25px;
  font-size: 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.modal-box textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1), 0 0 8px rgba(74,144,226,0.3);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.btn-cancel {
  background: #f0f0f0;
  color: #555;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #e0e0e0;
}

.btn-primary {
  background: #f0f0f0;
  color: #555;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #e0e0e0;
}
.btn-submit-revisi {
  background: #4a90e2;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease, transform 0.2s ease;
}

.btn-submit-revisi:hover {
  background: #3578c6;
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Tambahkan di admin.css */

/* Efek hover untuk tabel */
.table-hover tbody tr:hover {
  background-color: #f5f5f5;
}

/* Styling untuk Modal Pratinjau */
/* GANTI SEMUA CSS LAMA ANDA UNTUK MODAL PRATINJAU DENGAN INI */

/* Wadah utama modal */
.preview-modal {
  max-width: 900px;
  width: 90%;
  max-height: 90vh; /* Batasi tinggi modal */
  animation: slideDown 0.3s ease-out forwards;
  
  /* Layout Flexbox untuk memisahkan header, konten, dan footer */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Penting untuk border-radius */
  position: relative; /* Penting untuk tombol close 'X' */
}

/* Area konten yang bisa di-scroll */
.preview-scroll-container {
  flex-grow: 1; /* Membuat area ini mengisi ruang kosong */
  overflow-y: auto; /* SCROLLBAR HANYA MUNCUL DI SINI */
  padding: 0 2rem; /* Jarak kiri-kanan untuk konten */
}

/* Gambar di dalam pratinjau */
.preview-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Judul di dalam pratinjau */
.preview-modal h3 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Info author di dalam pratinjau */
.preview-author {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Teks konten di dalam pratinjau */
.preview-content {
  font-size: 1.1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* Tombol close 'X' di pojok kanan atas */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2.5rem; /* Ukuran 'X' */
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #333;
}

@keyframes slideDown {
  from {
    /* Posisi awal: sedikit di atas layar & transparan */
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    /* Posisi akhir: di posisi normal & terlihat jelas */
    transform: translateY(0);
    opacity: 1;
  }
}
/* Tambahkan atau ganti gaya yang ada di admin.css */

.modal-buttons {
  /* Memberi jarak antar tombol */
  display: flex;
  gap: 10px;
  justify-content: flex-end; /* Meratakan tombol ke kanan */
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Gaya dasar untuk SEMUA tombol di dalam modal */
.modal-buttons button {
  border: none;
  /* ✅ Ini akan membuat semua sudut tombol sama (8px) */
  border-radius: 8px; 
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 20px; /* Membuat ukuran tombol proporsional */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Efek saat mouse diarahkan ke tombol */
.modal-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sekarang, kita hanya tentukan warna spesifik untuk tiap tombol */
.btn-approve {
  background-color: #28a745;
  color: white;
}
.btn-revisi {
  background-color: #ffc107;
  color: #333;
}
.btn-cancel {
  background-color: #f0f0f0;
  color: #555;
  border: 1px solid #ddd;
}
/* Styling untuk Status Badge di Admin Dashboard */
.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: white;
  text-transform: capitalize;
  font-weight: bold;
}

/* Warna Hijau untuk Approved */
.status-badge.status-approved { 
  background-color: #28a745; 
}

/* Warna Kuning untuk Pending */
.status-badge.status-pending { 
  background-color: #ffc107; 
  color: #333; /* Teks lebih gelap agar terbaca */
}

/* Warna Merah untuk Revisi */
.status-badge.status-revisi { 
  background-color: #dc3545; 
}/* === 1. PENGATURAN DASAR & LAYOUT UTAMA === */
/* === 0. DEKLARASI FONT KUSTOM === */
/* Normal (Book) */
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_Book-CXsYnRYj.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_Book_Oblique-DtonwOFO.otf') format('opentype');
  font-weight: 400;
  font-style: oblique; /* atau italic */
}

/* Medium */
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_Medium-DG41T-Ao.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_Medium_Oblique-DYUsGU7U.otf') format('opentype');
  font-weight: 500;
  font-style: oblique;
}

/* Demi-Bold */
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_Demi-DaH8mshR.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_Demi_Oblique-BxZIf-C1.otf') format('opentype');
  font-weight: 600;
  font-style: oblique;
}

/* Bold */
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_Bold-CRWA45JI.otf') format('opentype');
  font-weight: 700; /* 700 adalah bold */
  font-style: normal;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_Bold_Oblique-DeQstJPp.otf') format('opentype');
  font-weight: 700;
  font-style: oblique;
}

/* Extra Light */
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_XLig-Byb9FZu1.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('/assets/fonnts.com-All_Round_Gothic_XLig_Oblique-D5b7LutZ.otf') format('opentype');
  font-weight: 200;
  font-style: oblique;
}

body {
  margin: 0;
  font-family: 'All Round Gothic', sans-serif; 
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #008000;
  margin: 1.25rem 0 0.75rem;
  border-left: 5px solid #008000;
  padding-left: 0.5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1.25rem;
}

.headlines-grid,
.grid-berita {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

/* === 2. HEADER & NAVBAR === */

/* --- Wrapper Utama Header --- */
.main-header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- Top Bar (Logo, Search, Profile) --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 1.5rem;
  background-color: #0007ff; /* Latar belakang biru */
  color: white;
}

.logo {
  cursor: pointer;
}

.logo .mojok-logo {
  height: 150px; /* Ukuran besar untuk logo */
  width: auto;
  filter: brightness(0) invert(1); /* Membuat logo menjadi putih */
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- Tombol & Ikon di Top Bar --- */
.btn-submit {
  background: #ffc107;
  color: #212529;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}
.btn-submit:hover { background-color: #e0a800; }

.social-icons { display: flex; gap: 0.5rem; }
.social-icons .circle {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  font-size: 12px; cursor: pointer; color: white;
}
.social-icons .pink { background: #ff69b4; }
.social-icons .black { background: black; }
.social-icons .blue { background: #1da1f2; }
.social-icons .red { background: #ff0000; }

/* --- Search di Top Bar --- */
.search-container { position: relative; }
.search-box { display: flex; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; }
.search-box input { border: none; padding: 0.5rem; outline: none; }
.search-box button { background: #f5f5f5; border: none; padding: 0 0.75rem; cursor: pointer; color: #0056b3; }

/* --- Profile Dropdown --- */
.profile-container { position: relative; }
.profile-pic {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover; cursor: pointer;
  border: 2px solid #fff;
}
.profile-dropdown {
  position: absolute; right: 0; top: 55px;
  background: #1f2937; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 0.5rem; display: flex; flex-direction: column;
  min-width: 180px; z-index: 1001;
}
.profile-dropdown button {
  background: transparent; border: none; text-align: left;
  padding: 0.75rem 1rem; color: #d1d5db; cursor: pointer;
  font-size: 0.9rem; transition: background 0.2s; border-radius: 4px;
}
.profile-dropdown button:hover { background: #374151; color: #fff; }

/* --- Menu Navigasi Bawah (HOME, NASIONAL...) --- */
.navbar-menu {
  display: flex;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.navbar-menu a {
  text-decoration: none;
  color: #0007ff; /* Default: Teks biru */
  font-weight: 500;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease-in-out;
}

.navbar-menu a:hover {
  background-color: #0007ff; /* Hover: Background biru, teks putih */
  color: #ffffff;
}

/* --- Dropdown "LIPUTAN" (FIXED) --- */
.navbar-menu .dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  color: #0007ff;
  padding: 0.75rem 1rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-menu a:hover {
  background-color: #0056b3;
  color: #ffffff;
}

/* === 3. HASIL PENCARIAN (SEARCH DROPDOWN) === */
.search-results-dropdown {
  position: absolute; top: 115%; right: 0;
  width: 320px; background-color: #ffffff;
  border: 1px solid #dbdbdb; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000; max-height: 360px; overflow-y: auto; padding: 0.5rem 0;
}
.search-group-header {
  padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 600;
  color: #8e8e8e; background-color: #fafafa; border-bottom: 1px solid #dbdbdb;
}
.search-result-item {
  display: flex; align-items: center; padding: 0.5rem 1rem;
  transition: background-color 0.2s ease-in-out; cursor: pointer;
}
.search-result-item:hover { background-color: #fafafa; }
.search-result-item.info-text { color: #8e8e8e; justify-content: center; font-style: italic; }
.search-avatar, .search-news-thumb {
  width: 44px; height: 44px; border-radius: 50%;
  margin-right: 0.75rem; object-fit: cover; flex-shrink: 0;
}
.search-news-thumb { border-radius: 4px; }
.search-name { flex-grow: 1; font-weight: 600; font-size: 0.9rem; color: #262626; }
.search-news-details { display: flex; flex-direction: column; }
.search-news-category { font-size: 0.75rem; color: #8e8e8e; text-transform: capitalize; }
.follow-btn {
  background-color: #0095f6; color: white; border: none;
  border-radius: 8px; padding: 7px 16px; font-weight: bold;
  cursor: pointer; font-size: 14px;
}
.follow-btn.following { background-color: #efefef; color: #262626; border: 1px solid #dbdbdb; }

/* === 4. KOMPONEN KARTU BERITA === */
.berita-card, .berita-grid-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.berita-card:hover, .berita-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.berita-card .thumb img, .berita-grid-card .thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.berita-card .info, .berita-grid-card .info { padding: 1rem; }
.berita-card .info h3, .berita-grid-card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.berita-card .info .meta, .berita-grid-card .meta { font-size: 0.85rem; color: #555; }

/* --- Variasi List --- */
.berita-card.list {
  display: flex;
  gap: 1rem;
  border: none;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid #eee;
}
.berita-card.list:hover { transform: none; background: #fafafa; }
.berita-card.list .thumb { flex: 0 0 200px; }
.berita-card.list .thumb img { width: 100%; height: 120px; border-radius: 6px; }
.berita-card.list .info { padding: 0.5rem; }

/* === 5. KOMPONEN LAINNYA === */

/* --- Klasemen --- */
.klasemen-box { background: #fff; border: 1px solid #ddd; padding: 1rem; }
.klasemen-box h3 { margin-top: 0; margin-bottom: 1rem; font-size: 1.1rem; }
.klasemen-box table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.klasemen-box th, .klasemen-box td { border: 1px solid #ddd; padding: 0.5rem; text-align: left; }

/* --- Breadcrumb --- */
.breadcrumb { font-size: 0.9rem; margin-bottom: 1.5rem; color: #555; }
.breadcrumb span[style*="cursor: pointer"] { color: #0056b3; cursor: pointer; }

/* --- Tombol Kembali --- */
.back-btn {
  margin-bottom: 1rem; padding: 0.5rem 1rem;
  border: 1px solid #ddd; background: #f0f0f0;
  cursor: pointer; border-radius: 6px; font-size: 0.9rem;
}
.back-btn:hover { background: #e0e0e0; }

/* --- Popup Notifikasi --- */
.popup-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); display: flex;
  align-items: center; justify-content: center; z-index: 2000;
}
.popup-box {
  background: #fff; padding: 1.5rem 2rem; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); max-width: 360px;
  text-align: center; animation: popupFadeIn 0.3s ease;
}
.popup-icon { font-size: 40px; margin-bottom: 0.75rem; }
.popup-message { font-size: 1rem; margin-bottom: 1rem; color: #333; }
.popup-btn {
  background: #007bff; color: white; border: none; padding: 10px 20px;
  border-radius: 8px; cursor: pointer; transition: background 0.2s;
}
.popup-btn:hover { background: #0056b3; }
.popup-box.success .popup-icon { color: #28a745; }
.popup-box.error .popup-icon { color: #dc3545; }
@keyframes popupFadeIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* === 6. FOOTER === */
.footer {
  background: #000066; color: #fff;
  text-align: center; padding: 1.5rem; margin-top: 2.5rem;
}

/* === 7. RESPONSIVE (MOBILE) === */
@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .hamburger {
    display: block; font-size: 1.8rem; background: none;
    border: none; color: #f9fafb; cursor: pointer;
  }
  .mobile-menu {
    display: flex; position: absolute; top: 65px; right: 1.5rem;
    background: #1f2937; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); flex-direction: column;
    min-width: 180px; padding: 0.5rem; z-index: 999;
    animation: slideDown 0.25s ease-out;
  }
  .mobile-menu a {
    padding: 0.75rem; text-decoration: none; color: #d1d5db;
    border-radius: 6px; transition: background 0.2s ease;
  }
  .mobile-menu a:hover { background: #374151; color: #fff; }
  
  .content-grid { grid-template-columns: 1fr; }
  .berita-card.list { flex-direction: column; }
  .berita-card.list .thumb { flex: auto; width: 100%; }
  .berita-card.list .thumb img { width: 100%; height: 180px; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* src/index.css */

/* src/index.css */

/* === 8. FOOTER (VERSI PERBAIKAN) === */

.site-footer {
  background-color: #272727; /* Biru Gelap */
  color: #d1d5db;
  padding-top: 3rem;
  font-size: 0.9rem;
  position: relative;
  line-height: 1.6;
}

.footer-content {
  /* KUNCI #1: Batasi lebar maksimum dan tengahkan footer */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; /* Beri jarak dari tepi layar */

  /* KUNCI #2: Buat kolom grid lebih fleksibel dan seimbang */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-column h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

/* Kolom 1: Info & Logo */
.footer-info .footer-logo img {
  max-width: 150px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.footer-contact-info p {
  margin: 0;
}
.footer-contact-info p:first-of-type {
  margin-bottom: 1rem;
}


/* Kolom 2 & 3: Links */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Kolom 4: Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Jaga agar tetap 3 kolom */
  gap: 0.75rem;
  align-items: center;
}
.awards-grid img {
  width: 100%;
  border-radius: 4px;
}

/* --- Bagian Bawah Footer (Copyright & Social) --- */
.footer-bottom {
  background-color: #0007ff;
  padding: 1.25rem 0;
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.copyright-text {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: #f97316;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s;
}
.social-links a:hover {
  transform: translateY(-2px);
}

/* --- Tombol Kembali ke Atas --- */
.back-to-top {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #f97316;
  color: #ffffff;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.3s;
}
.back-to-top:hover {
  opacity: 0.8;
}

/* --- Penyesuaian untuk Mobile --- */
@media (max-width: 992px) {
  .footer-content {
    /* Pada layar tablet, buat jadi 2 kolom */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}.profil-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  font-family: sans-serif;
  text-align: center;
}

/* Avatar */
.profil-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  background: #1e88ff;
  color: #fff;
  font-weight: 800;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nama & Bio */
.profil-name {
  font-size: 1.5rem;
  margin: 5px 0;
  color: #1eff29;
  font-weight: 700;
}

.profil-bio {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
}

/* Stats */
.profil-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  justify-content: center;
}

/* Tombol umum */
.profil-btn {
  padding: 8px 16px;
  margin: 8px 0;
  border-radius: 8px;
  background: #eee;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.profil-btn:hover {
  background: #ddd;
  transform: translateY(-2px);
}

/* Tabs */
.profil-tabs {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
}

.profil-tabs button {
  padding: 6px 12px;
  background: transparent;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.profil-tabs .active {
  font-weight: bold;
  border-bottom: 2px solid #1e88ff;
  color: #1e88ff;
}

/* Grid konten */
.profil-content.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* Card */
.profil-card {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: left;
}

.profil-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profil-card p {
  margin: 0 0 8px 0;
}

.profil-card small {
  color: #666;
  font-size: 0.85rem;
}

/* Modal Edit */
.profil-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.profil-modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  text-align: left;
}

.profil-modal-content textarea {
  width: 100%;
  height: 60px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.profil-modal-actions {
  display: flex;
  justify-content: space-between;
}

/* 🔙 Tombol Back */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #1e88ff;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-bottom: 16px;
}

.back-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.back-btn:active {
  transform: scale(0.97);
}
/* ==========================
   LAYOUT UTAMA
========================== */
.news-page {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  font-family: "Segoe UI", Roboto, sans-serif;
}

.news-content {
  flex: 3;
}

.news-sidebar {
  flex: 1;
  min-width: 250px;
}

/* ==========================
   HEADER & META
========================== */
.news-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0.5rem 0 1rem 0;
  line-height: 1.3;
}

.news-category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #e63946;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 4px;
}

.news-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

/* ==========================
   GAMBAR & BODY
========================== */
.news-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.news-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 2rem;
}

/* ==========================
   TOMBOL AKSI
========================== */
.news-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-like,
.btn-share {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-like {
  background: #eee;
}
.btn-like.liked {
  background: #e63946;
  color: #fff;
}
.btn-share {
  background: #1d3557;
  color: #fff;
}

/* ==========================
   COMMENTS ala Instagram
========================== */
/* Semua komentar dasar */
.comment-item {
  margin-bottom: 15px;
}

.comment-main {
  display: flex;
  gap: 10px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-avatar-reply {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 5px;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.comment-date {
  color: gray;
  font-size: 0.8rem;
}

.comment-text {
  margin-bottom: 5px;
}

.comment-actions {
  font-size: 0.8rem;
  color: #555;
  display: flex;
  gap: 10px;
}

.comment-actions span {
  cursor: pointer;
}

.comment-form {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.comment-form input {
  flex: 1;
  padding: 5px;
}

.comment-replies {
  margin-left: 50px; /* menjorok sekali */
  border-left: 1px solid #eee;
  padding-left: 10px;
}

.comment-reply {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}


/* ==========================
   SIDEBAR
========================== */
.news-sidebar ul {
  list-style: none;
  padding: 0;
}

.news-sidebar li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.news-sidebar img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.ep-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.ep-meta {
  font-size: 12px;
  color: #666;
}

.ep-category {
  font-weight: bold;
  color: #d32f2f;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .news-page {
    flex-direction: column;
  }
  .news-sidebar {
    min-width: 100%;
    margin-top: 2rem;
  }
}
/* authorProfile.css */

.author-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.back-btn:hover {
  background-color: #2980b9;
}

.author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 30px;
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3498db;
}

.author-info h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.author-name {
  margin: 4px 0;
  font-size: 16px;
  color: #555;
}

.author-bio {
  font-size: 14px;
  color: #666;
  max-width: 600px;
}

.author-posts {
  margin-top: 30px;
}

.author-posts h3 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 20px;
  color: #333;
}

.author-post-item {
  background-color: #f7f9fc;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  transition: 0.3s;
}
.author-post-item:hover {
  background-color: #e1f0ff;
}

.author-post-item b {
  font-size: 16px;
}

.author-post-item small {
  color: #555;
  font-size: 12px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.post-card {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-4px);
}
.author-page {
  padding: 1rem;
}

.back-btn {
  margin-bottom: 1rem;
  cursor: pointer;
}

.author-header {
  display: flex;
  flex-direction: column; /* pastikan column, bukan row */
  align-items: center;    /* center horizontal */
  text-align: center;
  gap: 12px;
  margin-bottom: 30px;
}

.author-page {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;

  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontal */
}

.author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 20px;
}

.profil-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3498db;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto 30px auto; /* atas 0, horizontal auto, bawah 15px */
}


.author-info h2 {
  margin: 0;
  font-size: 22px;
}

.author-name {
  margin: 4px 0;
  font-size: 16px;
  color: #555;
}

.author-bio {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}


.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.berita-card {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.berita-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.author-page {
  max-width: 950px;
  margin: 0 auto;
  padding: 20px;
}

.loading-text {
  text-align: center;
  font-size: 1.2rem;
  padding: 40px;
}

.author-header {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid #dbdbdb;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.profil-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h2 {
  font-size: 28px;
  margin: 0 0 10px 0;
}

.author-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 16px;
}

.author-bio {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

.author-actions {
  align-self: flex-start;
}

/* Tombol Follow/Following dari CSS utama */
/* Anda bisa copy dari index.css jika belum global */
.follow-btn {
  background-color: #0095f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}
.follow-btn.following {
  background-color: #efefef;
  color: #262626;
  border: 1px solid #dbdbdb;
}

.author-posts h3 {
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.posts-grid {
  display: grid;
  /* Membuat 3 kolom dengan lebar yang sama */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card-info {
  padding: 15px;
  flex-grow: 1;
}

.post-card-info h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  line-height: 1.4;
}

.post-card-info small {
  color: #8e8e8e;
  font-size: 12px;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .author-header {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
  }
  .profil-avatar {
    width: 100px;
    height: 100px;
  }
  .author-actions {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
}

@media (max-width: 480px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}
/* === CSS UNTUK MODAL LIST PENGGUNA === */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background-color: white;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #dbdbdb;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #8e8e8e;
}

.modal-body {
  padding: 8px 0;
  overflow-y: auto;
}

.user-list-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
}

.user-list-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.user-list-item .user-name {
  flex-grow: 1;
  font-weight: 600;
}

.user-list-item .follow-btn {
  font-size: 13px;
  padding: 6px 12px;
}

.author-stats .clickable-stat {
  cursor: pointer;
}
.author-stats .clickable-stat:hover {
  text-decoration: underline;
}
/* src/authorProfile.css */

/* Jadikan container utama sebagai acuan posisi */
.author-page {
  position: relative;
  padding-top: 50px; /* Beri ruang di atas agar konten tidak tertutup tombol */
}

/* Tombol Kembali yang Modern */
.back-btn {
  position: absolute; /* Mengambang di atas konten lain */
  top: 10px;
  left: 0;
  
  /* Styling Tombol */
  background-color: #f0f2f5; /* Warna abu-abu muda seperti di banyak aplikasi */
  border: none;
  border-radius: 50%; /* Membuatnya bulat sempurna */
  width: 40px;
  height: 40px;
  font-size: 24px; /* Ukuran panah */
  font-weight: bold;
  color: #333;
  cursor: pointer;
  
  /* Efek visual */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease-in-out, transform 0.1s ease;
}

.back-btn:hover {
  background-color: #e4e6eb; /* Sedikit lebih gelap saat disentuh mouse */
}

.back-btn:active {
  transform: scale(0.95); /* Efek ditekan */
}


/* src/auth.css */

/* Layout Utama Halaman Penuh */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f0f2f5; /* Warna latar sedikit abu-abu */
  font-family: sans-serif;
}

/* Kotak Form di Tengah */
.auth-box {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.auth-box h1 {
  margin-top: 0;
  margin-bottom: 2rem;
  color: #2c3e50; /* Warna biru tua */
  font-size: 1.8rem;
}

/* Styling Form */
.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-box input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box; /* Penting agar padding tidak merusak layout */
}

/* Tombol Utama */
.auth-box .btn-primary {
  background-color: #3498db; /* Warna biru */
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.auth-box .btn-primary:hover {
  background-color: #2980b9; /* Warna biru lebih gelap saat hover */
}

.auth-box .btn-primary:disabled {
  background-color: #bdc3c7; /* Warna abu-abu saat loading */
  cursor: not-allowed;
}

/* Link Bantuan (Lupa Password & Pindah Form) */
.auth-forgot-password {
  text-align: right;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.auth-switch {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.auth-forgot-password a,
.auth-switch a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.auth-forgot-password a:hover,
.auth-switch a:hover {
  text-decoration: underline;
}

/* --- Styling untuk Popup Notifikasi --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.popup-header {
  margin-bottom: 1rem;
}

.popup-icon {
  font-size: 3rem;
}

.popup-message {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
}

.popup-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}