/* ===== VARIABLES & RESET ===== */
:root {
  --primary: #0a1931; /* Biru Tua */
  --secondary: #d4af37; /* Gold */
  --accent: #185adb; /* Biru Cerah */
  --light: #f8f9fa;
  --dark: #212529; /* Hitam */
  --gray: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #0a1931 0%, #0d1b3e 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  border: 2px solid var(--secondary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ===== HEADER ===== */
.top-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b3e 100%);
  color: var(--secondary);
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact span {
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-contact i,
.header-social i {
  color: var(--secondary);
}

.header-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--secondary);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Main Navigation */
.main-nav {
  background: rgba(10, 25, 49, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-placeholder {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.logo-placeholder h2 {
  font-size: 28px;
  margin-bottom: 2px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-placeholder p {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

/* PERBAIKAN NAVIGASI: HAPUS GARIS BAWAH DAN WARNA TETAP */
.nav-link {
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  letter-spacing: 0.5px;
}

/* WARNA KUNING HANYA SAAT HOVER */
.nav-link:hover {
  color: var(--secondary);
}

/* LINK AKTIF TETAP PUTIH (TIDAK ADA GARIS BAWAH) */
.nav-link.active {
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 25, 49, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border-radius: var(--radius);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--secondary);
  padding-left: 25px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--secondary);
  margin: 3px 0;
  transition: var(--transition);
}

.judul {
  text-align: center;
  font-size: 45px;
  font-weight: 800;
  color: var(--secondary);
  margin-top: 40px;
  margin-bottom: 30px;
}

/* KOTAK BESAR DI BELAKANG GRID */
.kerjasama-bg {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--primary);
  padding: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
}

/* GRID */
.kerjasama-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

/* WRAPPER UNTUK BACKGROUND BELAKANG */
.card-wrap {
  position: relative;
}

/* BACKGROUND BELAKANG CARD */
.card-bg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  height: 100%;
  background: #dcdcff;
  border-radius: 15px;
  z-index: 1;
}

/* CARD LOGO */
.logo-box {
  position: relative;
  background: #fff;
  border: 4px solid #e7e7e7;
  padding: 10px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
  transition: 0.3s;
  z-index: 2;
}

.logo-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

/* LIGHTBOX ZOOM */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  animation: zoomPop 0.25s ease;
}

@keyframes zoomPop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== FOOTER ===== */
.footer-main {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1931 100%);
  color: var(--white);
  padding: 60px 0 30px;
  border-top: 2px solid var(--secondary);
  position: relative;
}

.footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(212,175,55,0.03)" points="0,0 1000,1000 0,1000"/></svg>');
  background-size: cover;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--secondary);
  font-weight: 700;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
}

.footer-desc {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 3px;
  min-width: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.footer-col ul li a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: var(--transition);
}

.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-form textarea {
  resize: vertical;
  min-height: 100px;
}

.footer-bottom {
  background: rgba(10, 25, 49, 0.9);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 15px;
}

