/* ============================================================
   MGMP INFORMATIKA MA JAWA TIMUR
   Design: Modern Tech Education | Dark Navy + Electric Teal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary:      #0a2540;
  --primary-mid:  #0d3060;
  --accent:       #00c9a7;
  --accent-2:     #0ea5e9;
  --accent-3:     #8b5cf6;
  --danger:       #ef4444;
  --warning:      #f59e0b;
  --success:      #10b981;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --bg:           #f8fafc;
  --bg-card:      #ffffff;
  --border:       #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.12);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --transition:   .25s cubic-bezier(.4,0,.2,1);
  --font-head:    'Sora', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --text-light:   #64748b;
  --bg:           #0f172a;
  --bg-card:      #1e293b;
  --border:       #334155;
  --border-light: #1e293b;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow:       0 4px 20px rgba(0,0,0,.3);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.4);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-2); }

code, pre {
  font-family: var(--font-mono);
  font-size: .875rem;
  background: var(--border-light);
  border-radius: var(--radius-sm);
}

/* ===== NAVBAR ===== */
.navbar-main {
  background: var(--primary) !important;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.topbar {
  background: var(--primary-mid);
  padding: 6px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar a { color: rgba(255,255,255,.7); }
.topbar a:hover { color: var(--accent); }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-text .title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  line-height: 1;
}

.brand-text .sub {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  line-height: 1;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  padding: 20px 14px !important;
  position: relative;
  transition: color var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.dropdown-menu {
  background: var(--primary);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  margin-top: 0;
}

.dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  padding: 10px 18px;
  transition: all var(--transition);
  font-family: var(--font-head);
}

.dropdown-item:hover {
  background: rgba(0,201,167,.1);
  color: var(--accent);
  padding-left: 24px;
}

/* ===== HERO / SLIDER ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, #1a1f5e 100%);
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 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='%2300c9a7' 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");
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,201,167,.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,201,167,.15);
  border: 1px solid rgba(0,201,167,.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInDown .6s ease;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  animation: fadeInUp .6s ease .1s both;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
  animation: fadeInUp .6s ease .2s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeInUp .6s ease .3s both;
}

.hero-stat .num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

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

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

/* ===== NEWS CARDS ===== */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
}

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

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

.news-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .img-wrap img { transform: scale(1.05); }

.news-card .badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: #fff;
}

.news-card .body { padding: 20px; }

.news-card .title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .title a { color: var(--text); }
.news-card .title a:hover { color: var(--accent); }

.news-card .meta {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  margin-top: 10px;
}

.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-top: 14px;
}

/* ===== AGENDA CARDS ===== */
.agenda-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.agenda-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.agenda-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.agenda-date {
  text-align: center;
  min-width: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
}

.agenda-date .day {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.agenda-date .month {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .7;
}

.agenda-info .title {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.agenda-info .detail {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #00a38a);
  color: #fff !important;
  padding: 10px 24px;
  box-shadow: 0 4px 15px rgba(0,201,167,.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,201,167,.4);
  color: #fff !important;
}

.btn-primary-custom {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
}

.btn-primary-custom:hover {
  background: var(--primary-mid);
  transform: translateY(-2px);
}

.btn-outline-accent {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 9px 22px;
  background: transparent;
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff !important;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0,201,167,.08) 0%, transparent 60%);
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item .num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-item .label {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 6px;
}

/* ===== VIDEO CARDS ===== */
.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,37,64,.5);
}

.play-btn i {
  font-size: 2.5rem;
  color: #fff;
  background: rgba(0,201,167,.9);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 4px;
  transition: transform var(--transition);
}

.video-card:hover .play-btn i { transform: scale(1.15); }

/* ===== MATERI CARDS ===== */
.materi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all var(--transition);
}

.materi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.materi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ===== MEMBER CARDS ===== */
.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

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

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 12px;
  display: block;
}

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

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

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

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

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,.8), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-size: .85rem;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
  font-size: .9rem;
}

.footer h5 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.footer a { color: rgba(255,255,255,.6); }
.footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  margin-top: 40px;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6) !important;
  transition: all var(--transition);
  font-size: .9rem;
}

.social-link:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ===== ADMIN SIDEBAR ===== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 260px;
  background: var(--primary);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.sidebar-section {
  padding: 12px 20px 6px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,.65);
  font-size: .87rem;
  font-family: var(--font-head);
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  border-radius: 0;
}

.sidebar-link i { width: 18px; text-align: center; font-size: .9rem; }

