/* ===============================
   GLOBAL
=============================== */

body.santabody {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #fcefe9;
  background-color: #3a0b16;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.overlay {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(10, 0, 0, 0.9));
  min-height: 100vh;
  padding: 20px;
}

/* ===============================
   HEADER
=============================== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  height: 64px;
  width: 64px;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.header h1 {
  margin: 0;
  font-size: 1.6rem;
  color: #ffe7d6;
}

.subtitle {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: rgba(255, 234, 221, 0.75);
}

/* Dil düymələri */

.lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid rgba(255, 234, 221, 0.4);
  background: rgba(20, 0, 0, 0.7);
  color: #ffeadd;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.8;
}

.lang-btn.active {
  background: #ffeadd;
  color: #5c0015;
  opacity: 1;
}

/* ===============================
   LAYOUT
=============================== */

.main {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.admin-main {
  grid-template-columns: 1fr;
}

/* ===============================
   CARD & GLASS
=============================== */

.card {
  border-radius: 20px;
  padding: 20px;
}

.card.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #ffeadd;
}

/* LOGIN CARD */

.login-card {
  max-width: 420px;
  margin: 80px auto 30px;
}

/* ===============================
   FORM
=============================== */

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

.form.inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  margin-bottom: 4px;
  font-weight: 500;
}

input,
select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 0, 0, 0.85);
  color: #ffeadd;
  outline: none;
}

input::placeholder {
  color: rgba(255, 234, 221, 0.5);
}

input:focus,
select:focus {
  border-color: #ffb4a2;
  box-shadow: 0 0 0 1px rgba(255, 180, 162, 0.6);
}

.hint {
  font-size: 0.8rem;
  color: rgba(255, 234, 221, 0.7);
}

/* ===============================
   BUTTONS
=============================== */

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.2s;
  font-size: 0.95rem;
}

.btn.primary {
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  color: white;
  box-shadow: 0 10px 18px rgba(201, 24, 74, 0.6);
}

.btn.secondary {
  background: rgba(255, 234, 221, 0.12);
  color: #ffeadd;
  border: 1px solid rgba(255, 234, 221, 0.4);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.6);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ===============================
   MESSAGES
=============================== */

.message {
  margin-top: 8px;
  font-size: 0.9rem;
}

.message.success {
  color: #b9ffb0;
}

.message.error {
  color: #ffb0b0;
}

/* ===============================
   TRACK RESULT
=============================== */

.track-result {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 234, 221, 0.1);
  font-size: 0.95rem;
}

/* ===============================
   TABLE (ADMIN)
=============================== */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 10px;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 234, 221, 0.18);
}

.table th {
  text-align: left;
  color: #ffd7c2;
}

.table tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.status-select {
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 234, 221, 0.4);
  background: rgba(20, 0, 0, 0.85);
  color: #ffeadd;
}

/* Tamamlanan sifariş – yaşıl ton */

.order-completed {
  background: rgba(0, 128, 0, 0.25);
  
}
/* ===============================
   SNOW EFFECT – larger & more flakes
=============================== */

.snow {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 999;
}

.flake {
  position: absolute;
  top: -50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  animation: fall linear infinite;
}

/* 25 qar dənəsi üçün ölçülər + sürət + gecikmə */
.flake:nth-child(1)  { left: 4%;  width:10px; height:10px; animation-duration:10s; animation-delay:0s; }
.flake:nth-child(2)  { left: 9%;  width:12px; height:12px; animation-duration:12s; animation-delay:.5s; }
.flake:nth-child(3)  { left: 15%; width:7px;  height:7px;  animation-duration:9s;  animation-delay:1s; }
.flake:nth-child(4)  { left: 20%; width:13px; height:13px; animation-duration:11s; animation-delay:.3s; }
.flake:nth-child(5)  { left: 27%; width:9px;  height:9px;  animation-duration:13s; animation-delay:1.2s; }

.flake:nth-child(6)  { left: 33%; width:11px; height:11px; animation-duration:10s; animation-delay:0.8s; }
.flake:nth-child(7)  { left: 39%; width:10px; height:10px; animation-duration:9s;  animation-delay:.4s; }
.flake:nth-child(8)  { left: 45%; width:14px; height:14px; animation-duration:14s; animation-delay:1.5s; }
.flake:nth-child(9)  { left: 52%; width:7px;  height:7px;  animation-duration:11s; animation-delay:.7s; }
.flake:nth-child(10) { left: 58%; width:12px; height:12px; animation-duration:12s; animation-delay:1.7s; }

.flake:nth-child(11) { left: 64%; width:14px; height:14px; animation-duration:10s; animation-delay:.9s; }
.flake:nth-child(12) { left: 70%; width:9px;  height:9px;  animation-duration:8s;  animation-delay:.2s; }
.flake:nth-child(13) { left: 75%; width:11px; height:11px; animation-duration:13s; animation-delay:.6s; }
.flake:nth-child(14) { left: 81%; width:10px; height:10px; animation-duration:9.5s; animation-delay:1.3s; }
.flake:nth-child(15) { left: 87%; width:15px; height:15px; animation-duration:14s; animation-delay:.4s; }

.flake:nth-child(16) { left: 7%;  width:12px; height:12px; animation-duration:12s; animation-delay:2s; }
.flake:nth-child(17) { left: 22%; width:10px; height:10px; animation-duration:9s;  animation-delay:1.9s; }
.flake:nth-child(18) { left: 41%; width:13px; height:13px; animation-duration:11s; animation-delay:.5s; }
.flake:nth-child(19) { left: 63%; width:8px;  height:8px;  animation-duration:10s; animation-delay:1.5s; }
.flake:nth-child(20) { left: 92%; width:15px; height:15px; animation-duration:14s; animation-delay:.9s; }

.flake:nth-child(21) { left: 12%; width:11px; height:11px; animation-duration:10s; animation-delay:1.1s; }
.flake:nth-child(22) { left: 32%; width:8px;  height:8px;  animation-duration:8.5s; animation-delay:.6s; }
.flake:nth-child(23) { left: 55%; width:14px; height:14px; animation-duration:13s; animation-delay:1.4s; }
.flake:nth-child(24) { left: 78%; width:10px; height:10px; animation-duration:10.5s; animation-delay:1.8s; }
.flake:nth-child(25) { left: 95%; width:15px; height:15px; animation-duration:12.5s; animation-delay:.3s; }

@keyframes fall {
  0%   { transform: translateX(0) translateY(0); opacity: 1; }
  50%  { transform: translateX(20px); }
  100% { transform: translateY(110vh) translateX(-20px); opacity: 0; }
}


/* WhatsApp Floating Icon Circle */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0,0,0,0.45);
  z-index: 1000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.55);
}
