/* ============================================================
   FORSEKDESI JAWA TENGAH - Premium Stylesheet
   Forum Sekretaris Desa Jawa Tengah
   ============================================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-ultra-light: #dbeafe;
  --gold: #d4a017;
  --gold-light: #f5d77a;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #f59e0b;
  --dark: #1e293b;
  --body-bg: #f0f4ff;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-md: 0 6px 12px -2px rgba(0,0,0,0.1), 0 3px 7px -3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
  --sidebar-width: 260px;
  --navbar-height: 70px;
}

/* ===== BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--body-bg);
  color: var(--dark);
  line-height: 1.7;
  font-size: 0.95rem;
  overflow-x: hidden;
}

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

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

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

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar-main {
  background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(30, 58, 138, 0.97) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  border-bottom: 3px solid var(--gold);
  transition: var(--transition);
  z-index: 1040;
}

.navbar-main.navbar-scrolled {
  padding: 0.4rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
  border-bottom-color: var(--gold-light);
}

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

.navbar-main .navbar-brand .brand-accent {
  color: var(--gold);
  font-weight: 300;
}

.navbar-main .navbar-brand img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar-main .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 1rem !important;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

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

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

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
  width: 70%;
}

.navbar-main .dropdown-menu {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
  animation: dropdownFade 0.2s ease;
  border-top: 3px solid var(--primary);
}

.navbar-main .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.navbar-main .dropdown-item:hover {
  background: var(--primary-ultra-light);
  color: var(--primary-dark);
}

.navbar-main .dropdown-item i {
  width: 24px;
  color: var(--primary);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.3) !important;
  padding: 0.35rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(212,160,23,0.4);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-title .text-gold {
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.8;
}

.hero-search {
  max-width: 500px;
  margin-top: 2rem;
}

.hero-search .form-control {
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.hero-search .form-control::placeholder {
  color: rgba(255,255,255,0.6);
}

.hero-search .form-control:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 4px rgba(212,160,23,0.2);
}

.hero-search .btn {
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.hero-shapes .shape-1 {
  width: 200px;
  height: 200px;
  background: var(--gold);
  top: 10%;
  right: 5%;
  animation: float 6s ease-in-out infinite;
}

.hero-shapes .shape-2 {
  width: 100px;
  height: 100px;
  background: var(--white);
  bottom: 20%;
  right: 15%;
  animation: float 8s ease-in-out infinite 2s;
}

.hero-shapes .shape-3 {
  width: 150px;
  height: 150px;
  background: var(--gold-light);
  top: 40%;
  right: 25%;
  animation: float 7s ease-in-out infinite 1s;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  margin: 12px auto 0;
  border-radius: 4px;
  transition: var(--transition);
}

.section-title:hover::after {
  width: 100px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-title-left {
  text-align: left;
}

.section-title-left::after {
  margin: 12px 0 0;
}

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: currentColor;
  opacity: 0.04;
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: var(--transition);
}

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

.stat-card:hover::before {
  width: 130px;
  height: 130px;
  opacity: 0.07;
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-card .stat-info {
  flex: 1;
}

.stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card.stat-berita {
  border-left-color: var(--primary);
  color: var(--primary);
}

.stat-card.stat-berita .stat-icon {
  background: var(--primary-ultra-light);
  color: var(--primary);
}

.stat-card.stat-galeri {
  border-left-color: var(--green);
  color: var(--green);
}

.stat-card.stat-galeri .stat-icon {
  background: #dcfce7;
  color: var(--green);
}

.stat-card.stat-forum {
  border-left-color: var(--gold);
  color: var(--gold);
}

.stat-card.stat-forum .stat-icon {
  background: #fef9c3;
  color: var(--gold);
}

.stat-card.stat-usulan {
  border-left-color: var(--red);
  color: var(--red);
}

.stat-card.stat-usulan .stat-icon {
  background: #fee2e2;
  color: var(--red);
}

.stat-card .stat-number {
  color: var(--dark);
}

/* ===== BERITA / NEWS CARDS ===== */
.berita-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.berita-card .berita-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.berita-card .berita-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.berita-card:hover .berita-img img {
  transform: scale(1.08);
}

