body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #222 0, #050505 40%, #000 100%);
  color: #f5f5f5;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* SOL MENÜ / SIDEBAR -------------------------------------------------- */

.sidebar {
  width: 260px;
  background: radial-gradient(circle at top, #222 0, #050505 40%, #000 100%);
  border-right: 1px solid rgba(255, 215, 0, 0.15);
  padding: 24px 18px;
  box-sizing: border-box;
}
/* SADECE WA İKONU İÇİN */
.sidebar-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    margin-top: 6px;
}

.sidebar-logo img {
    width: 95px;
    height: auto;
}
/* --- WA ICON PREMIUM GLOW EFFECT --- */

.sidebar-logo img {
    width: 95px;
    height: auto;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.35))
            drop-shadow(0 0 12px rgba(255, 215, 0, 0.25))
            drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* Hover ile hafif zoom ve daha güçlü glow */
.sidebar-logo img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5))
            drop-shadow(0 0 16px rgba(255, 215, 0, 0.35))
            drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}
/* BRAND BLOKU – ORTALANMIŞ PREMIUM TASARIM */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;      /* YAZILARI ORTALA */
    text-align: center;       /* METNİ ORTALA */
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 18px;
}

/* Marka Yazıları */
.brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;      /* ORTALA */
    text-align: center;       /* ORTALA */
    line-height: 1.2;
}

.brand-name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #f0f0f0;
}

.brand-version {
    font-size: 11px;
    color: #c7c7c7;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #ffd24a, #b68210);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f8f4e6;
}

.brand-version {
  font-size: 11px;
  color: #d0b96d;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-vertical {
  flex-direction: column;
}

.nav-item {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #f3e5ab;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.nav-item:hover:not(.active):not(.disabled) {
  border-color: rgba(255, 215, 0, 0.25);
  background: rgba(255, 215, 0, 0.04);
}

.nav-item.active {
  background: linear-gradient(90deg, #ffd24a, #c58b1f);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}

.nav-item.disabled {
  opacity: 0.35;
  cursor: default;
}

/* ANA İÇERİK ----------------------------------------------------------- */

.content {
  flex: 1;
  padding: 32px 40px;
  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto;
}

/* ÜST BAR (ARAYÜZ DİLİ) ----------------------------------------------- */

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #f6e9c4;
}

/* KARTLAR ------------------------------------------------------------- */

.card {
  background: radial-gradient(circle at top left, #222 0, #080808 55%, #020202 100%);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.12);
  margin-bottom: 24px;
}

/* Başlıklar biraz daha büyük ve gold */
h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #ffd86b;
}

h2 {
  font-size: 22px;
  margin-top: 0;
  color: #ffd86b;
}

h3 {
  font-size: 18px;
  color: #ffd86b;
}

.subtitle {
  font-size: 14px;
  color: #e6d8a0;
  margin-bottom: 18px;
}

/* FORM / INPUTLAR ----------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

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

label {
  font-size: 13px;
  color: #f6e9c4;
}

input[type="file"],
select {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 8px 14px;
  color: #f5f5f5;
  font-size: 13px;
}

select.select,
.select {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 8px 14px;
  color: #f5f5f5;
  font-size: 13px;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(90deg, #ffd24a, #c58b1f);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

textarea {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 10px 14px;
  color: #f5f5f5;
  font-size: 13px;
  resize: vertical;
}

.checkbox-inline {
  display: flex;
  align-items: center;
}

.checkbox-inline label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
  accent-color: #ffd24a;
}

/* BUTONLAR ------------------------------------------------------------ */

.btn-primary {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #ffd24a, #c58b1f);
  color: #000;
  box-shadow: 0 14px 30px rgba(255, 215, 0, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(255, 215, 0, 0.45);
}

.btn-secondary {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid #d0b96d;
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
  font-size: 13px;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  opacity: 0.9;
  background: rgba(255, 215, 0, 0.06);
}

.hint {
  margin-top: 10px;
  font-size: 12px;
  color: #c8b88a;
}

/* LAYOUT GRIDLER ------------------------------------------------------ */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
}

.info-list {
  list-style: none;
  padding-left: 0;
  font-size: 13px;
}

.info-list li {
  margin-bottom: 6px;
}

/* PLAN KARTLARI (4 HAFTALIK PLAN) ------------------------------------ */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.plan-card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  font-size: 13px;
}

/* SİSTEM KARTLARI ----------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.system-card {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  font-size: 13px;
}

.system-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: #ffd86b;
}

.urunler ul {
  padding-left: 18px;
  margin-top: 4px;
}

/* METİN DURUMLARI ----------------------------------------------------- */

.muted {
  font-size: 12px;
  color: #9b8f6a;
}

/* LOADER OVERLAY ------------------------------------------------------ */

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #f5f5f5;
  font-size: 16px;
}

/* Hem .loader hem .loader-spinner aynı stili alsın */
.loader,
.loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #d0b96d;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

/* RAPOR ACTION BUTONLARI (REPORT SAYFALARI) --------------------------- */

.report-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.report-actions .btn-primary,
.report-actions .btn-secondary {
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid #d0b96d;
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
  font-size: 13px;
}

.report-actions .btn-primary {
  background: linear-gradient(135deg, #d0b96d, #f5e3a1);
  color: #000;
  border-color: transparent;
}

.report-actions .btn-primary:hover,
.report-actions .btn-secondary:hover {
  opacity: 0.9;
}

/* GEÇMİŞ RAPOR LİSTESİ ------------------------------------------------ */

.history-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 13px;
}

.history-list li {
  margin-bottom: 8px;
}

.history-list a {
  color: #f3e5ab;
  text-decoration: none;
}

.history-list a:hover {
  text-decoration: underline;
}

.history-meta {
  display: block;
  font-size: 11px;
  color: #9b8f6a;
}

/* PDF ÇIKTI / PRINT --------------------------------------------------- */

.page-footer {
  display: none;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .sidebar,
  .brand,
  .nav,
  #loader-overlay {
    display: none !important;
  }

  .content {
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: #fff;
  }

  .card {
    background: #fff;
    color: #000;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .report-actions {
    display: none !important;
  }

  /* Her sayfanın altına tıbbi sorumluluk alanı (index yazdırılırsa) */
  .page-footer {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 10px;
    color: #555555;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding: 4px 12px;
    background: #f9f9f9;
  }
}
