/* ==========================
| GENEL AYARLAR & ARKA PLAN |
============================= */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #f3f4f6;
  background-color: #0b0f19;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-image: url('../images/stripes.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(12px) brightness(0.2); /* Jilet gibi bulanık ve karanlık */
  z-index: -3;
}

/* ==============
| ANA KAPSAYICI |
================= */
.app-wrapper {
  width: 950px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-radius: 20px;
  padding-bottom: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  z-index: 1;
  overflow: hidden;
}

/* - MOBİL UYUMLULUK - */
@media (max-width: 600px) {
  .app-wrapper {
    width: 92%;
  }
  #ikinciAsamaKutusu > div[style*='display: flex'] {
    flex-direction: column;
  }
  .ozel-checkbox-label {
    width: 100px !important;
    height: 100px !important;
  }
}

/* ===========================
| ANİMASYONLAR VE ÖZEL SINIFLAR |
============================== */
.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

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

#ikinciAsamaKutusu {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  border-left: 4px solid #4ade80;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.full-width {
  grid-column: span 2;
}

/* ======================
| EKRANLAR VE TİPOGRAFİ |
========================= */
#sifreEkrani {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 40px;
}

#sifreInput {
  max-width: 350px;
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
  margin-bottom: 30px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

#sifreInput:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  outline: none;
}

.lock-icon {
  font-size: 60px;
  margin-bottom: 20px;
  opacity: 0.9;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#sifreEkrani .islem-btn {
  max-width: 350px;
  margin-top: 10px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
#sifreEkrani .islem-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
  transform: translateY(-2px);
}

#menuEkrani {
  display: none;
  flex-direction: column !important;
  align-items: center !important;
  height: 100% !important;
  gap: 25px !important;
  padding: 60px 10px 20px;
}

/* - MENÜ BUTONLARI - */
.menu-btn {
  width: 100%;
  max-width: 300px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(5px);
}
.menu-btn:hover {
  transform: translateY(-3px);
  background: rgba(30, 41, 59, 0.7);
}

.menu-btn.stok {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
}

.menu-btn.stok:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  border-color: #ffffff;
}

.menu-btn.yonetim {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
}

.menu-btn.yonetim:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  border-color: #ffffff;
}

.menu-btn.giris-stok {
  top: 30px;
  border: 1px solid rgba(249, 135, 22, 0.5);
  background: linear-gradient(
    135deg,
    rgba(249, 116, 22, 0.1),
    rgba(249, 128, 22, 0.05)
  );
}

.menu-btn.giris-stok:hover {
  background: rgba(249, 154, 22, 0.2);
  box-shadow: 0 0 20px rgba(249, 158, 22, 0.4);
  border-color: #fbab3c;
}

.menu-btn.giris {
  border: 1px solid rgba(22, 249, 75, 0.5);
  background: linear-gradient(
    135deg,
    rgba(22, 249, 33, 0.1),
    rgba(45, 249, 22, 0.05)
  );
}
.menu-btn.giris:hover {
  background: rgba(22, 249, 22, 0.2);
  box-shadow: 0 0 20px rgba(26, 249, 22, 0.4);
  border-color: #49fb3c;
}

.menu-btn.cikis {
  border: 1px solid rgba(249, 22, 22, 0.5);
  background: linear-gradient(
    135deg,
    rgba(249, 22, 22, 0.1),
    rgba(249, 22, 22, 0.05)
  );
}
.menu-btn.cikis:hover {
  background: rgba(249, 22, 22, 0.2);
  box-shadow: 0 0 20px rgba(249, 22, 22, 0.4);
  border-color: #fb3c3c;
}

.menu-btn.liste {
  top: 15px;
  border: 1px solid rgba(22, 215, 249, 0.5);
  background: linear-gradient(
    135deg,
    rgba(22, 249, 245, 0.1),
    rgba(22, 249, 234, 0.05)
  );
}
.menu-btn.liste:hover {
  background: rgba(22, 196, 249, 0.2);
  box-shadow: 0 0 20px rgba(22, 230, 249, 0.4);
  border-color: #3cfbe1;
}

