

/* =============================================
   GhostOrder — app.css
   Пастелно зелена схема / тъмен navbar
   ============================================= */

:root {
  --go-green:      #86c582;
  --go-green-dark: #5fa85a;
  --go-dark:       #0f1a14;
  --go-dark-2:     #162019;
  --go-border:     rgba(134, 197, 130, 0.15);
}

* {
  box-sizing: border-box;
}




body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f7f8f6;
  color: #1a1a1a;
  margin: 0;
  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── NAVBAR ─────────────────────────────────── */

.navbar {
  background: var(--go-dark) !important;
  border-bottom: 1px solid var(--go-border);
  padding-top: 0;
  padding-bottom: 0;
  min-height: 58px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  color: #fff !important;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.navbar-brand .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--go-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-brand .logo-icon svg {
  width: 18px;
  height: 18px;
}

.navbar-brand .logo-accent {
  color: var(--go-green);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: color 0.15s;
}

.navbar .nav-link:hover {
  color: #fff !important;
}

.navbar .btn-register {
  background: var(--go-green);
  color: var(--go-dark) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 7px;
  text-decoration: none;
  margin-left: 4px;
  transition: background 0.15s;
}

.navbar .btn-register:hover {
  background: var(--go-green-dark);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.2) !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ─── HERO ───────────────────────────────────── */

.hero-section {
  background: var(--go-dark);
  padding: 64px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(134, 197, 130, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(134, 197, 130, 0.12);
  border: 0.5px solid rgba(134, 197, 130, 0.3);
  color: var(--go-green);
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--go-green);
  flex-shrink: 0;
}

.hero-section h1 {
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-section h1 em {
  color: var(--go-green);
  font-style: normal;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 32px;
}

.btn-hero-primary {
  background: var(--go-green);
  color: var(--go-dark);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  display: inline-block;
  transition: background 0.15s;
}

.btn-hero-primary:hover {
  background: var(--go-green-dark);
  color: #fff;
}

.btn-hero-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  padding: 11px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}

.btn-hero-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ─── RISK CARDS ─────────────────────────────── */

.risk-section {
  padding: 48px 0;
  background: #fff;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 20px;
}

.risk-card {
  background: #fff;
  border: 0.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.risk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.risk-card.card-none  { border-color: #ddd; }
.risk-card.card-low   { border-color: rgba(40, 167, 69, 0.25); }
.risk-card.card-med   { border-color: rgba(224, 168, 0, 0.35); }
.risk-card.card-high  { border-color: rgba(220, 53, 69, 0.25); }

.risk-dot-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-dot-wrap.none { background: #f0f0f0; }
.risk-dot-wrap.low  { background: #d4edda; }
.risk-dot-wrap.med  { background: #fff3cd; }
.risk-dot-wrap.high { background: #f8d7da; }

.risk-dot-inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.risk-dot-inner.none { background: #bbb; }
.risk-dot-inner.low  { background: #28a745; }
.risk-dot-inner.med  { background: #e0a800; }
.risk-dot-inner.high { background: #dc3545; }

.risk-card h5 {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.risk-card p {
  font-size: 13px;
  color: #777;
  line-height: 1.45;
  margin: 0;
}

/* ─── DASHBOARD CARDS ────────────────────────── */

.stat-card {
  background: #fff;
  border: 0.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
}

.stat-card .stat-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 500;
  color: #1a1a1a;
}

/* ─── FORMS ──────────────────────────────────── */

.form-card {
  background: #fff;
  border: 0.5px solid #e8e8e8;
  border-radius: 14px;
  padding: 32px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  border: 0.5px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fafafa;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--go-green);
  box-shadow: 0 0 0 3px rgba(134, 197, 130, 0.15);
  background: #fff;
  outline: none;
}

.btn-go {
  background: var(--go-green);
  color: var(--go-dark);
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-go:hover {
  background: var(--go-green-dark);
  color: #fff;
}

.btn-go-outline {
  background: transparent;
  color: var(--go-dark);
  font-weight: 500;
  border: 0.5px solid #ccc;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-go-outline:hover {
  border-color: var(--go-green);
  color: var(--go-green-dark);
}

/* ─── ALERTS / FLASH ─────────────────────────── */

.alert-success {
  background: rgba(134, 197, 130, 0.12);
  border-color: rgba(134, 197, 130, 0.4);
  color: #1e4d1b;
  border-radius: 8px;
}

.alert-danger {
  background: #fff0f0;
  border-color: rgba(220, 53, 69, 0.3);
  color: #7a1a1a;
  border-radius: 8px;
}

/* ─── RISK RESULT BADGE (за страницата check) ── */

.risk-result {
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

.risk-result.no-data {
  background: #f5f5f5;
  color: #555;
  border: 0.5px solid #ddd;
}

.risk-result.low {
  background: #d4edda;
  color: #155724;
  border: 0.5px solid rgba(40,167,69,0.3);
}

.risk-result.medium {
  background: #fff3cd;
  color: #856404;
  border: 0.5px solid rgba(224,168,0,0.4);
}

.risk-result.high {
  background: #f8d7da;
  color: #721c24;
  border: 0.5px solid rgba(220,53,69,0.3);
}

/* ─── FOOTER ─────────────────────────────────── */

footer {
  background: var(--go-dark) !important;
  border-top: 1px solid var(--go-border);
  color: rgba(255, 255, 255, 0.3) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.4) !important;
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--go-green) !important;
}

/* ─── UTILITIES ──────────────────────────────── */

.text-go-green { color: var(--go-green); }
.bg-go-dark    { background: var(--go-dark); }

/* ─── RESPONSIVE ─────────────────────────────── */

@media (max-width: 768px) {
  .hero-section h1 { font-size: 28px; }
  .hero-section     { padding: 44px 0 52px; }
}

/* Badge helpers */
.badge-nd   { background: #f0f0f0; color: #666 !important; }
.badge-low  { background: #d4edda; color: #155724 !important; }
.badge-med  { background: #fff3cd; color: #856404 !important; }
.badge-high { background: #f8d7da; color: #721c24 !important; }
.badge-pend { background: #fff3cd; color: #856404 !important; }
.badge-ok   { background: #d4edda; color: #155724 !important; }
.badge-rej  { background: #f8d7da; color: #721c24 !important; }

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

/* ─── SIDEBAR ────────────────────────────────── */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--color-text-primary, #333);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
    border: 0.5px solid transparent;
}

.sidebar-link:hover {
    background: #f0f7ee;
    color: #0f1a14;
}

.sidebar-link.active {
    background: #e8f5e6;
    color: #2d6e28;
    border-color: rgba(134,197,130,0.3);
    font-weight: 500;
}

/* Основен контент заема цялото пространство */
main {
    flex: 1;
}

/* Таблици на мобилен */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}



/* Мобилен fix */
@media (max-width: 991px) {
    .d-flex.gap-3 {
        flex-direction: column;
    }
}