.berita-card .berita-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.berita-card .berita-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.berita-card .berita-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.berita-card .berita-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-fast);
}

.berita-card .berita-title:hover {
  color: var(--primary);
}

.berita-card .berita-excerpt {
  color: var(--gray-500);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
}

.berita-card .berita-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  padding-top: 0.75rem;
  margin-top: auto;
}

.berita-card .berita-meta i {
  margin-right: 4px;
}

/* ===== GALERI GRID ===== */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.galeri-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeri-item:hover img {
  transform: scale(1.1);
}

.galeri-item .galeri-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 30%, rgba(30, 58, 138, 0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: var(--transition);
}

.galeri-item:hover .galeri-overlay {
  opacity: 1;
}

.galeri-overlay .galeri-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 2.5rem;
  color: var(--white);
  transition: var(--transition);
  opacity: 0;
}

.galeri-item:hover .galeri-overlay .galeri-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.galeri-overlay .galeri-title {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.galeri-item:hover .galeri-overlay .galeri-title {
  transform: translateY(0);
}

/* ===== PENGURUS CARDS ===== */
.pengurus-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pengurus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pengurus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(26,86,219,0.15);
}

.pengurus-card .pengurus-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.pengurus-card:hover .pengurus-foto {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(212,160,23,0.2), 0 4px 15px rgba(0,0,0,0.1);
}

.pengurus-card .pengurus-foto-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
  background: var(--primary-ultra-light);
  font-size: 2.5rem;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pengurus-card .pengurus-nama {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.pengurus-card .pengurus-jabatan {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.pengurus-card .pengurus-periode {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

/* ===== AUTH CARD (GLASSMORPHISM) ===== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,0.2), transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

.auth-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  animation: slideUp 0.5s ease;
}

.auth-card .auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .auth-header h2 {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.auth-card .auth-header p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.auth-card .auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

/* ===== DASHBOARD SIDEBAR ===== */
.dashboard-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--primary-dark) 0%, #152e6b 50%, var(--primary) 100%);
  color: var(--white);
  z-index: 1050;
  overflow-y: auto;
  overflow-x: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.sidebar-header .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.sidebar-header .sidebar-brand img {
  height: 36px;
  width: auto;
}

.sidebar-header .sidebar-brand .brand-text-sm {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
  display: block;
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.sidebar-nav .nav-section {
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

.sidebar-nav .sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 1.25rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
  border-left: 3px solid transparent;
  margin: 2px 0;
}

.sidebar-nav .sidebar-link i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .sidebar-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-left-color: rgba(212,160,23,0.5);
}

.sidebar-nav .sidebar-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border-left-color: var(--gold);
  font-weight: 500;
}

.sidebar-nav .sidebar-link.active i {
  color: var(--gold-light);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.sidebar-user .user-info {
  overflow: hidden;
}

.sidebar-user .user-name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user .user-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: capitalize;
}

/* ===== DASHBOARD CONTENT AREA ===== */
.dashboard-content {
  margin-left: var(--sidebar-width);
  padding: 30px;
  min-height: 100vh;
  background: var(--body-bg);
  transition: var(--transition);
}

.dashboard-header {
  margin-bottom: 1.5rem;
}

.dashboard-header .page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.dashboard-header .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.dashboard-header .breadcrumb-item a {
  color: var(--primary);
}

.dashboard-header .breadcrumb-item.active {
  color: var(--gray-500);
}

/* Dashboard Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(212,160,23,0.2), transparent 70%);
  border-radius: 50%;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
}

.welcome-banner h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 2;
}

.welcome-banner p {
  opacity: 0.85;
  font-size: 0.9rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.welcome-banner .welcome-date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* ===== SIDEBAR OVERLAY (Mobile) ===== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1049;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

body.sidebar-active .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1060;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background: var(--primary-dark);
}

/* ===== FORUM CARDS ===== */
.forum-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-light);
  transition: var(--transition);
  position: relative;
}