.sidebar-link:hover,
.sidebar-link.active {
  color: #fff;
  background: rgba(255,255,255,.06);
  padding-left: 26px;
}

.sidebar-link.active {
  color: var(--accent);
  background: rgba(0,201,167,.1);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.sidebar-link .badge {
  margin-left: auto;
  font-size: .7rem;
}

/* ===== ADMIN MAIN CONTENT ===== */
.admin-main {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.admin-topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.admin-content {
  padding: 28px 24px;
  flex: 1;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

/* ===== STATS CARDS (ADMIN) ===== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-info .num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.stat-info .label {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== TABLES ===== */
.table-custom {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.table-custom .table {
  margin: 0;
  color: var(--text);
}

.table-custom thead th {
  background: var(--primary);
  color: rgba(255,255,255,.8);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: none;
  padding: 14px 16px;
}

.table-custom tbody td {
  padding: 14px 16px;
  border-color: var(--border);
  vertical-align: middle;
  font-size: .9rem;
}

.table-custom tbody tr:hover td {
  background: var(--border-light);
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }

.form-label {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}

.form-control, .form-select {
  background: var(--bg-card) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  padding: 11px 14px !important;
  font-size: .9rem !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(0,201,167,.15) !important;
  outline: none !important;
}

/* ===== BADGES ===== */
.badge-status {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .73rem;
  font-weight: 600;
  font-family: var(--font-head);
}

.badge-published { background: rgba(16,185,129,.1); color: var(--success); }
.badge-pending   { background: rgba(245,158,11,.1);  color: var(--warning); }
.badge-draft     { background: rgba(100,116,139,.1); color: var(--text-muted); }
.badge-rejected  { background: rgba(239,68,68,.1);   color: var(--danger); }

/* ===== DARK MODE TOGGLE ===== */
.dark-toggle {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border: none;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.dark-toggle:hover { background: rgba(255,255,255,.15); color: #fff; }

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

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

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

.animate-up   { animation: fadeInUp .6s ease both; }
.animate-down { animation: fadeInDown .6s ease both; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* ===== UTILITIES ===== */
.bg-accent     { background: var(--accent); }
.bg-primary-c  { background: var(--primary); }
.text-accent   { color: var(--accent) !important; }
.text-muted-c  { color: var(--text-muted); }
.border-accent { border-color: var(--accent) !important; }
.rounded-c     { border-radius: var(--radius); }
.shadow-c      { box-shadow: var(--shadow); }

.tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-head);
  transition: all var(--transition);
}

.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== SEARCH BAR ===== */
.search-bar {
  position: relative;
  max-width: 380px;
}

.search-bar input {
  padding-left: 42px !important;
  border-radius: 100px !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

.search-bar input::placeholder { color: rgba(255,255,255,.4); }
.search-bar input:focus { background: rgba(255,255,255,.12) !important; }

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.4);
  font-size: .9rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-area {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.breadcrumb-item { font-size: .85rem; }
.breadcrumb-item a { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: .7;
  transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

/* ===== SIDEBAR MEMBER ===== */
.member-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  position: sticky;
  top: 90px;
}

.member-sidebar-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 12px;
  display: block;
}

/* ===== FORUM ===== */
.forum-topic {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
  margin-bottom: 10px;
}

.forum-topic:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.forum-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(0,201,167,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== RESPONSIVE - TABLET (max 992px) ===== */
@media (max-width: 991.98px) {
  /* Admin sidebar */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 1050;
    width: 260px !important;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .sidebar.show { transform: translateX(0); }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1049;
  }
  .sidebar-overlay.show { display: block; }
  .admin-main { margin-left: 0 !important; }
  .admin-topbar { left: 0 !important; }

  /* Public hero */
  .hero-section { min-height: 380px; padding: 60px 0 40px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .stat-item .num { font-size: 1.8rem; }
  .hero-title { font-size: 2rem; }

  /* Navbar */
  .navbar-main .dropdown-menu { position: static !important; }
}

/* ===== RESPONSIVE - MOBILE (max 768px) ===== */
@media (max-width: 767.98px) {
  /* Typography */
  .hero-title { font-size: 1.6rem !important; }
  .section-title { font-size: 1.4rem; }

  /* Admin */
  .admin-content { padding: 12px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header h1 { font-size: 1.15rem; }
  .admin-topbar { padding: 0 12px; }

  /* Cards & Stats */
  .stat-card { padding: 16px; }
  .stat-card .num { font-size: 1.5rem; }
  .news-card .body { padding: 14px; }
  .agenda-card { padding: 14px; }

  /* Tables -> Scrollable on mobile */
  .table-responsive-mobile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-responsive-mobile table { min-width: 600px; }
  /* Table cards: hide some columns on mobile */
  table th:nth-child(n+5),
  table td:nth-child(n+5) { display: none; }

  /* Galeri grid */
  .galeri-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  /* Forms */
  .form-group { margin-bottom: 14px; }
  .btn { padding: 8px 14px; font-size: .85rem; }
  .btn-sm { padding: 5px 10px; font-size: .78rem; }

  /* Public navbar */
  .navbar-main { padding: 8px 0; }
  .navbar-main .brand-text { display: none; }
  .navbar-main .brand-logo { width: 34px; height: 34px; font-size: .85rem; }

  /* Footer */
  .footer-main { padding: 40px 0 20px; }
  .footer-brand { margin-bottom: 24px; }

  /* Pagination */
  .pagination .page-link { padding: 5px 10px; font-size: .8rem; }

  /* Fix card grids */
  .row.g-4 { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }

  /* CKEditor mobile fix */
  .cke { width: 100% !important; }
  .cke_top { overflow-x: auto; }

  /* Admin toast notification */
  #adminFlashMsg { top: 10px; right: 10px; left: 10px; max-width: none; }
}

/* ===== RESPONSIVE - SMALL MOBILE (max 480px) ===== */
@media (max-width: 479.98px) {
  .hero-title { font-size: 1.35rem !important; }
  .hero-subtitle { font-size: .88rem; }
  .hero-stats { display: none; }

  /* Admin: full width modals */
  .modal-dialog { margin: 8px; }
  .modal-content { border-radius: 10px; }

  /* Berita card: stack image on top */
  .news-card { flex-direction: column; }
  .news-card .thumb { width: 100%; height: 180px; }

  /* Admin table actions: icon only */
  .btn-action-text { display: none; }

  /* Slider form */
  .slider-form-col { flex-direction: column; }

  /* Page header actions: full width buttons */
  .page-header .btn { width: 100%; justify-content: center; margin-top: 4px; }
}

/* ===== ADMIN TABLE MOBILE: Convert to cards on very small =====  */
@media (max-width: 575.98px) {
  /* Table columns visibility fix */
  table th:nth-child(n+4),
  table td:nth-child(n+4) { display: none; }
  table th:nth-child(1),
  table td:nth-child(1) { width: 24px; padding: 8px 6px; }

  /* Admin sidebar brand */
  .sidebar-logo { width: 32px; height: 32px; font-size: .8rem; }
  .sidebar-brand { padding: 14px 16px; }
  .sidebar-nav { padding: 8px; }
  .sidebar-link { padding: 8px 10px; font-size: .82rem; }
}

/* ===== PRINT ===== */
@media print {
  .sidebar, .admin-topbar, .navbar-main, .footer,
  .btn, .pagination, #adminFlashMsg { display: none !important; }
  .admin-main { margin-left: 0; }
  body { background: #fff; }
  .admin-content { padding: 0; }
}

/* ===== PUBLIC PAGES MOBILE FIXES ===== */
@media (max-width: 767.98px) {
  /* Info bar: stack on mobile */
  .info-bar .container > div {
    flex-wrap: wrap;
    gap: 8px;
    font-size: .78rem;
  }
  .info-bar span { font-size: .76rem; }

  /* Berita detail */
  .berita-detail img { width: 100%; height: auto; }

  /* Agenda card mobile */
  .agenda-card .d-flex { flex-wrap: wrap; }

  /* Galeri grid mobile */
  .galeri-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Video embed */
  .ratio { border-radius: 8px; }

  /* Swiper/slider */
  .swiper-button-next,
  .swiper-button-prev { display: none; }

  /* Member area */
  .member-sidebar { margin-bottom: 20px; }

  /* Login/register */
  .auth-card { margin: 20px; padding: 24px !important; }

  /* Forum */
  .forum-topic { flex-wrap: wrap; }
  .forum-icon { width: 36px; height: 36px; }
}

@media (max-width: 479.98px) {
  /* Public top info bar: hide on very small */
  .info-bar { display: none; }

  /* Hero: compact */
  .hero-section { padding: 50px 0 30px; min-height: 300px; }
  .hero-title { font-size: 1.3rem !important; }

  /* Section padding */
  section { padding: 30px 0 !important; }

  /* Cards: no border radius on sides */
  .card, .news-card, .agenda-card { border-radius: 10px !important; }

  /* Galeri grid */
  .galeri-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
