/* ══════════════════════════════════════════════
   GDService — main stylesheet
   ფერები: ცისფერი #42B4E6 · ყვითელი #F9A825 · თეთრი დომინანტი
   ══════════════════════════════════════════════ */

:root {
  --blue:   #42B4E6;
  --blue-dark: #2899CC;
  --yellow: #F9A825;
  --yellow-dark: #e09400;
  --white:  #ffffff;
  --bg:     #f4f8fc;
  --text:   #1a1a2e;
  --muted:  #6c757d;
  --border: #e4eaf2;
  --shadow: 0 2px 12px rgba(66,180,230,.10);
}

/* ── ფონი და ტიპოგრაფია ── */
body {
  background: var(--bg);
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
}

/* ── ნავბარი ── */
.navbar {
  background: var(--white) !important;
  min-height: 64px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar-logo-img {
  height: 52px;
  object-fit: contain;
}
.gds-nav-brand {
  font-family: 'Segoe UI', Arial Black, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  line-height: 1;
}
.gds-gd      { color: var(--blue);   font-weight: 900; }
.gds-service { color: var(--yellow); font-weight: 700; font-size: 1.05rem; }

/* ── Bootstrap ღილაკების override ── */
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(66,180,230,.25);
  transition: all .18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(66,180,230,.35);
}
.btn-success {
  background: #198754;
  border-color: #198754;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(25,135,84,.2);
  transition: all .18s;
}
.btn-success:hover, .btn-success:focus {
  background: #146c43;
  border-color: #146c43;
  color: #fff;
}
/* ყვითელი ღილაკი — ნავბარი "+ შეკვეთა" */
.btn-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--text);
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(249,168,37,.25);
  transition: all .18s;
  border: none;
}
.btn-yellow:hover, .btn-yellow:focus {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: var(--text);
}
.btn-outline-primary {
  color: var(--blue);
  border-color: var(--blue);
  border-radius: 10px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.btn-danger {
  border-radius: 10px;
}
.btn-sm { border-radius: 8px; padding: 5px 12px; }

/* navbar-ში ღილაკების სპეც სტილი */
.navbar .btn-outline-light {
  color: var(--blue);
  border-color: var(--border);
  border-radius: 8px;
}
.navbar .btn-outline-light:hover {
  background: var(--bg);
  color: var(--blue-dark);
  border-color: var(--blue);
}

/* ── ბარათები ── */
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card-header {
  border-radius: 14px 14px 0 0 !important;
  border-bottom: 1px solid var(--border);
}

/* ── ცხრილი ── */
.table thead th {
  background: var(--blue);
  color: white;
  white-space: nowrap;
  font-weight: 600;
  border-color: var(--blue-dark);
}
.table-hover tbody tr:hover {
  background: #f0f8fd;
}

/* ── ფორმა ── */
.form-control:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(66,180,230,.15);
}
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--border);
}
.form-label { font-weight: 600; font-size: .875rem; color: var(--text); }

/* ── flash შეტყობინება ── */
.flash-messages { margin-top: 1rem; }
.alert { border-radius: 12px; }

/* ── ავტ-გვერდების ლოგო ── */
.auth-logo         { max-height: 130px; }
.auth-logo-brand   { font-family: 'Segoe UI', Arial Black, sans-serif; font-weight: 900; color: var(--blue); font-size: 1.6rem; letter-spacing: 2px; }
.auth-logo-tagline { font-family: Georgia, serif; color: var(--yellow); font-size: 1rem; font-style: italic; }
.card-title-dark   { color: var(--text); font-weight: 700; }

/* ══════════════════════════════════════════════
   შეკვეთის კარტა
   ══════════════════════════════════════════════ */
.order-card {
  background: white;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border-left: 4px solid var(--blue);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  transition: box-shadow .18s;
}
.order-card:hover { box-shadow: 0 4px 18px rgba(66,180,230,.15); }

