/* ===== GOR SRIKANDI - Global Stylesheet (Premium Redesign) ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@500;700;800&display=swap');

:root {
  /* Curated Harmonious Palette */
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --teal: #0F766E;
  --teal-light: #14B8A6;
  --teal-pale: #F0FDF4;
  --gold: #D97706;
  --gold-dark: #B45309;
  --white: #FFFFFF;
  --gray-100: #F8FAFC;
  --gray-300: #E2E8F0;
  --gray-500: #64748B;
  --gray-700: #334155;
  --danger: #EF4444;
  
  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 18px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal-light);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #FDFDFD;
  color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
}

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

img { 
  max-width: 100%; 
  display: block; 
}

ul { 
  list-style: none; 
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
  height: 75px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  transition: var(--transition);
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-brand .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}
.nav-brand span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-brand span em { 
  color: var(--teal-light); 
  font-style: normal; 
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(250, 252, 252, 0.75);
  letter-spacing: 0.3px;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--teal-light);
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover, .nav-links a.active { 
  color: var(--white); 
}

.nav-actions { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(20, 184, 166, 0.4);
  color: var(--teal-light);
}
.btn-outline:hover { 
  border-color: var(--teal-light); 
  background: rgba(20, 184, 166, 0.08); 
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #0D9488);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4); 
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #F59E0B);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}
.btn-gold:hover { 
  background: linear-gradient(135deg, #F59E0B, var(--gold));
  transform: translateY(-2px); 
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35); 
}

.btn-danger { 
  background: linear-gradient(135deg, var(--danger), #DC2626); 
  color: #fff; 
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}
.btn-danger:hover { 
  background: #DC2626; 
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.btn-lg { 
  padding: 15px 36px; 
  font-size: 15px; 
  border-radius: var(--radius-md); 
}

.btn-xs { 
  padding: 6px 14px; 
  font-size: 12px; 
  border-radius: 6px; 
}

/* ===== SHARED SECTIONS ===== */
.section { padding: 100px 6%; }
.section-sm { padding: 70px 6%; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 44px);
  color: var(--navy);
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 580px;
  margin-bottom: 54px;
}

/* ===== CARD DESIGN ===== */
.card, .court-card, .court-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover, .court-card:hover, .court-item:hover { 
  box-shadow: var(--shadow-lg); 
  transform: translateY(-5px); 
  border-color: rgba(20, 184, 166, 0.3);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-teal { background: rgba(20, 184, 166, 0.1); color: #0D9488; }
.badge-gold { background: #FEF3DC; color: var(--gold); }
.badge-red { background: #FEECEC; color: var(--danger); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(250, 252, 252, 0.65);
  padding: 80px 6% 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.2fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p { 
  font-size: 14px; 
  line-height: 1.75; 
  margin-top: 18px; 
  max-width: 300px; 
}
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--white); letter-spacing: 0.8px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--teal-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(250, 252, 252, 0.08);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}

/* ===== INPUTS & FORMS ===== */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}
select.form-control { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg fill='%23334155' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ===== ALERTS ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 24px;
}
.alert-success { background: #E6F7F5; color: #0f766e; border: 1px solid rgba(20, 184, 166, 0.2); }
.alert-warning { background: #FFFBEB; color: #B45309; border: 1px solid rgba(245, 158, 11, 0.2); }
.alert-danger { background: #FEF2F2; color: #B91C1C; border: 1px solid rgba(239, 68, 68, 0.2); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #090D1A 0%, var(--navy) 50%, var(--navy-mid) 100%);
  padding: 140px 6% 80px;
  position: relative; overflow: hidden;
}
.page-header::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='%2314b8a6' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-header h1 { color: var(--white); font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.5px; }
.page-header p { color: rgba(250, 252, 252, 0.65); margin-top: 12px; font-size: 16px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(250, 252, 252, 0.45);
  margin-bottom: 20px;
  font-weight: 500;
}
.breadcrumb a { color: var(--teal-light); }
.breadcrumb span { color: rgba(250, 252, 252, 0.25); }

/* ===== ADMIN SIDEBAR & LAYOUT ===== */
.admin-layout {
  min-height: 100vh;
  padding-top: 75px;
}
.admin-sidebar {
  background: #0B0F19;
  position: fixed;
  top: 75px;
  left: 0;
  bottom: 0;
  width: 260px;
  overflow-y: auto;
  padding: 28px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
.admin-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 16px 24px 8px;
}
.admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}
.admin-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}
.admin-link.active {
  background: rgba(20, 184, 166, 0.08);
  color: var(--teal-light);
  border-right: 3px solid var(--teal-light);
}
.admin-link .icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
  opacity: 0.8;
}
.admin-main {
  margin-left: 260px;
  padding: 40px;
  background: #F8FAFC;
  min-height: calc(100vh - 75px);
}

/* ===== TABLE FORMS ===== */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table th {
  background: var(--gray-100);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-500);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-300);
}
.admin-table td {
  padding: 15px 20px;
  border-top: 1px solid var(--gray-300);
  font-size: 13.5px;
  vertical-align: middle;
  background: var(--white);
  transition: var(--transition);
}
.admin-table tr:hover td {
  background: #F8FAFC;
}
.admin-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-md);
}
.admin-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-md);
}

/* ===== MODERN POPUP MODAL ===== */
.modal-content, .form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(20, 184, 166, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 24px; }
  .nav-links, .nav-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .section { padding: 60px 5%; }
}