@media (max-width: 992px) {
  /* ===== FIX MOBILE NAVBAR ===== */
  .nav-toggle {
    display: flex !important;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 300px !important;
    height: 100vh !important;
    background: rgba(10, 25, 49, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    padding: 100px 20px 20px !important;
    transition: left 0.3s ease !important;
    z-index: 1000 !important;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3) !important;
    overflow-y: auto !important;
    border-top: none !important;
    transform: none !important;
  }

  .nav-menu.active {
    left: 0 !important;
  }

  /* Overlay untuk mobile */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Dropdown styling untuk mobile */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > .nav-link {
    justify-content: space-between;
  }

  .nav-dropdown .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(212, 175, 55, 0.1) !important;
    border: none !important;
    margin: 5px 0 0 15px !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
    display: block !important;
    width: 100%;
    min-width: auto !important;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 300px !important;
  }

  .nav-dropdown .dropdown-menu li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
  }

  .nav-dropdown .dropdown-menu li:last-child {
    border-bottom: none !important;
  }

  .nav-dropdown .dropdown-menu a {
    padding: 10px 15px !important;
    padding-left: 25px !important;
  }

  /* Chevron animation */
  .nav-dropdown > .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
  }

  .nav-dropdown.active > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* Nav toggle animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
  }

  /* Link styling untuk mobile */
  .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
    width: 100%;
  }

  .nav-link i.fa-chevron-down {
    font-size: 12px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
  }

  .slide-content h1 {
    font-size: 36px;
  }

  .about-stats {
    justify-content: center;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-mission-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .judul {
    font-size: 28px;
  }

  .kerjasama-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .logo-box {
    height: 150px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== EDIT MODE STYLES FOR KERJASAMA ===== */

/* Styles untuk mode edit */
.edit-mode .kerjasama-container {
  position: relative;
  min-height: 200px;
}

.edit-mode .card-wrap {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.edit-mode .card-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Overlay untuk edit mode */
.edit-mode .logo-box {
  position: relative;
}

.edit-mode .logo-box::after {
  content: "✏️ Klik untuk ganti logo";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 11px; /* 15px - 4px border */
  font-size: 14px;
  font-weight: 500;
}

.edit-mode .logo-box:hover::after {
  opacity: 1;
}

/* Partner info yang bisa diedit */
.partner-info {
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.edit-mode .partner-name {
  cursor: text;
  padding: 5px;
  border-radius: 4px;
  min-height: 30px;
  transition: background 0.2s;
}

.edit-mode .partner-name:hover {
  background: rgba(212, 175, 55, 0.1);
}

.edit-mode .partner-desc {
  cursor: text;
  padding: 5px;
  border-radius: 4px;
  min-height: 60px;
  transition: background 0.2s;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.edit-mode .partner-desc:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Partner link yang bisa diedit */
.partner-link {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 4px;
  font-size: 13px;
  color: var(--secondary);
  text-decoration: none;
}

.edit-mode .partner-link {
  cursor: text;
  border: 1px dashed rgba(212, 175, 55, 0.3);
}

.edit-mode .partner-link:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* Hero section yang bisa diedit */
.edit-mode .page-hero h1,
.edit-mode .page-hero p {
  cursor: text;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.edit-mode .page-hero h1:hover,
.edit-mode .page-hero p:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Section title yang bisa diedit */
.edit-mode .section-title,
.edit-mode .section-subtitle {
  cursor: text;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.2s;
  display: inline-block;
}

.edit-mode .section-title:hover,
.edit-mode .section-subtitle:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Animasi untuk kartu saat di-drag */
.card-wrap.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

/* Placeholder untuk drag and drop */
.drag-placeholder {
  border: 2px dashed var(--secondary);
  background: rgba(212, 175, 55, 0.05);
  border-radius: 15px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-weight: 500;
}

/* Modal edit partner */
.partner-edit-form {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b3e 100%);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  width: 90%;
  max-width: 500px;
  border: 2px solid var(--secondary);
  color: var(--white);
}

.partner-edit-form h3 {
  color: var(--secondary);
  margin-bottom: 25px;
  font-size: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.form-actions button {
  flex: 1;
  min-width: 120px;
}

/* Tombol edit controls */
.edit-controls {
  position: fixed;
  top: 120px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edit-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  white-space: nowrap;
  min-width: 180px;
}

.edit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.edit-btn.upload {
  background: linear-gradient(135deg, var(--accent) 0%, #2d6cff 100%);
  color: var(--white);
}

.edit-btn.upload:hover {
  box-shadow: 0 8px 25px rgba(24, 90, 219, 0.4);
}

.edit-btn.reorder {
  background: linear-gradient(135deg, #6f42c1 0%, #8a63d2 100%);
  color: var(--white);
}

.edit-btn.reorder:hover {
  box-shadow: 0 8px 25px rgba(111, 66, 193, 0.4);
}

.edit-btn.add {
  background: linear-gradient(135deg, #ffc107 0%, #ffd54f 100%);
  color: var(--dark);
}

.edit-btn.add:hover {
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.edit-btn.delete {
  background: linear-gradient(135deg, #dc3545 0%, #e35d6a 100%);
  color: var(--white);
}

.edit-btn.delete:hover {
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Responsive untuk edit controls */
@media (max-width: 768px) {
  .edit-controls {
    top: 80px;
    right: 10px;
    gap: 8px;
  }

  .edit-btn {
    padding: 10px 15px;
    font-size: 13px;
    min-width: 150px;
  }

  .partner-edit-form {
    width: 95%;
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* Overlay untuk modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
}

/* No partners state */
.no-partners {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
  grid-column: 1 / -1;
}

.no-partners i {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-partners h3 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 24px;
}

/* Animasi untuk save button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

#savePartnersBtn {
  animation: pulse 2s infinite;
}

/* Style untuk partner yang sedang di-edit */
.partner-card.editing {
  border: 2px solid var(--secondary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* Tambahan untuk drag handle */
.drag-handle {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--secondary);
  cursor: move;
  z-index: 3;
  background: rgba(10, 25, 49, 0.9);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.edit-mode .card-wrap:hover .drag-handle {
  opacity: 1;
}

/* Warning untuk data kosong */
.data-warning {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  padding: 15px;
  margin: 20px 0;
  color: var(--secondary);
  text-align: center;
  font-size: 14px;
}

/* Success message */
.success-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  color: white;
  padding: 15px 25px;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  display: none;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Error message */
.error-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #dc3545 0%, #e35d6a 100%);
  color: white;
  padding: 15px 25px;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  display: none;
}

/* Loading spinner */
.loading-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: rgba(10, 25, 49, 0.9);
  padding: 30px;
  border-radius: var(--radius);
  border: 2px solid var(--secondary);
  text-align: center;
  color: var(--secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(212, 175, 55, 0.3);
  border-top: 4px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Helper classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.flex {
  display: flex !important;
}
