/* Beyanname.com.tr Mevzuat & Vergi Portalı Stili */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Premium Color System */
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-accent-light: #f0fdfa;

  --navy-dark: #0a192f;
  --navy-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  --cyan-main: #00a8b5;
  --cyan-dark: #008b98;
  --cyan-border: #b9e6e8;
  --cyan-glow: rgba(0, 168, 181, 0.18);

  --border-light: #e2e8f0;
  --border-hover: #00a8b5;

  --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.04);
  --shadow-md: 0 4px 20px rgba(10, 25, 47, 0.06);
  --shadow-hover: 0 12px 32px rgba(0, 168, 181, 0.14);
  --shadow-dropdown: 0 14px 40px rgba(15, 23, 42, 0.12);
  --shadow-search: 0 20px 50px rgba(15, 23, 42, 0.18);
  --shadow-modal: 0 25px 60px rgba(10, 25, 47, 0.3);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-heading);
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--cyan-main) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.margin-top-xs { margin-top: 8px; }
.margin-top-sm { margin-top: 16px; }
.margin-top-md { margin-top: 32px; }
.text-muted { color: var(--text-muted); }
.highlight-text { color: var(--cyan-main); font-weight: 700; }

/* Top Announcement Bar */
.top-bar {
  background: var(--navy-dark);
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.84rem;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-announcement {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-badge {
  background: var(--cyan-main);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Main Header Navigation (EXACT Top-Level Titles) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

/* 9 Distinct Top-Level Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-dropdown {
  position: relative;
}

.nav-item {
  color: #1e293b;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  color: var(--cyan-main);
  background: var(--bg-accent-light);
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Submenu Box */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: var(--shadow-dropdown);
  z-index: 1100;
  margin-top: 4px;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  color: var(--cyan-main);
  background: var(--bg-accent-light);
  padding-left: 22px;
}

/* Hero & Live Search Drawer System */
.portal-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 50px 0 50px;
  border-bottom: 1px solid var(--border-light);
}

.search-box-container {
  position: relative;
  max-width: 720px;
  margin: 24px auto 0;
}

.search-box-wrapper {
  display: flex;
  gap: 10px;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: border-color 0.25s ease;
}

.search-box-wrapper:focus-within {
  border-color: var(--cyan-main);
  box-shadow: 0 6px 24px var(--cyan-glow);
}

.search-input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-size: 1rem;
  font-family: var(--font-main);
  outline: none;
}

/* Live Search Results Popup Drawer */
.live-search-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-search);
  z-index: 1200;
  max-height: 450px;
  overflow-y: auto;
  padding: 16px;
  text-align: left;
}

.live-search-drawer.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.search-result-item {
  padding: 14px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.search-result-item:hover {
  background: var(--bg-accent-light);
  border-color: var(--cyan-border);
}

.search-result-info h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-heading);
  margin-bottom: 4px;
}

.search-result-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.search-result-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--navy-dark);
}

/* UX Feature: Quick Action Ribbon */
.quick-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -24px;
  position: relative;
  z-index: 10;
}

.ribbon-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ribbon-item:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-main);
  box-shadow: var(--shadow-hover);
}

.ribbon-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--cyan-main);
}

.ribbon-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy-heading); }
.ribbon-text p { font-size: 0.8rem; color: var(--text-muted); }

/* UX Feature: Category Filter Pills */
.filter-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--cyan-main);
  color: #ffffff;
  border-color: var(--cyan-main);
}

/* Quick Search Suggestions Chips */
.search-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.chip {
  background: rgba(0, 168, 181, 0.08);
  color: var(--cyan-dark);
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
}

.chip:hover {
  background: var(--cyan-main);
  color: #ffffff;
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--cyan-main);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 168, 181, 0.4);
  z-index: 1500;
  opacity: 0.9;
  transition: all 0.25s ease;
  border: none;
}

.back-to-top:hover {
  transform: translateY(-4px);
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  padding: 10px 18px;
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan-main);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--cyan-glow);
}

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

.btn-secondary {
  background: #f1f5f9;
  color: var(--navy-heading);
  border: 1px solid var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--navy-heading);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--cyan-main);
  color: var(--cyan-main);
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-xs { padding: 4px 10px; font-size: 0.78rem; }
.btn-block { width: 100%; }

/* Cards & Layout */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--cyan-main);
  box-shadow: var(--shadow-hover);
}

.padded { padding: 28px; }

/* Grid System */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-padding { padding: 60px 0; }
.bg-slate-50 { background: var(--bg-surface); }
.bg-white { background: #ffffff; }

.section-header { margin-bottom: 36px; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--navy-dark); }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); margin-top: 6px; }

.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Page Navigation Display */
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.25s ease; }

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

/* Visually Enhanced Declaration Cards */
.declaration-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.declaration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cyan-main);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.declaration-card:hover {
  border-color: var(--cyan-main);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.declaration-card:hover::before {
  opacity: 1;
}

.declaration-code {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cyan-dark);
  background: var(--bg-accent-light);
  border: 1px solid var(--cyan-border);
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 12px;
}

.declaration-card h3 { font-size: 1.18rem; margin-bottom: 8px; color: var(--navy-heading); font-weight: 700; }
.declaration-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

