/* ===== FRIZERAPP GLOBALNI STILOVI ===== */

:root {
  /* Modern dark-blue palette */
  --bg-dark: #0b1f3a; /* slightly brighter dark blue */
  --bg-mid:  #123a5a; /* brighter blue panel */
  --bg-light: #1f5580; /* bright blue gradient */
  --primary:  #38bdf8; /* brighter primary action */
  --accent:   #60a5fa; /* accent blue */
  --muted:    #b7c6d6; /* lighter gray text */
  --surface:  rgba(255,255,255,0.04);
  --card:     rgba(15,30,45,0.60);
  --white:    #ffffff;
  --text:     #ffffff;
  --success:  #22c55e;
  --danger:   #ef4444;

  /* Optional accent palettes */
  --accent-gold: #D4AF37;
  --accent-teal: #14b8a6;
  --accent-purple: #8B00FF;
}

/* Globalni body gradient */
body {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid)) !important;
  min-height: 100vh;
}

/* Force core text elements to use theme text (white) */
body, p, span, label, a, li, td, th, input, textarea, select {
  color: var(--text) !important;
}

/* Turquoise + Gold gradient for hero/login */
:root {
  --turquoise: #06b6d4;
  --gold: #D4AF37;
}

/* Login stranica */
.login-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.login-box input {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.login-box button {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--white);
  font-weight: bold;
  border: none;
}

.login-box button:hover {
  filter: brightness(1.05);
}

/* ===== Intensified hero + CTA styles ===== */
.login-box {
  background: linear-gradient(180deg, rgba(6,20,40,0.96), rgba(6,20,40,0.9));
  border-radius: 12px;
  border: 2px solid var(--gold);
  box-shadow: 0 18px 50px rgba(6,20,40,0.72), 0 6px 24px rgba(212,175,55,0.06);
}

.btn-gold {
  background: linear-gradient(90deg, var(--gold), #b8872a) !important;
  color: #071427 !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 40px rgba(212,175,55,0.16) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  transition: transform .12s ease, box-shadow .12s ease !important;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(212,175,55,0.22) !important; }

.cta-gold {
  background: linear-gradient(90deg, var(--gold), var(--turquoise)) !important;
  color: #071427 !important;
  font-weight: 700 !important;
  padding: .5rem 1rem !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 30px rgba(212,175,55,0.12) !important;
}
.cta-gold:hover { filter: brightness(1.02); transform: translateY(-2px); }

.dashboard-hero {
  background: linear-gradient(90deg, rgba(6,182,212,0.12), rgba(212,175,55,0.06));
  border: 1px solid rgba(212,175,55,0.06);
  box-shadow: 0 12px 40px rgba(6,20,40,0.6);
  padding: 20px;
}

.glass-card:hover {
  box-shadow: 0 20px 60px rgba(6,20,40,0.7), 0 6px 30px rgba(212,175,55,0.06) !important;
  border-color: rgba(212,175,55,0.12) !important;
  transform: translateY(-4px);
}

/* Stat cards - gold accents */
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(212,175,55,0.06);
  box-shadow: 0 10px 30px rgba(6,20,40,0.5), 0 4px 18px rgba(212,175,55,0.04);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.stat-card .label { color: var(--muted); font-size: 12px; letter-spacing: 1px; font-weight: 700; text-transform: uppercase; }
.stat-card .value { color: var(--white); font-size: 1.15rem; font-weight: 800; margin-top: 6px; }
.stat-card.gold { border-left: 4px solid var(--gold); }
.stat-card.turquoise { border-left: 4px solid var(--turquoise); }
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 26px 70px rgba(6,20,40,0.72), 0 12px 40px rgba(212,175,55,0.08); }

/* Typography improvements */
h1, h2, h3 { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
p, span, label, a { line-height: 1.4; }

/* Reduce heavy rounded inputs for compact forms */
input[type="text"], input[type="password"], select, textarea { border-radius: 10px !important; }

/* Glass containers */
.glass-container {
  background: var(--card);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.04);
}

.glass-card {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Header/Navigation */
header, section[class*="header"], section[class*="pt-"] {
  background: linear-gradient(90deg, var(--bg-mid), var(--bg-light)) !important;
}

/* Dugmići */
button {
  min-height: 44px;
}

button[type="submit"],
button:not(.btn-secondary):not(.btn-danger):not(.btn-warning) {
  background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
  color: var(--white) !important;
}

button:hover {
  filter: brightness(1.1);
}

/* Input polja */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
  border: 2px solid #ddd !important;
  border-radius: 12px !important;
  padding: 12px !important;
  font-size: 16px !important;
  min-height: 44px !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(13,110,253,0.08) !important;
}

/* Logo/Icon styling */
.logo-circle {
  border: 3px solid #ffffff;
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.9),
    0 0 50px rgba(255, 255, 255, 0.6);
}

/* Inline SVG logo sizing + wrapper */
.logo-wrapper { display: inline-flex; align-items: center; justify-content: center; }
.logo-svg { width: 96px; height: 96px; display: block; }
.logo-svg text { letter-spacing: 0.6px; }
.logo-circle { object-fit: cover; }

/* Tekst na gradijentu */
section[class*="pt-"] h1,
section[class*="pt-"] h2 {
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile optimizacija */
@media (max-width: 768px) {
  body { font-size: 14px; }
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.1rem !important; }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="time"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important; /* Sprječava zoom na iPhone */
    padding: 14px 12px !important;
    min-height: 44px !important;
  }

  button {
    min-height: 44px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  main {
    margin-bottom: 120px !important;
  }

  table {
    font-size: 0.85rem;
  }

  .px-4 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  .gap-4 { gap: 0.75rem !important; }

  /* Floating PWA install button (mobile only) */
  .pwa-install-floating {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 1200;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--turquoise));
    color: #071427;
    box-shadow: 0 12px 40px rgba(6,20,40,0.5), 0 6px 18px rgba(212,175,55,0.08);
    border: 2px solid rgba(255,255,255,0.06);
    cursor: pointer;
    font-size: 20px;
  }

  .pwa-install-floating.hidden { display: none !important; }
}

/* Bottom navigation (mobile app-style) */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: none; /* shown only on small screens via media query */
  background: linear-gradient(180deg, rgba(8,18,30,0.9), rgba(6,12,22,0.95));
  border-top: 1px solid rgba(255,255,255,0.04);
  z-index: 60;
  backdrop-filter: blur(8px);
}
.bottom-nav .nav-inner {
  max-width: 900px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.bottom-nav a, .bottom-nav button {
  color: var(--text);
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  font-size: 12px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
}
.bottom-nav a .icon, .bottom-nav button .icon { font-size: 20px; }
.bottom-nav a.active, .bottom-nav a:hover, .bottom-nav button:hover { background: rgba(255,255,255,0.03); }

@media (max-width: 768px) {
    /* bottom-nav hidden by default to keep legacy look */
    /* main padding restored to default (no extra bottom space) */
}

/* Tablet optimizacija */
@media (min-width: 768px) and (max-width: 1024px) {
  main {
    margin-bottom: 60px;
  }
}

/* Print */
@media print {
  body {
    background: white !important;
  }
  .glass-container {
    box-shadow: none !important;
  }
}
