/* ═══════════════════════════════════════════════════════
   chatCms — Fishing tema  (svijetla, plavo/bijela)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Lato:wght@300;400;500;700&display=swap');

:root {
  --bg:        #f0f7ff;
  --bg2:       #ffffff;
  --bg3:       #e3f0fb;
  --border:    #b8d6ee;
  --text:      #1a2e3a;
  --muted:     #5a7a8a;
  --primary:   #1a6fa8;
  --primary2:  #155d8e;
  --accent:    #0d9488;
  --success:   #16a34a;
  --error:     #dc2626;
  --warning:   #d97706;
  --font:      'Lato', sans-serif;
  --font-h:    'Merriweather', serif;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(26,111,168,.10);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary2); text-decoration: underline; }

/* ── Voda/talasi pozadina ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180'%3E%3Cpath fill='%231a6fa8' fill-opacity='0.07' d='M0,96L48,106.7C96,117,192,139,288,133.3C384,128,480,96,576,90.7C672,85,768,107,864,112C960,117,1056,107,1152,96C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

/* ── Navbar ───────────────────────────────────────────── */
.cc-nav {
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(26,111,168,.08);
  position: sticky; top: 0; z-index: 100;
}
.cc-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; gap: 6px;
  height: 56px;
}
.cc-brand {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none !important;
  margin-right: 8px;
  white-space: nowrap;
}
.cc-nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.cc-nav-links a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all .15s;
  display: flex; align-items: center; gap: 5px;
}
.cc-nav-links a:hover { background: var(--bg3); color: var(--primary); text-decoration: none; }

/* User dugme */
.cc-nav-user { position: relative; }
.cc-nav-user-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px 5px 8px;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  font-size: .86rem;
  color: var(--text);
  font-family: var(--font);
}
.cc-nav-user-btn:hover { background: var(--border); }
.cc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.cc-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 180px; z-index: 200; overflow: hidden;
}
.cc-nav-user:hover .cc-dropdown,
.cc-nav-user:focus-within .cc-dropdown { display: block; }
.cc-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; color: var(--text); font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.cc-dropdown a:last-child { border-bottom: none; }
.cc-dropdown a:hover { background: var(--bg3); text-decoration: none; }
.cc-dropdown hr { border: none; border-top: 1px solid var(--border); }

.cc-auth-btns { display: flex; gap: 8px; margin-left: auto; }

/* ── Mobile Nav ─────────────────────────────────────── */
.cc-mobile-menu {
  display: none; flex-direction: column;
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  padding: 6px 0;
}
.cc-mobile-menu.open { display: flex; }
.cc-mobile-menu a {
  padding: 11px 20px; color: var(--text);
  font-size: .92rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.cc-mobile-menu a:last-child { border-bottom: none; }
.cc-mobile-menu a:hover { background: var(--bg3); text-decoration: none; }
.cc-nav-hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem;
  cursor: pointer; padding: 4px 8px; margin-left: auto;
}
@media(max-width: 640px) {
  .cc-nav-links { display: none !important; }
  .cc-nav-user  { display: none !important; }
  .cc-auth-btns { display: none !important; }
  .cc-nav-hamburger { display: block; }
}

