/* ====== Fonts ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ====== Global Light Mode ====== */
body {
  background-color: #fff8f3;
  color: #2b2b2b;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 90px; /* da bottom bar ne preklapa sadržaj */
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", sans-serif;
  color: #1c1c1c;
  letter-spacing: 0.3px;
  margin: 0 0 10px;
}

/* ====== Accent Colors ====== */
:root {
  --accent: #ff6f3c;      /* narandžasto-crvena – “appetite orange” */
  --accent-dark: #e45a2e;
  --accent-light: #ffd5bf;
  --surface: #fff;
  --border: #eee0d8;
  --text-muted: #666;
}

/* ====== Header ====== */
header.container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(255,111,60,0.15);
}

.header img {
    width:150px;
}

.main-banner {
  position: relative;
  width: 100%;
  height: 340px; 
  background: url('../img/2147953637.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  border-bottom: none;
}

.main-banner img {
    width: 150px;
    z-index: 999;
    position: absolute;
    top: 137px;
}

/* Poluprozirni overlay radi kontrasta teksta */
.main-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.55));
  z-index: 1;
}

/* Polukrug efekat dole */
.main-banner::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  background: #ffffff; 
  border-top-left-radius: 100% 350px;
  border-top-right-radius: 100% 350px;
  z-index: 2;
}

/* Tekst na slici */
.main-banner h1,
.main-banner h2 {
  position: relative;
  z-index: 3;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}
.main-banner h1 {
  font-size: 2.4rem;
}
.main-banner h2 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #ffd5bf;
}

/* Responsive */
@media (max-width: 768px) {
  .main-banner {
    height: 280px;
  }
  .main-banner::after {
    height: 60px;
  }
  .main-banner h1 {
    font-size: 1.8rem;
  }
  .main-banner h2 {
    font-size: 1rem;
  }
}


.brand-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.btn-cart {
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
}
.btn-cart:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(255,111,60,0.4);
}

/* ====== Filter Bar ====== */
.filter-bar {
  position: sticky;
  top: 84px;
  z-index: 999;
  display: flex;
  justify-content:center;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #333;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(255,111,60,0.4);
}

/* ====== Categories ====== */
.menu-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  margin: 22px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.menu-category-title {
  font-size: 1.5rem;

  color: var(--accent-dark);
  margin-bottom: 14px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}



/* ====== Menu Items ====== */
.menu-item {
  display: grid;
  grid-template-columns: 2fr 3fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
  border-top: 1px dashed var(--border);
  transition: all 0.2s ease;
}
.menu-item:first-child { border-top: none; }
.menu-item:hover {
  background: #fff3ed;
  transform: scale(1.01);
  border-radius: 8px;
}
.menu-text h4 {
  margin: 0;
  font-size: 1.1rem;

  color: #2b2b2b;
}
.menu-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ====== Tagovi ====== */
.menu-tags .badge {
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 15px;
  padding: 8px;
  margin-top:10px;
  align-items:center;
  color: #fff;
  margin-right: 6px;
}
.badge-popularno { background: #ffa600; }
.badge-ljuto { background: #e63946; }
.badge-posno { background: #06d6a0; }
.badge-na_akciji { background: #118ab2; }

/* ====== Price ====== */
.price {
  font-weight: 700;
  color: var(--accent-dark);
  justify-self: end;
  font-size: 1rem;
}
.price s {
  color: #999;
  margin-right: 6px;
  font-weight: 400;
}

/* ====== Buttons in menu ====== */
.btn-add {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(255,111,60,0.3);
}
.btn-add:hover {
  background: var(--accent-dark);
  box-shadow: 0 3px 12px rgba(255,111,60,0.5);
}

.btn-ai {
  background: #118ab2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 3px 8px rgba(17,138,178,0.4);
  transition: all 0.25s ease;
}
.btn-ai:hover {
  background: #0f6f8c;
  transform: translateY(-1px);
}

/* ====== Chat Assistant ====== */
.chat-toggle {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #118ab2;
  color: #fff;
  border: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(17,138,178,0.5);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.25s ease;
}
.chat-toggle:hover {
  box-shadow: 0 0 14px rgba(17,138,178,0.8);
  transform: scale(1.05);
}

.chat-bubble {
  position: fixed;
  bottom: 170px;
  right: 20px;
  width: 320px;
  max-height: 70vh;
  display: none;
  flex-direction: column;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 999;
}
.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.chat-input-area {
  display: flex;
  border-top: 1px solid var(--border);
}
.chat-input-area input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
}
.chat-input-area button {
  border: none;
  background: var(--accent);
  color: #fff;
  width: 46px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
}
.chat-input-area button:hover {
  background: var(--accent-dark);
}

/* ====== Bottom Action Bar ====== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  z-index: 10000;
  box-shadow: 0 -3px 15px rgba(255,111,60,0.15);
}
.btn-service {
  flex: 1;
  border-radius: 10px;
  padding: 14px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  border: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.call-waiter {
  background: #ff6f3c;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,111,60,0.4);
}
.call-waiter:hover {
  background: #e45a2e;
  box-shadow: 0 0 16px rgba(255,111,60,0.6);
}

.request-bill {
  background: #06d6a0;
  color: #fff;
  box-shadow: 0 0 12px rgba(6,214,160,0.4);
}
.request-bill:hover {
  background: #04b785;
  box-shadow: 0 0 16px rgba(6,214,160,0.6);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .menu-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .price { justify-self: start; }
  .menu-meta { display: flex; gap: 8px; }
  .chat-bubble { width: 90%; right: 5%; }
}


:root {
  --user-bg: linear-gradient(135deg, #0b914a, #28d98c);
  --bot-bg: linear-gradient(135deg, #1c1c3c, #343478);
  --bg: rgba(15,15,25,0.85);
  --border: rgba(255,255,255,0.1);
  --txt: #f1f1f1;
  --accent: #00eaff;
}

/* Toggle dugme */
#chatToggleBtn {
  position: fixed;
  right: 25px;
  bottom: 55px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bot-bg);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  transition: transform .2s ease;
  z-index: 1000;
}
#chatToggleBtn:hover { transform: scale(1.1); }

/* Glavni prozor */
#chatBubble {
  position: fixed;
  right: 25px;
  bottom: 95px;
  width: 370px;
  height: 520px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0,0,0,0.45);
  overflow: hidden;
  z-index: 999;
}

