/* Masukan.html CSS - Navbar Consistency with sppg_aktif.html */

/* Import all navbar styles from sppg_aktif.css */
:root {
  --bg: #f7fafc;
  --bg-elev: #ffffff;
  --bg-elev-2: #f4f7fb;
  --text: #0f172a;
  --muted: #5b728a;
  --brand: #22c55e;
  --brand-ink: #052e16;
  --border: #e5e7eb;
  --card: #ffffff;
  --skeleton: #e9eef5;
  --chip: #eef2f7;
  --shadow: 0 6px 20px rgba(2,6,23,0.35);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s, color 0.3s;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Brand/Logo Styles - Exact Copy from sppg_aktif.css */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.brand__logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand__logo:hover::before {
  left: 100%;
}

.brand__logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__title {
  font-weight: 700;
  color: #ffffff;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Header/Reportbar Styles - Exact Copy from sppg_aktif.css */
.reportbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  height: 80px;
  position: relative;
  overflow: hidden;
}

.reportbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(34, 197, 94, 0.1) 0%, 
    transparent 20%, 
    transparent 80%, 
    rgba(34, 197, 94, 0.1) 100%);
  opacity: 0.6;
  pointer-events: none;
}

.pages-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile hamburger menu */
.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 80px;
  right: 12px;
  left: 12px;
  z-index: 1200;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.35);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.mobile-drawer a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #0f172a;
  border: 1px solid rgba(15,23,42,0.08);
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff, #f5f7fb);
  box-shadow: 0 6px 16px rgba(2,6,23,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-drawer a:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(2,6,23,0.14);
}

.mobile-drawer.show { display: block; }

/* Subtle dark overlay behind the drawer */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.45);
  z-index: 1190;
  backdrop-filter: blur(2px);
}
.mobile-overlay.show { display: block; }

.page-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 24px;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.3px;
  font-weight: 600;
  font-size: 14px;
}

.page-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-tab:hover::before {
  opacity: 1;
}

.page-tab:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.page-tab.is-active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

.page-tab.is-active::before {
  opacity: 0;
}

/* Content Styles */
.content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Card Styles */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.card__header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Header Section Styles */
.ls-header {
  background: #2e7d32;
  color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(0,0,0,0.1);
}

.ls-header h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
}

/* Button Styles */
.btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Input Styles */
.input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  color: var(--text);
  background: var(--bg-elev);
  transition: all 0.3s ease;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .reportbar {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    height: auto;
    min-height: 100px;
  }
  
  .pages-nav { display: none !important; }
  .mobile-menu-button { display: inline-flex; margin-left: auto; }
  
  .page-tab {
    padding: 12px 20px;
    font-size: 13px;
  }
  
  .brand__logo {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .brand__title {
    font-size: 18px;
  }
  
  .brand__subtitle {
    font-size: 12px;
  }
  
  .content {
    padding: 16px;
  }
  
  .ls-header h1 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 12px;
  }
  
  .ls-header {
    padding: 12px 16px;
  }
  
  .ls-header h1 {
    font-size: 14px;
  }
  
  .reportbar {
    padding: 12px;
    gap: 12px;
    height: auto;
    min-height: 120px;
  }
  
  .pages-nav {
    padding: 4px;
    gap: 6px;
  }
  
  .page-tab {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .brand__logo {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .brand__title {
    font-size: 16px;
  }
  
  .brand__subtitle {
    font-size: 11px;
  }
}

/* Force consistency - Ensure navbar consistency across all pages */
.reportbar {
  /* Force consistent navbar styling */
  background: linear-gradient(135deg, #0f172a, #1e293b, #334155) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  height: 80px !important;
  padding: 20px 24px !important;
}

.brand__logo {
  /* Force consistent logo styling */
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3) !important;
}

.brand__title,
.brand__subtitle {
  /* Force consistent text styling */
  color: #ffffff !important;
}

.page-tab.is-active {
  /* Force consistent active tab styling */
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4) !important;
}