.menu-btn.rapor {
  border: 1px solid rgba(251, 255, 0, 0.5);
  background: linear-gradient(
    135deg,
    rgba(249, 241, 22, 0.1),
    rgba(249, 230, 22, 0.05)
  );
}

.menu-btn.rapor:hover {
  background: rgba(249, 219, 22, 0.2);
  box-shadow: 0 0 20px rgba(245, 249, 22, 0.4);
  border-color: #fbfb3c;
}

/* - EXCEL BUTONLARI - */
.excel-btn-server {
  background: #f97316;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}
.excel-btn-server:hover {
  background: #ea580c;
  transform: translateY(-3px);
}

.excel-btn-client {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}
.excel-btn-client:hover {
  background: #059669;
}

/* =======================
| İŞLEM EKRANI & FORMLAR |
========================== */
#islemEkrani {
  display: none;
  padding: 40px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 20px;
}

.back-btn,
.geri-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.back-btn:hover,
.geri-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.form-container {
  display: none;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  margin: 0 auto 30px auto;
  max-width: 850px;
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.input-wrapper input,
.modern-select,
.modern-sayi-input,
#detayAciklamaInput,
#aramaKutusu,
#cikisBarkodInput,
#cikisKisi,
#cikisNeden,
#cikisAdet,
#markaSecimiInput,
#modelSecimiInput,
#urunSecimiInput,
#firmaSecimiInput,
#paketSayisiInput,
#girisAdetInput,
#cikisMetre,
#txtYeniUrun,
#txtYeniFirma {
  background-color: rgba(30, 41, 59, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 16px;
  border-radius: 12px;
  width: 100%;
  height: 52px;
  font-size: 15px;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.input-wrapper input:focus,
.modern-select:focus,
#detayAciklamaInput:focus,
#aramaKutusu:focus,
#markaSecimiInput:focus,
#modelSecimiInput:focus,
#txtYeniUrun:focus,
#txtYeniFirma:focus {
  border-color: #60a5fa;
  background-color: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  outline: none;
}

#detayAciklamaInput {
  height: auto;
  padding: 15px;
  min-height: 80px;
  resize: vertical;
}