.declaration-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

/* Vergi Takvimi Block */
.calendar-block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
}

.calendar-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.date-pill {
  background: var(--cyan-main);
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 16px;
  text-align: center;
  min-width: 80px;
}

.date-pill .day { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.date-pill .month { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

/* News & Guide Cards */
.news-card {
  padding: 24px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.news-card:hover {
  border-color: var(--cyan-main);
  box-shadow: var(--shadow-hover);
}

.news-card .news-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-dark);
  text-transform: uppercase;
}

.news-card h4 { font-size: 1.1rem; margin: 8px 0; color: var(--navy-heading); }
.news-card p { font-size: 0.88rem; color: var(--text-muted); }

/* Calculator Panels */
.calc-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }

.calc-tab-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.calc-tab-btn.active {
  background: var(--cyan-main);
  color: #ffffff;
  border-color: var(--cyan-main);
}

.calc-pane { display: none; padding: 28px; }
.calc-pane.active { display: block; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--navy-heading);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--navy-heading);
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.result-card {
  background: var(--bg-accent-light);
  border: 1px solid var(--cyan-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.result-total {
  border-top: 1px solid var(--cyan-border);
  padding-top: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-dark);
}

/* Modals & Backdrop Click UX */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer; /* Indicates clicking backdrop closes modal */
}

.modal-backdrop.active { display: flex; animation: fadeIn 0.2s ease; }

.modal-box {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  cursor: default; /* Reset cursor inside modal content */
  position: relative;
}

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

.modal-close {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--navy-dark);
}

/* Standard Declaration Template View Styling */
.template-section-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease;
}

.template-section-box:hover {
  border-color: var(--cyan-border);
}

.template-section-box h4 {
  color: var(--cyan-dark);
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.template-section-box p, .template-section-box ul {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4, .calc-grid, .quick-ribbon { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .brand-logo-img { height: 50px; }
}

/* TÜRMOB Live Sync & File Badges */
.turmob-sync-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--cyan-border);
  padding: 16px 24px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.turmob-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-file-type {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-file-excel {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-file-word {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-file-pdf {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-turmob-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-turmob-download:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* GİB Official Forms & CDN Download Styling */
.gib-sync-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff5f5;
  border: 1px solid #fecaca;
  padding: 16px 24px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.gib-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #991b1b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.btn-gib-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-gib-download:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.gib-form-card {
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gib-form-card:hover {
  border-color: #dc2626;
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ADMIN DASHBOARD & TERMINAL LOG STYLES */
.admin-login-box {
  max-width: 440px;
  margin: 40px auto;
  padding: 32px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.admin-nav-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: var(--navy-dark);
}

.admin-tab-btn.active {
  color: var(--cyan-dark);
  border-bottom-color: var(--cyan-dark);
}

.admin-pane {
  display: none;
}

.admin-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.admin-terminal-box {
  background: #090d16;
  color: #38bdf8;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  padding: 20px;
  border-radius: 14px;
  height: 420px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  border: 1px solid #1e293b;
  line-height: 1.6;
}

.log-entry {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.log-entry .log-time { color: #64748b; font-size: 0.78rem; margin-right: 8px; }
.log-entry.INFO .log-lvl { color: #38bdf8; font-weight: bold; }
.log-entry.SUCCESS .log-lvl { color: #4ade80; font-weight: bold; }
.log-entry.WARN .log-lvl { color: #facc15; font-weight: bold; }
.log-entry.ERROR .log-lvl { color: #f87171; font-weight: bold; }
.log-entry .log-msg { color: #f1f5f9; }

.admin-stat-card {
  padding: 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-sidebar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-accent-light);
  color: var(--cyan-dark);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ADMIN SIDEBAR & VERTICAL MENU LAYOUT */
.admin-sidebar-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 992px) {
  .admin-sidebar-layout {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar-menu {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 90px;
}

.admin-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.admin-sidebar-btn:hover {
  background: var(--bg-slate-50);
  color: var(--navy-dark);
}

.admin-sidebar-btn.active {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.admin-sidebar-btn .sidebar-icon {
  font-size: 1.1rem;
}

.admin-main-content {
  min-width: 0;
}

/* MASTERPIECE ADMIN DASHBOARD STYLES - CLEAN LIGHT & NAVY THEME */
.admin-masterpiece-wrapper {
  background: #f8fafc;
  color: var(--navy-dark);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-light);
}

.admin-header-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-sec-badge {
  background: rgba(14, 165, 233, 0.1);
  color: var(--cyan-dark);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.admin-master-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.admin-nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-nav-pill:hover {
  background: var(--bg-slate-50);
  color: var(--navy-dark);
}

.admin-nav-pill.active {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.admin-pane-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  padding: 24px;
  color: var(--navy-dark);
}

.admin-pane-card h3 {
  color: var(--navy-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-pane-card label {
  color: var(--navy-heading);
}

.admin-pane-card .form-control {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--navy-dark);
}

.admin-pane-card .form-control:focus {
  border-color: var(--cyan-main);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.admin-terminal-box {
  background: #0f172a;
  color: #f8fafc;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  padding: 20px;
  border-radius: 14px;
  height: 420px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #1e293b;
  line-height: 1.6;
}