.order-card-id      { font-size: 11px; color: #aaa; font-weight: 600; letter-spacing: 1px; }
.order-card-date    { font-size: 11px; color: #aaa; }
.order-card-address { font-size: 13px; font-weight: 700; color: var(--text); margin: 4px 0 2px; }
.order-card-name    { font-size: 13px; color: #555; margin-top: 2px; }
.order-card-phone   { font-size: 13px; color: var(--blue); font-weight: 600; margin-top: 4px; }
.order-card-meta    { font-size: 13px; color: #888; }
.order-card-notes   { font-size: 13px; color: #777; background: #f8f9fa; border-radius: 8px; padding: 4px 8px; margin-top: 6px; }

/* გამგზავნის ბლოკი */
.sender-block {
  background: #f0f8fd;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #444;
  border-left: 3px solid var(--blue);
}

/* ══════════════════════════════════════════════
   თანხის badge
   ══════════════════════════════════════════════ */
.amount-badge {
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
}
.amount-badge.has-amount { background: #f0faf5; color: #198754; border: 1px solid #b7e4c7; }
.amount-badge.no-amount  { background: #f8f9fa; color: #aaa; border: 1px solid #dee2e6; font-weight: 400; }

/* ══════════════════════════════════════════════
   სტატუსის badge-ები
   ══════════════════════════════════════════════ */
.status-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.status-badge.pending   { background: #fffbeb; color: #92600a; border: 1px solid #fde68a; }
.status-badge.delivered { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.status-badge.cancelled { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.status-badge.postponed { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.status-badge.flagged   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* order-card border ფერი სტატუსის მიხედვით */
.order-card.delivered { border-left-color: #16a34a; }
.order-card.cancelled { border-left-color: #dc2626; }
.order-card.postponed { border-left-color: #7c3aed; }
.order-card.flagged   { border-left-color: #dc2626; }

/* სტატუსის summary ბლოკები */
.status-summary-card {
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  border: 1px solid transparent;
}
.status-summary-card .count { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.status-summary-card .label { font-size: .75rem; margin-top: 3px; font-weight: 500; }
.status-summary-card.pending   { background: #fffbeb; color: #92600a; border-color: #fde68a; }
.status-summary-card.delivered { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.status-summary-card.cancelled { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.status-summary-card.postponed { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }

/* სტატუსის dropdown */
.status-select {
  font-size: .75rem;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  max-width: 130px;
}
.status-select.pending   { background: #fffbeb; color: #92600a; border-color: #fde68a; }
.status-select.delivered { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.status-select.cancelled { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.status-select.postponed { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }

/* ══════════════════════════════════════════════
   ფილტრის tab ღილაკები
   ══════════════════════════════════════════════ */
.gd-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  width: 100%;
}
.gd-tab {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.gd-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.gd-tab:not(.active):hover { color: var(--blue-dark); background: #f8faff; }

/* collapse header სექციები */
.gd-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 12px;
  cursor: pointer; user-select: none; transition: all .15s;
  margin-bottom: 0;
}
.gd-section-header:hover { border-color: var(--blue); background: #f8faff; }
.gd-section-header.open { border-color: var(--blue); border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.gd-section-header .gd-sh-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-section-header .gd-sh-title i { color: var(--blue); font-size: 15px; }
.gd-section-chevron { color: var(--muted); font-size: 13px; transition: transform .2s; flex-shrink: 0; }
.gd-section-chevron.open { transform: rotate(180deg); color: var(--blue); }
.gd-section-body {
  background: #fff; border: 1.5px solid var(--blue);
  border-top: none; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
  padding: 14px; display: none;
}
.gd-section-body.open { display: block; }

/* კალენდარი + გაფილტვრა */
.gd-date-wrap { display: flex; align-items: center; gap: 6px; }
.gd-date-input {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.gd-date-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(66,180,230,.12); }
.gd-filter-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .15s;
  white-space: nowrap;
}
.gd-filter-btn:hover { background: var(--blue-dark); }

/* ამონაწერი ღილაკი */
.gd-amona-btn {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all .15s;
}
.gd-amona-btn:hover { border-color: var(--blue); color: var(--blue); background: #f0f8fd; }

/* ქვედა info შენიშვნა */
.gd-info-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  padding: 8px 12px;
  background: #f8faff;
  border-radius: 8px;
  border-left: 3px solid var(--blue);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.gd-info-note i { color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════════
   მობილური — ტექსტის გათანაბრება
   ══════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  /* სათაურები */
  h4, h5 { font-size: 15px !important; }

  /* ღილაკები */
  .btn { font-size: 13px !important; }
  .navbar-actions .btn { padding: 4px 10px; }

  /* სტატისტიკა */
  .status-summary-card .count { font-size: 20px; }
  .status-summary-card .label { font-size: 13px; }

  /* ფორმა */
  .form-label { font-size: 13px; }

  /* card ტექსტი */
  .card-body .small, .card-header .small { font-size: 13px !important; }

  /* info note */
  .gd-info-note { font-size: 13px; }

  /* badge-ები */
  .badge { font-size: 12px; }

  /* section summary ტექსტი */
  p.mb-0.small { font-size: 13px !important; }
}