.forum-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary);
}

.forum-card-pinned {
  border-left-color: var(--gold) !important;
  border-top: 2px solid var(--gold-light);
  background: linear-gradient(135deg, #fffdf5, var(--white));
}

.forum-card-pinned:hover {
  border-left-color: var(--gold) !important;
}

.forum-card .forum-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

.forum-card .forum-title a {
  color: inherit;
  text-decoration: none;
}

.forum-card .forum-title a:hover {
  color: var(--primary);
}

.forum-card .forum-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.forum-card .forum-author .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.forum-card .forum-preview {
  color: var(--gray-500);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.forum-card .forum-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.forum-card .forum-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.forum-card .forum-meta .meta-item i {
  font-size: 0.9rem;
}

/* ===== USULAN CARDS ===== */
.usulan-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 5px solid var(--gray-300);
  transition: var(--transition);
  position: relative;
}

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

.usulan-card.priority-tinggi {
  border-left-color: var(--red);
}

.usulan-card.priority-sedang {
  border-left-color: var(--gold);
}

.usulan-card.priority-rendah {
  border-left-color: var(--green);
}

.usulan-card .usulan-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.usulan-card .usulan-title a {
  color: inherit;
  text-decoration: none;
}

.usulan-card .usulan-title a:hover {
  color: var(--primary);
}

.usulan-card .usulan-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.usulan-card .usulan-preview {
  color: var(--gray-500);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.usulan-card .usulan-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  flex-wrap: wrap;
}

/* ===== CUSTOM BUTTONS ===== */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.5s;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.4);
}

.btn-primary-custom:hover::before {
  left: 100%;
}

.btn-primary-custom:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  color: var(--primary-dark);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(212,160,23,0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #c49515, var(--gold));
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,160,23,0.4);
}

.btn-outline-primary-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
  transform: translateY(-2px);
}

.btn-outline-danger {
  transition: var(--transition);
}

.btn-outline-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