/* Poruke */
#chatMessages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
}
.message {
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 80%;
  line-height: 1.4;
  font-size: 14px;
  color: white;
  word-wrap: break-word;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.message.user {
  align-self: flex-end;
  background: var(--user-bg);
}
.message.bot {
  align-self: flex-start;
  background: var(--bot-bg);
}

/* Typing dots (AI piše...) */
.typing {
  display: inline-block;
  width: 28px;
  text-align: center;
}
.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background-color: #ccc;
  border-radius: 50%;
  opacity: 0.4;
  animation: blink 1.4s infinite both;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0% { opacity: 0.2; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0.2; transform: translateY(0); }
}

/* Input zona */
.chat-input-area {
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  padding: 12px;
  background: rgba(10,10,20,0.7);
}
#chatInput {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
}
#chatInput::placeholder { color: rgba(255,255,255,0.5); }
#sendBtn {
  width: 46px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: black;
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s ease;
}
#sendBtn:hover { transform: scale(1.05); }


.chat-message {
  position: relative;
  max-width: 80%;
  padding: 12px 16px;
  margin: 8px 0;
  line-height: 1.5;
  font-size: 15px;
  border-radius: 20px;
  word-break: break-word;
  font-family: "Poppins", sans-serif;
  animation: fadeIn .25s ease;
  color: #fff;
}

/* tvoje poruke (korisnik) */
.chat-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0b914a, #28d98c);
  border-top-right-radius: 4px; /* jedan ugao manji da liči na "rep" */
  box-shadow: 0 4px 10px rgba(11,145,74,0.25);
}

/* AI poruke */
.chat-message.ai {
  align-self: flex-start;
  background: linear-gradient(135deg, #00eaff, #0086b0);
  border-top-left-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,234,255,0.25);
}



/* efekat "disanja" – blagi bounce pri pojavi */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* "AI piše..." animacija */
.chat-message.typing {
  align-self: flex-start;
  background: linear-gradient(135deg, #00eaff, #0086b0);
  padding: 10px 18px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 28px;
}

.chat-message.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 3px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.5;
  animation: blink 1.4s infinite both;
}

.chat-message.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0% { opacity: 0.3; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-3px); }
  100% { opacity: 0.3; transform: translateY(0); }
}

/* Tri tačkice - typing animacija */
.typing-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 20px;
  padding: 4px 2px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.4;
  animation: blink 1.4s infinite both;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% { opacity: 0.2; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-3px); }
  100% { opacity: 0.2; transform: translateY(0); }
}