/* ── Flash poruke ─────────────────────────────────────── */
.cc-flash { padding: 10px 20px; font-size: .9rem; text-align: center; }
.cc-flash-success { background: #dcfce7; color: #15803d; border-bottom: 1px solid #86efac; }
.cc-flash-error   { background: #fee2e2; color: #b91c1c; border-bottom: 1px solid #fca5a5; }

/* ── Main sadržaj ─────────────────────────────────────── */
.cc-main {
  max-width: 100%;
  margin: 0;
  padding: 24px 16px; position: relative; z-index: 1;
}
.cc-main.cc-chat-page {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

/* ── Kartice ──────────────────────────────────────────── */
.cc-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ── Dugmad ───────────────────────────────────────────── */
.cc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius);
  font-size: .88rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none; transition: all .15s;
  text-decoration: none !important;
}
.cc-btn-primary { background: var(--primary); color: #fff; }
.cc-btn-primary:hover { background: var(--primary2); color: #fff; }
.cc-btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.cc-btn-outline:hover { background: var(--bg3); }
.cc-btn-sm { padding: 5px 12px; font-size: .8rem; }
.cc-btn-danger { background: var(--error); color: #fff; }
.cc-btn-danger:hover { background: #b91c1c; color: #fff; }

/* ── Forme ────────────────────────────────────────────── */
.cc-form-group { margin-bottom: 16px; }
.cc-label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.cc-input, .cc-select, .cc-textarea {
  width: 100%; padding: 9px 13px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font); font-size: .9rem; transition: border .15s;
}
.cc-input:focus, .cc-select:focus, .cc-textarea:focus {
  outline: none; border-color: var(--primary);
}
.cc-textarea { resize: vertical; min-height: 90px; }

/* ── Tabele ───────────────────────────────────────────── */
.cc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cc-table th { background: var(--bg3); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--border); }
.cc-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.cc-table tr:last-child td { border-bottom: none; }
.cc-table tr:hover td { background: var(--bg3); }

/* ── Tag ──────────────────────────────────────────────── */
.cc-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem; border: 1px solid var(--border); color: var(--muted); }

/* ── Paginacija ───────────────────────────────────────── */
.cc-pagination { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.cc-pagination a, .cc-pagination span {
  padding: 5px 12px; border-radius: var(--radius);
  font-size: .85rem; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text);
}
.cc-pagination a:hover { background: var(--bg3); text-decoration: none; }
.cc-pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Footer ───────────────────────────────────────────── */
.cc-footer {
  background: var(--bg2);
  border-top: 2px solid var(--border);
  padding: 14px 16px;
  font-size: .8rem; color: var(--muted);
  position: relative; z-index: 1;
  margin-top: 40px;
}
.cc-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}

/* ── Chat ─────────────────────────────────────────────── */
.cc-chat-layout {
  display: flex; gap: 0;
  height: calc(100vh - 56px);
  margin: -24px -16px; overflow: hidden;
}
.cc-chat-sidebar {
  width: 200px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  overflow-y: auto; padding: 12px 0;
}
.cc-chat-sidebar-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted);
  padding: 6px 14px 4px;
}
.cc-chat-sidebar a {
  display: block; padding: 8px 14px;
  color: var(--text); font-size: .88rem; border-radius: 0;
}
.cc-chat-sidebar a:hover, .cc-chat-sidebar a.active { background: var(--bg3); text-decoration: none; }
.cc-chat-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.cc-chat-header {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px;
}
.cc-chat-messages { flex: 1; overflow-y: auto; padding: 12px 16px; }
.cc-msg { margin-bottom: 8px; font-size: .9rem; }
.cc-msg-nick { font-weight: 700; margin-right: 6px; }
.cc-msg-text { color: var(--text); }
.cc-msg-time { font-size: .72rem; color: var(--muted); margin-left: 6px; }
.cc-chat-input {
  border-top: 1px solid var(--border); background: var(--bg2);
  padding: 10px 14px; display: flex; gap: 8px; flex-wrap: wrap;
}
.cc-chat-input input {
  flex: 1; padding: 8px 12px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 20px; color: var(--text); font-family: var(--font);
  font-size: .9rem;
}
.cc-chat-input input:focus { outline: none; border-color: var(--primary); }
.cc-users-sidebar {
  width: 160px; flex-shrink: 0;
  background: var(--bg2); border-left: 1px solid var(--border);
  overflow-y: auto; padding: 10px 0;
}
.cc-user-item { padding: 5px 10px; font-size: .82rem; }
.cc-sex-m { color: var(--primary); margin-right: 3px; }
.cc-sex-f { color: #e879a0; margin-right: 3px; }

/* ── Galerija ─────────────────────────────────────────── */
.cc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.cc-gallery-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.cc-gallery-item img { width: 100%; height: 150px; object-fit: cover; display: block; }
.cc-gallery-meta { padding: 8px 10px; font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; }

/* ── Profil ───────────────────────────────────────────── */
.cc-profile-header {
  display: flex; gap: 20px; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 20px;
}
.cc-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--border);
}
.cc-avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg3); border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--primary);
}