.islem-btn {
  width: 100%;
  padding: 16px;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(107, 36, 36, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.islem-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.bg-yesil {
  background: linear-gradient(135deg, #059669, #047857);
}
.bg-yesil:hover {
  background: linear-gradient(135deg, #10b981, #059669);
}
.bg-kirmizi {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
.bg-kirmizi:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* =========
| TABLOLAR |
============ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

th {
  text-align: left;
  padding: 12px 20px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

td {
  padding: 15px 20px;
  color: #fff;
  font-size: 14px;
  vertical-align: middle;
  background: transparent;
  border: none;
}

tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

#listeFormu {
  max-height: 500px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.5);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =================
| DİĞER BİLEŞENLER |
==================== */
.gizli-checkbox {
  display: none;
}

.ozel-checkbox-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  width: 120px;
  height: 110px;
  transition: 0.3s;
}

.ozel-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gizli-checkbox:checked + .ozel-checkbox-label {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.durum-ikonu {
  width: 24px;
  height: 24px;
  border: 2px solid #64748b;
  border-radius: 50%;
  margin-left: 0;
  margin-bottom: 10px;
  transition: 0.2s;
  position: relative;
}

.gizli-checkbox:checked + .ozel-checkbox-label .durum-ikonu {
  background: #10b981;
  border-color: #10b981;
}

.ozel-checkbox-label span,
.ozel-checkbox-label .baslik {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
}

.gizli-checkbox:checked + .ozel-checkbox-label span,
.gizli-checkbox:checked + .ozel-checkbox-label .baslik {
  color: #fff;
}

#etiketOpsiyonKutusu .ozel-checkbox-label {
  flex-direction: row;
  width: 100%;
  height: 52px;
  justify-content: space-between;
  padding: 0 15px;
}

#etiketOpsiyonKutusu .durum-ikonu {
  margin-bottom: 0;
}

.ozel-liste {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid #475569;
  border-radius: 12px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.ozel-liste div {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  cursor: pointer;
}

.ozel-liste div:hover {
  background: #3b82f6;
  color: white;
}

/* ============
| BİLDİRİMLER |
=============== */
#toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInDown 0.3s ease forwards;
}

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

.toast-success {
  border-left: 5px solid #10b981;
}

.toast-error {
  border-left: 5px solid #ef4444;
}

.toast-warning {
  border-left: 5px solid #f59e0b;
}

.toast-fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* =========
| MODALLAR |
============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
}

.glass-modal,
.modal-box {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  animation: zoomIn 0.3s ease;
  backdrop-filter: blur(15px);
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-title,
.modal-box h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.modal-desc,
#tanimSifreAdimi p {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 25px;
}

.modal-input,
#tanimSifreInput,
#txtYeniUrun,
#txtYeniFirma {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

#tanimSifreInput {
  text-align: center;
  letter-spacing: 5px;
  font-size: 20px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.modal-btn,
.btn-cancel,
.btn-confirm {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.btn-cancel:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.btn-confirm {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
}

.btn-confirm:hover {
  transform: translateY(-2px);
}

.sirket-logo {
  position: fixed;
  top: 25px;
  left: 25px;
  width: 50px;
  z-index: 2000;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.footer-container {
  position: fixed;
  bottom: 20px;
  right: 25px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.copyright-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  font-weight: 500;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.success-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.success-card {
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid #10b981;
  padding: 40px 60px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.4);
  animation: zoomIn 0.4s;
}

.success-card h2 {
  color: #fff;
  font-size: 28px;
  margin: 20px 0 10px 0;
}

.success-card p {
  color: #a7f3d0;
  font-size: 14px;
  margin: 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #10b981;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 30px #10b981;
}

.success-icon::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.success-icon .tip {
  width: 25px;
  height: 5px;
  background-color: #fff;
  position: absolute;
  top: 45px;
  left: 15px;
  transform: rotate(45deg);
  z-index: 2;
  border-radius: 10px;
}

.success-icon .long {
  width: 45px;
  height: 5px;
  background-color: #fff;
  position: absolute;
  top: 38px;
  left: 28px;
  transform: rotate(-45deg);
  z-index: 2;
  border-radius: 10px;
}

.secim-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  margin-bottom: 25px;
  width: 100%;
}

#etiketOpsiyonKutusu {
  flex: 1.5 !important;
  min-width: 0;
}

#etiketOpsiyonKutusu .ozel-checkbox-label {
  flex-direction: row !important;
  box-sizing: border-box !important;
  overflow: hidden;
  white-space: nowrap;
  width: 100% !important;
  height: 52px !important;
  justify-content: space-between;
  padding: 0 15px !important;
  align-items: center;
}

#etiketOpsiyonKutusu .ikon-kutu {
  margin-bottom: 0 !important;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

#etiketOpsiyonKutusu .yazi-kutu {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#etiketOpsiyonKutusu .durum-ikonu {
  margin-bottom: 0 !important;
  margin-left: 10px;
}

::placeholder {
  text-transform: uppercase;
}

input[type='text'],
textarea,
select {
  text-transform: uppercase;
}

