/* =======================================
   HONORAR - Globalni stilovi
   Light tema, moderniji + puniji UI
   SAFE verzija (bez potrebe za izmjenom HTML-a)
======================================= */

/* ==========================
   Design Tokens
========================== */
:root {
  --red: #c00d14;

  --blue: #2b7eb7;
  --blueLight: #80b2d4;

  --bg: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;

  --green: #16a34a;
  --danger: #dc2626;
}

/* ==========================
   Base
========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* suptilno bogatiji background */
  background:
    radial-gradient(1000px 500px at 0% -10%, rgba(128,178,212,0.25), transparent 60%),
    radial-gradient(800px 400px at 100% 0%, rgba(43,126,183,0.12), transparent 60%),
    linear-gradient(180deg, #f8fafc, var(--bg));

  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb {
  background: var(--blueLight);
  border-radius: 999px;
}

/* Links */
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ==========================
   NAV
========================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 14px 18px;

  border-bottom: 1px solid rgba(128,178,212,0.8);

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);

  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 20px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 32px;
}

.spacer { flex: 1; }

/* NAV item */
.pill {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 8px 14px;

  border-radius: 999px;

  font-size: 15px;
  font-weight: 700;

  color: #4b5563;
  background: transparent;
  border: 1px solid transparent;

  cursor: pointer;

  transition: all 0.15s ease;
}

.pill:hover {
  background: rgba(128,178,212,0.25);
  color: var(--blue);
  transform: translateY(-1px);
  border-color: rgba(43,126,183,0.25);
  box-shadow: 0 8px 20px rgba(43,126,183,0.08);
}

/* ==========================
   CONTAINER
========================== */

.container {
  max-width: 1100px;
  margin: 26px auto 48px auto;
  padding: 0 18px 48px 18px;
}

/* ==========================
   CARD
========================== */

.card {
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  border: 1px solid rgba(229,231,235,0.95);

  padding: 22px 24px;
  margin-bottom: 20px;

  box-shadow:
    0 18px 40px rgba(15,23,42,0.07),
    0 2px 6px rgba(15,23,42,0.05);

  transition: all 0.15s ease;
}

.card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(43,126,183,0.25);
  box-shadow:
    0 22px 50px rgba(15,23,42,0.08),
    0 0 0 2px rgba(43,126,183,0.06);
}

.card h1 {
  font-size: 38px;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.card h2 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.card h3 {
  font-size: 20px;
  margin: 0 0 8px 0;
}

/* ==========================
   TEXT
========================== */

.muted {
  color: var(--muted);
  font-size: 15px;
}

.banner {
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 14px;
  font-size: 15px;
}

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

.label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.input,
textarea.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 15px;

  transition: all 0.15s ease;
}

.input:focus,
textarea.input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43,126,183,0.18);
  outline: none;
}

textarea.input {
  min-height: 100px;
  resize: vertical;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;
  border-radius: 999px;
  border: none;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  background: var(--red);
  color: #fff;

  box-shadow: 0 14px 28px rgba(192,13,20,0.22);

  transition: all 0.15s ease;
}

.btn:hover {
  background: #a90b11;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(192,13,20,0.28);
}

.btn.secondary {
  background: rgba(128,178,212,0.22);
  color: var(--blue);
  border: 1px solid rgba(43,126,183,0.25);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(128,178,212,0.30);
}

.btn.success {
  background: var(--green);
}

.btn.danger {
  background: var(--danger);
}

/* ==========================
   TABLE
========================== */

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

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.table thead {
  background: #f3f4f6;
}

.table tbody tr:hover {
  background: #f9fafb;
}

/* ==========================
   STATUS
========================== */

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.status-active { background:#e7fff3; border-color:#20a76b; color:#0b6b42; }
.status-offer_pending { background:#fff8e6; border-color:#e1a500; color:#8a6400; }
.status-filled { background:#e8f0ff; border-color:#3563e9; color:#1c3fa0; }
.status-expired { background:#f5f5f5; border-color:#c0c0c0; color:#666; }

/* ==========================
   NOTIFICATIONS
========================== */

#notifBellBtn { position: relative; }

.badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.notif-dropdown {
  position: absolute;
  right: 16px;
  top: 52px;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 60px rgba(15,23,42,0.20),
    0 2px 8px rgba(15,23,42,0.10);
  padding: 12px;
}

/* ==========================
   AUTH
========================== */

.auth-layout {
  max-width: 520px;
  margin: 48px auto;
  padding: 0 18px 40px 18px;
}

.auth-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 768px) {
  .nav { flex-wrap: wrap; }
  .container { margin-top: 18px; }
}

@media (max-width: 520px) {
  .brand { width: 100%; justify-content: center; }
  .spacer { display: none; }
  .pill { flex: 1; justify-content: center; }
}