/* ===== CUSTOM BADGES ===== */
.badge-kabupaten {
  background: var(--primary-ultra-light);
  color: var(--primary-dark);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-status-pending {
  background: #fef3c7;
  color: #92400e;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

.badge-status-diproses {
  background: var(--primary-ultra-light);
  color: var(--primary-dark);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

.badge-status-selesai {
  background: #dcfce7;
  color: #166534;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

.badge-status-ditolak {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

.badge-priority-tinggi {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-priority-sedang {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-priority-rendah {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pinned {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary-dark);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.73rem;
  font-weight: 600;
}

.badge-locked {
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.73rem;
  font-weight: 600;
}

.badge-admin {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.73rem;
  font-weight: 600;
}

.badge-kabkota {
  background: #e0f2fe;
  color: #075985;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.73rem;
  font-weight: 600;
}

.badge-published {
  background: #dcfce7;
  color: #166534;
}

.badge-draft {
  background: #fef3c7;
  color: #92400e;
}

/* ===== MODERN TABLES ===== */
.table-modern-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-modern {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table-modern thead th {
  background: var(--primary-ultra-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  border: none;
  white-space: nowrap;
}

.table-modern tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  vertical-align: middle;
}

.table-modern tbody tr {
  transition: var(--transition-fast);
}

.table-modern tbody tr:hover {
  background: var(--primary-ultra-light);
}

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

/* ===== MODERN FORMS ===== */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
  background-color: var(--white);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-text {
  font-size: 0.8rem;
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.input-group .form-control {
  border-right: none;
}

.input-group .input-group-text {
  border: 2px solid var(--gray-200);
  border-left: none;
  background: var(--gray-100);
  color: var(--gray-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== CUSTOM PAGINATION ===== */
.pagination-custom {
  gap: 5px;
}

.pagination-custom .page-link {
  border-radius: var(--radius-sm);
  border: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.pagination-custom .page-link:hover {
  background: var(--primary-ultra-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pagination-custom .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.pagination-custom .page-item.disabled .page-link {
  background: var(--gray-100);
  color: var(--gray-400);
  box-shadow: none;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.page-header .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

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

.page-header .breadcrumb-item.active {
  color: var(--gold-light);
}

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

/* ===== FOOTER ===== */
.footer-main {
  background: linear-gradient(180deg, var(--primary-dark) 0%, #0f2557 100%);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 0;
}

.footer-main h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-main h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.footer-main a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-main a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

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

.footer-main .footer-links li a i {
  width: 20px;
  color: var(--gold);
  margin-right: 8px;
}

.footer-bottom {
  background: rgba(0,0,0,0.15);
  padding: 1rem 0;
  margin-top: 2rem;
  border-top: 2px solid var(--gold);
  font-size: 0.85rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  margin: 0 5px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
  padding-left: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.5s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.5s ease forwards;
}

.animate-bounce-in {
  animation: bounceIn 0.6s ease forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ===== FLASH MESSAGES ===== */
.flash-message {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 320px;
  max-width: 450px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInRight 0.4s ease;
  border-left: 4px solid var(--primary);
}

.flash-message.flash-success {
  border-left-color: var(--green);
}

.flash-message.flash-danger {
  border-left-color: var(--red);
}

.flash-message.flash-warning {
  border-left-color: var(--orange);
}

.flash-message.flash-info {
  border-left-color: var(--primary);
}

.flash-message .flash-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.flash-message.flash-success .flash-icon { color: var(--green); }
.flash-message.flash-danger .flash-icon { color: var(--red); }
.flash-message.flash-warning .flash-icon { color: var(--orange); }
.flash-message.flash-info .flash-icon { color: var(--primary); }

.flash-message .flash-content {
  flex: 1;
  font-size: 0.9rem;
}

.flash-message .flash-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: var(--transition-fast);
}

.flash-message .flash-close:hover {
  color: var(--dark);
}

.flash-message.fade-out {
  animation: slideOutRight 0.4s ease forwards;
}

@keyframes slideOutRight {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.spinner-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(26,86,219,0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(26,86,219,0.5);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* ===== LIGHTBOX / MODAL ===== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
  cursor: pointer;
}

.lightbox-modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: bounceIn 0.4s ease;
  cursor: auto;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== COMMENT SECTION ===== */
.comment-section {
  margin-top: 2rem;
}

.comment-section .comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.comment-section .comment-header h5 {
  font-weight: 600;
  margin-bottom: 0;
}

.comment-section .comment-count {
  background: var(--primary-ultra-light);
  color: var(--primary);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
  animation: fadeIn 0.4s ease;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item .comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.comment-item .comment-body {
  flex: 1;
}

.comment-item .comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.comment-item .comment-author .author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.comment-item .comment-date {
  font-size: 0.78rem;
  color: var(--gray-400);
}

.comment-item .comment-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-600);
}

.comment-item .comment-actions {
  margin-top: 0.5rem;
}

/* ===== QUICK ACTION CARDS ===== */
.quick-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
  margin-bottom: 0.75rem;
  border: 1px solid var(--gray-100);
}

.quick-action-card:hover {
  background: var(--primary-ultra-light);
  color: var(--primary-dark);
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-ultra-light);
}

.quick-action-card .action-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.quick-action-card:hover .action-icon {
  transform: scale(1.1);
}

.quick-action-card .action-label {
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===== CARD COMMON ===== */
.card-custom {
  background: var(--white);
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card-custom:hover {
  box-shadow: var(--shadow-lg);
}

.card-custom .card-header-custom {
  background: var(--white);
  border-bottom: 2px solid var(--gray-100);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-custom .card-header-custom h5 {
  font-weight: 600;
  margin-bottom: 0;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

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

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-state .empty-icon {
  font-size: 4rem;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.empty-state .empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.empty-state .empty-text {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CHARACTER COUNTER ===== */
.char-counter-wrapper {
  position: relative;
}

.char-counter {
  text-align: right;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 4px;
  transition: var(--transition-fast);
}

.char-counter.warning {
  color: var(--orange);
  font-weight: 500;
}

.char-counter.danger {
  color: var(--red);
  font-weight: 600;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-tabs .filter-tab {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 2px solid var(--gray-200);
  text-decoration: none;
  transition: var(--transition);
}

.filter-tabs .filter-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--primary-ultra-light);
}

.filter-tabs .filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

/* ===== TOPIC DETAIL ===== */
.topic-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.topic-detail-card .topic-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.topic-detail-card .topic-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.topic-detail-card .topic-author .author-avatar-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.topic-detail-card .topic-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.topic-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  body.sidebar-active .dashboard-sidebar {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
  }

  .dashboard-content {
    margin-left: 0;
    padding: 20px 15px;
    padding-top: 60px;
  }

  .sidebar-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-section {
    min-height: 450px;
  }

  .stat-card {
    margin-bottom: 1rem;
  }

  .stat-card .stat-number {
    font-size: 1.8rem;
  }

  .welcome-banner {
    padding: 1.5rem;
  }

  .topic-detail-card {
    padding: 1.25rem;
  }

  .forum-card {
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-section {
    min-height: 400px;
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .berita-card .berita-img {
    height: 160px;
  }

  .pengurus-card {
    padding: 1.5rem 1rem;
  }

  .pengurus-card .pengurus-foto,
  .pengurus-card .pengurus-foto-placeholder {
    width: 90px;
    height: 90px;
  }

  .stat-card .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .stat-card .stat-number {
    font-size: 1.5rem;
  }

  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .flash-message {
    left: 15px;
    right: 15px;
    min-width: auto;
    max-width: none;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .dashboard-header .page-title {
    font-size: 1.3rem;
  }

  .table-modern-wrapper {
    overflow-x: auto;
  }

  .forum-card .forum-meta {
    gap: 0.75rem;
  }

  .topic-detail-card .topic-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-section {
    min-height: 350px;
  }

  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: var(--radius-lg);
  }

  .galeri-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary-custom,
  .btn-gold,
  .btn-outline-primary-custom {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .quick-action-card {
    padding: 0.65rem 0.85rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .comment-item {
    gap: 0.75rem;
  }

  .comment-item .comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .dashboard-sidebar,
  .sidebar-toggle,
  .sidebar-overlay,
  .navbar-main,
  .back-to-top,
  .flash-message,
  .footer-main,
  .btn,
  .topic-actions,
  .comment-actions {
    display: none !important;
  }

  .dashboard-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  body {
    background: var(--white) !important;
    color: #000 !important;
  }

  .card-custom,
  .stat-card,
  .forum-card,
  .usulan-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.bg-gold { background-color: var(--gold) !important; }
.border-gold { border-color: var(--gold) !important; }
.text-primary-custom { color: var(--primary) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-primary-ultra-light { background-color: var(--primary-ultra-light) !important; }

.fw-semibold { font-weight: 600; }

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer loading effect */
.shimmer {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Status indicator dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.status-dot.active { background: var(--green); }
.status-dot.inactive { background: var(--red); }

/* Image preview container */
.img-preview-container {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px dashed var(--gray-300);
  margin-top: 0.75rem;
  display: none;
}

.img-preview-container.has-image {
  display: block;
  border-style: solid;
  border-color: var(--primary-light);
}

.img-preview-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-ultra-light);
}

.drop-zone .drop-zone-icon {
  font-size: 2.5rem;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.drop-zone .drop-zone-text {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Search box for tables */
.search-box {
  position: relative;
  max-width: 300px;
}

.search-box .form-control {
  padding-left: 2.5rem;
  border-radius: 50px;
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

/* Modal customization */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 2px solid var(--gray-100);
  padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
  font-weight: 600;
  color: var(--primary-dark);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 2px solid var(--gray-100);
  padding: 1rem 1.5rem;
}

/* Action buttons group */
.action-btns {
  display: flex;
  gap: 6px;
}

.action-btns .btn {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

/* Custom toggle switch */
.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
  cursor: pointer;
}

.form-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}