.modern-select,
.modern-sayi-input,
#etiketOpsiyonKutusu > div {
  height: 45px !important;
  box-sizing: border-box;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider-circle {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.gizli-checkbox:checked + .slider {
  background-color: #3b82f6;
}

.gizli-checkbox:checked + .slider + .slider-circle {
  transform: translateX(20px);
}

/* =========================================
| PROJE SEÇİM VE ANA MENÜ ÖZEL TASARIMLARI |
========================================= */

/* Panel ve Çerçeveler */
.action-panel {
  padding: 40px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.main-menu-panel {
  padding: 30px;
  position: relative;
  display: flex !important;
  flex-direction: column;
  width: 100%;
}

/* Başlık ve Metinler */
.panel-title {
  color: #fff;
  margin-bottom: 5px;
  font-weight: 500;
  text-align: center;
}
.panel-description {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}
.icon-large {
  font-size: 50px;
  margin-bottom: 5px;
}

/* =========================================
   PREMIUM DROPDOWN (SELECT) TASARIMI
   ========================================= */
.project-dropdown {
  width: 100%;
  max-width: 350px;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: rgba(15, 23, 42, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Beyaz ok ikonu */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-dropdown:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  outline: none;
}

.project-dropdown option {
  background-color: #0f172a;
  color: #fff;
  padding: 15px;
  font-size: 15px;
}

.btn-full-width.islem-btn {
  width: 100%;
  max-width: 350px;
  margin-top: 15px;
  background-color: #474747;
  color: #ffffff;
  font-weight: 800;
  border: none;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-full-width.islem-btn:hover {
  background-color: #1e6abc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* =========================================
   PREMIUM DANGER (ÇIKIŞ) BUTONU TASARIMI
   ========================================= */
.btn-danger-outline {
  margin-top: 15px;
  width: 100%;
  max-width: 350px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.btn-danger-outline:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Seç Ve İlerle Butonunu Genişleten Ayar */
.btn-full-width {
  width: 100%;
  max-width: 350px;
  margin-top: 10px;
}

/* Diğer Ufak Butonlar */
.btn-back-small {
  padding: 6px 12px;
  font-size: 13px;
  margin: 0;
}
.btn-menu-fixed {
  width: 100%;
  max-width: 300px;
}

/* Ana Menü Üst Bar ve Rozet */
.menu-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.spacer-box {
  width: 100px;
}
.active-project-badge {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-icon {
  font-size: 20px;
}
.badge-text-group {
  display: flex;
  flex-direction: column;
}
.badge-label {
  font-size: 10px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-value {
  color: #4ade80;
  font-size: 14px;
  font-weight: bold;
}
.btn-change-project {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
  margin-left: 5px;
  transition: 0.3s;
}
.btn-change-project:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Alt Menü Taşıyıcıları */
.menu-category-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 100%;
}
.category-title {
  color: #fff;
  margin-bottom: 10px;
  font-weight: 500;
}

/* BUTONLAR VE DİĞER STİLLER (AYNI KALDI, SADECE BOYUTLAR İYİLEŞTİRİLDİ) */
.btn-excel {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 12px 24px; /* Buton daha dolgun hale getirildi */
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  font-size: 14px;
}
.btn-excel:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}
.val-kesif {
  color: #60a5fa;
  font-weight: bold;
}
.val-giris {
  color: #34d399;
  font-weight: bold;
}
.val-cikis {
  color: #f87171;
  font-weight: bold;
}
.val-stok {
  color: #fbbf24;
  font-weight: bold;
  font-size: 16px;
}
.val-kalan-pozitif {
  color: #10b981;
  font-weight: bold;
}
.val-kalan-negatif {
  color: #ef4444;
  font-weight: bold;
}

.mukayese-title-container {
  flex-grow: 1;
  text-align: center;
}

.mukayese-title {
  color: #fff;
  margin: 0;
  font-weight: 500;
}

.mukayese-subtitle {
  color: #af9c9c;
  font-size: 14px;
}

.mukayese-project-name {
  color: #fa6060;
}

.mukayese-loading-cell {
  text-align: center;
  color: #9ca3af;
  padding: 30px;
}

/* =========================================
   YENİ DASHBOARD (KOMUTA MERKEZİ) MİMARİSİ
   ========================================= */

.dashboard-body {
  margin: 0;
  padding: 0;
  background-color: #0b0f19;
  font-family: 'Inter', sans-serif;
  overflow: hidden; /* Dış sayfa kaymasın, içerik kaysın */
}

.dashboard-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* --- SOL MENÜ (SIDEBAR) --- */
.sidebar {
  width: 280px;
  background-color: #111827;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

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

.sidebar-brand h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: 2px;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.menu-header {
  color: #6b7280;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 10px 25px;
  margin-top: 15px;
}

.menu-item {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 15px 25px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-left: 3px solid #60a5fa;
}

.menu-item.highlight {
  color: #34d399; /* Fiyatlar butonu için özel yeşilimsi renk */
}

.menu-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-logout {
  width: 100%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* --- SAĞ ÇALIŞMA ALANI (PREMIUM KART MİMARİSİ) --- */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.top-header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-header h1 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

/* 1. SİHİRLİ DOKUNUŞ: EKRANA NEFES ALDIRIYORUZ */
.content-area {
  padding: 40px; /* Kenarlardan 40px boşluk bıraktık, sıkışıklık bitti */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 2. SİHİRLİ DOKUNUŞ: HAVADA SÜZÜLEN CAM KART EFEKTİ */
.table-wrapper {
  margin-top: 0;
  border-radius: 16px; /* Tatlı ve modern bir ovallik */
  border: 1px solid rgba(255, 255, 255, 0.08); /* İnce, pahalı bir cam kenarlığı */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); /* Havada süzülme (floating) gölgesi */
  flex-grow: 1;
  max-height: 100%;
  background-color: rgba(
    15,
    23,
    42,
    0.6
  ); /* Daha şeffaf, ferah bir cam efekti */
  backdrop-filter: blur(15px); /* Arka planı hafif buğulandırır */
  overflow-y: auto;
  overflow-x: auto;
}

/* İÇ NEFES BOŞLUKLARI (HİZALAMA) */
.mukayese-table th:first-child,
.mukayese-table td:first-child {
  padding-left: 30px;
}

.mukayese-table th:last-child,
.mukayese-table td:last-child {
  padding-right: 30px;
}

/* 3. SİHİRLİ DOKUNUŞ: ZARİF VE FERAH BAŞLIKLAR */
.mukayese-table th {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 2;
  color: #94a3b8; /* Göz yormayan, klas gri tonu */
  padding: 25px 15px; /* Başlıklara ekstra tavan boşluğu, ferahlık */
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.mukayese-table td {
  padding: 20px 15px; /* Satırlar arası ferahlık artırıldı */
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 14px;
  vertical-align: middle;
}

/* SATIR ÜZERİNE GELİNCE HAFİF AYDINLANMA */
.mukayese-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

/* TABLOYU BİRLEŞTİRME KURALLARI (Aradaki o siyah çizgiyi yok eder) */
.mukayese-table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0;
}

.welcome-banner {
  margin: 40px; /* Sadece hoş geldin banner'ı ortada dursun diye boşluk */
  background: linear-gradient(
    135deg,
    rgba(31, 41, 55, 0.8),
    rgba(17, 24, 39, 0.9)
  );
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.welcome-banner h3 {
  margin-top: 0;
  color: #34d399;
  font-size: 24px;
}

/* =========================================
   PREMIUM SCROLLBAR (KAYDIRMA ÇUBUĞU)
   ========================================= */

/* Tüm tarayıcılar için varsayılanı gizle (Safari, Chrome vs.) */
::-webkit-scrollbar {
  width: 10px; /* Kaydırma çubuğunun genişliği */
  height: 10px; /* Yatay scroll için yükseklik */
  background-color: transparent; /* Track'i gizle */
}

/* Kaydırma Çubuğunun Yolu (Track) */
::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.2); /* Çok hafif siyah bir gölge */
  border-radius: 10px;
}

/* Kaydırma Çubuğunun Tutacağı (Thumb) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1f2937, #111827); /* Koyu gri tonları */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Çok hafif parıltılı kenarlık */
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5); /* Derinlik hissi */
  transition: all 0.3s ease;
}

/* Tutacağın üzerine gelince (Hover) */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #10b981,
    #059669
  ); /* Neon yeşilimsi tonlara geçiş */
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); /* Parıltı efekti */
}

/* Tutacağı sürüklerken (Active) */
::-webkit-scrollbar-thumb:active {
  background-color: #059669; /* Daha koyu yeşil */
}