/* ── Forum ────────────────────────────────────────────── */
.cc-forum-topic {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.cc-forum-topic:hover { background: var(--bg3); }
.cc-forum-topic.pinned { border-left: 3px solid var(--accent); }
.cc-forum-topic.locked { opacity: .7; }

/* ── Admin ────────────────────────────────────────────── */
.cc-admin-topbar {
  background: var(--primary);
  color: #fff;
  padding: 0 20px;
  height: 48px;
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; position: sticky; top: 0; z-index: 100;
}
.cc-admin-topbar a { color: rgba(255,255,255,.75); }
.cc-admin-topbar a:hover { color: #fff; text-decoration: none; }
.cc-admin-wrap { display: flex; min-height: calc(100vh - 48px); }
.cc-admin-sidebar {
  width: 200px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 10px 0;
}
.cc-admin-sidebar a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px; color: var(--text); font-size: .88rem;
  border-left: 3px solid transparent;
}
.cc-admin-sidebar a:hover, .cc-admin-sidebar a.active {
  background: var(--bg3); color: var(--primary);
  border-left-color: var(--primary); text-decoration: none;
}
.cc-admin-group {
  padding: 14px 18px 4px; font-size: .7rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.cc-admin-content { flex: 1; padding: 24px; overflow-x: auto; }

/* ── Notifikacije ─────────────────────────────────────── */
.cc-notif-badge {
  background: var(--error); color: #fff;
  border-radius: 10px; padding: 1px 6px;
  font-size: .68rem; font-weight: 700; margin-left: 4px;
}
.cc-notif-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; transition: background .15s;
  position: relative;
}
.cc-notif-item:last-child { border-bottom: none; }
.cc-notif-item:hover { background: var(--bg3); }
.cc-notif-item.unread { background: rgba(26,111,168,.05); }
.cc-notif-body { flex: 1; }
.cc-notif-msg { font-size: .88rem; line-height: 1.4; }
.cc-notif-time { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.cc-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ── Inbox badge ──────────────────────────────────────── */
.cc-inbox-badge {
  background: var(--error); color: #fff;
  border-radius: 10px; padding: 1px 6px;
  font-size: .68rem; font-weight: 700;
}

/* ── Stat kartice ─────────────────────────────────────── */
.cc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.cc-stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px;
  text-align: center; box-shadow: var(--shadow);
}
.cc-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); font-family: var(--font-h); }
.cc-stat-label { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ── Mobile admin ─────────────────────────────────────── */
.cc-admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 199; }
.cc-admin-overlay.open { display: block; }
.cc-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none;
  background: rgba(255,255,255,.15); color: #fff;
  cursor: pointer; font-size: 1.2rem; margin-right: 6px;
  border-radius: 6px;
}
@media(max-width: 768px) {
  .cc-admin-sidebar { position: fixed; left: -240px; top: 0; height: 100vh; z-index: 200; transition: left .25s ease; overflow-y: auto; width: 220px; }
  .cc-admin-sidebar.open { left: 0; }
  .cc-admin-wrap { display: block; }
  .cc-admin-content { padding: 14px; }
  .cc-hamburger { display: flex !important; }
}
@media(max-width: 600px) {
  .cc-main { padding: 12px !important; }
}

/* ── Forum avatar fix ─────────────────────────────────── */
.cc-avatar-img {
  width: 42px !important;
  height: 42px !important;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.cc-avatar-ph {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ── Chat avatar ──────────────────────────────────────── */
.cc-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.cc-msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
  margin-top: 2px;
}
.cc-msg-avatar-ph {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  color: var(--primary); flex-shrink: 0;
  margin-top: 2px;
}
.cc-msg-body { flex: 1; min-width: 0; }
.cc-msg-nick { font-weight: 700; margin-right: 6px; }
.cc-msg-text { color: var(--text); word-break: break-word; }
.cc-msg-time { font-size: .72rem; color: var(--muted); margin-left: 6px; }

/* ── Profil avatar fix ────────────────────────────────── */
.cc-profile-avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

/* ── Galerija slike fix ───────────────────────────────── */
.cc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.cc-gallery-item img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  display: block;
}
/* Slike u postu/profilu */
img {
  max-width: 100%;
  height: auto;
}

/* ── Forum upgrade ────────────────────────────────────── */
.cc-post {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cc-post-author {
  width: 110px; flex-shrink: 0;
  background: var(--bg3);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.cc-post-body {
  flex: 1; padding: 16px; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cc-post-text { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.cc-post-image {
  max-width: 100%; max-height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.cc-post-footer {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── Pretraga ─────────────────────────────────────────── */
.cc-search-result {
  display: block; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: background .15s;
}
.cc-search-result:last-child { border-bottom: none; }
.cc-search-result:hover { background: var(--bg3); }
.cc-search-title { font-weight: 600; margin-bottom: 4px; }
.cc-search-meta { font-size: .78rem; display: flex; gap: 6px; flex-wrap: wrap; }

@media(max-width: 500px) {
  .cc-post { flex-direction: column; }
  .cc-post-author { width: 100%; flex-direction: row; padding: 10px 14px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── Marketplace ──────────────────────────────────────── */
.cc-market-card {
  display: block; text-decoration: none !important;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: var(--text);
  transition: box-shadow .15s, transform .15s;
}
.cc-market-card:hover { box-shadow: 0 4px 20px rgba(26,111,168,.15); transform: translateY(-2px); }

/* ── Chat fix za sidebar layout ───────────────────────── */
.cc-chat-layout {
  display: flex !important;
  height: calc(100vh - 48px) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.cc-main:has(.cc-chat-layout) {
  padding: 0 !important;
}

/* ── Chat mobilni ─────────────────────────────────────── */
@media(max-width: 768px) {
  .cc-chat-layout {
    height: calc(100vh - 48px) !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .cc-chat-sidebar { display: none !important; }
  .cc-users-sidebar { display: none !important; }
  .cc-chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100% !important;
    flex: 1 !important;
  }
  .cc-chat-header {
    order: 0;
    flex-shrink: 0;
  }
  .cc-chat-input {
    order: 1;
    flex-shrink: 0;
    border-top: none !important;
    border-bottom: 1px solid var(--border);
  }
  .cc-chat-messages {
    order: 2;
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    justify-content: flex-end;
    padding-bottom: 8px;
  }
  /* Sakrij desni sidebar na mobilnom */
  .cc-site-wrap .cc-sidebar {
    display: none;
  }
  .cc-site-wrap .cc-sidebar.open {
    display: flex !important;
  }
}

/* ── Chat lobby sobe ──────────────────────────────────── */
.cc-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.cc-room-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
  cursor: pointer;
}
.cc-room-card:hover {
  box-shadow: 0 4px 16px rgba(26,111,168,.15);
  transform: translateY(-2px);
}
.cc-room-card h3 {
  font-family: var(--font-h);
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1rem;
}
.cc-room-card p {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 12px;
}

/* ── Chat poruke kao kartice ──────────────────────────── */
.cc-chat-messages .cc-msg {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 4px 8px;
  box-shadow: var(--shadow);
}

/* ── Klubovi mobilni ──────────────────────────────────── */
@media(max-width: 640px) {
  .cc-clubs-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Dark mode ────────────────────────────────────────── */
body.dark-mode {
  --bg:        #0f1923;
  --bg2:       #1a2535;
  --bg3:       #243044;
  --border:    #2d3f55;
  --text:      #e2eaf4;
  --muted:     #7a90a8;
  --primary:   #4da6ff;
  --primary2:  #2d8ff0;
  --accent:    #3fb950;
  --success:   #3fb950;
  --error:     #f85149;
  --warning:   #d29922;
}
body.dark-mode::before { display:none; }
body.dark-mode .cc-sidebar { background:var(--bg2); }
body.dark-mode .cc-topbar  { background:var(--bg2); }
body.dark-mode .cc-footer  { background:var(--bg2); }
body.dark-mode .cc-nav     { background:var(--bg2); }
body.dark-mode .cc-card    { background:var(--bg2); border-color:var(--border); }
body.dark-mode .cc-admin-topbar { background:#1a3a5c; }
body.dark-mode .cc-admin-sidebar { background:var(--bg2); }

.cc-theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  cursor: pointer;
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cc-theme-toggle:hover { background: var(--bg3); }

/* ── Dark mode body fix ───────────────────────────────── */
body.dark-mode .cc-body {
  background: var(--bg);
}
body.dark-mode .cc-main {
  background: var(--bg);
}

/* ── Desktop sadrzaj sirina ───────────────────────────── */
.cc-body {
  background: var(--bg);
  width: 100%;
}

/* ── Container padding ────────────────────────────────── */
.cc-container {
  padding: 20px 16px;
}
@media(max-width: 768px) {
  .cc-container {
    padding: 14px 12px;
  }
}
