/* =========================================================
   8) USER PROFIL (uzivatel/profil.php) – vše v app.css
   ========================================================= */

/* Layout stránky profilu */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Header profilu (2 sloupce) */
.profile-header {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
  padding: 30px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .profile-header {
    grid-template-columns: 280px 1fr;
  }
}

/* Levý sloupec */
.profile-sidebar {
  display: flex;
  flex-direction: column;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ot-blue) 0%, #0056b3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.2);
  margin: 0 auto 20px;
}

.profile-avatar i {
  font-size: 4rem;
  color: #fff;
}

.profile-nickname {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
  text-align: center;
}

.profile-fullname {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Badge (profil používá .badge, ale Bootstrap taky.
   Tohle je šetrná úprava jen pro profilové badge varianty) */
.badge-role {
  margin-bottom: 15px;
  text-align: center;
  display: block;
}

/* Tyto třídy používáš jako badge-admin/badge-spravce/badge-user */
.badge-admin {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border: 2px solid #ef4444;
}

.badge-spravce {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid #10b981;
}

.badge-user {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--ot-blue);
  border: 2px solid var(--ot-blue);
}

/* Info karty vlevo */
.info-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #fecdd3;
  width: 100%;
  margin-top: 15px;
}

.info-card-spravce {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
}

.info-card .card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #fecdd3;
}

.info-card-spravce .card-header {
  border-bottom-color: #86efac;
}

.info-card .card-header i {
  font-size: 1.2rem;
  margin-right: 10px;
}

.info-card .card-title {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card .card-content {
  text-align: center;
}

.card-main-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.card-secondary-text {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 8px;
}

.card-details {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 10px;
  text-align: left;
}

.card-details i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.card-timer {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  margin-top: 10px;
}

.timer-waiting {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.timer-ready {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #34d399;
}

.timer-info {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 8px;
  text-align: center;
}

/* Pravý sloupec */
.profile-main {
  display: flex;
  flex-direction: column;
}

/* Kontakt */
.contact-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  border: 2px solid #e2e8f0;
  margin-bottom: 25px;
}

.contact-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ot-blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.contact-title i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.contact-label i {
  margin-right: 8px;
  font-size: 0.9rem;
}

.contact-value {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

/* Level karta */
.level-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 25px;
  border: 2px solid #e2e8f0;
  margin-bottom: 25px;
}

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.level-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ot-blue);
  display: flex;
  align-items: center;
}

.level-title i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.level-number {
  background: var(--ot-blue);
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 800;
}

/* TRolary display */
.trolary-display {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.trolary-icon {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.trolary-info {
  flex: 1;
}

.trolary-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.trolary-level {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 600;
}

/* Progress */
.progress-container {
  margin: 20px 0;
}

.progress-bar {
  height: 10px;
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ot-blue), #0056b3);
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

/* Akční tlačítka */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.action-buttons .btn {
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

/* Spodní sekce (místa/akce/chat) */
.profile-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 768px) {
  .profile-sections {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .profile-sections {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-header {
  padding: 20px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ot-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 300px;
}

/* List item */
.item-list {
  display: flex;
  flex-direction: column;
}

.list-item {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s;
  text-decoration: none;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 15px;
}

.list-item:hover {
  background: #f8fafc;
  padding-left: 20px;
}

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-heart { background: #fee2e2; color: #dc2626; }
.icon-check { background: #d1fae5; color: #059669; }
.icon-calendar { background: #dbeafe; color: var(--ot-blue); }
.icon-chat { background: #f3e8ff; color: #7c3aed; }

.item-content {
  flex: 1;
}

.item-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.item-meta {
  font-size: 0.8rem;
  color: #64748b;
}

/* Empty state */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.empty-text {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-subtext {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Chat */
.chat-message {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.message-user {
  font-weight: 800;
  color: var(--ot-blue);
  font-size: 0.85rem;
}

.message-time {
  font-size: 0.75rem;
  color: #64748b;
}

.message-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 5px;
}

.tab-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-btn.active {
  border-width: 3px;
  transform: translateY(-2px);
}

.tab-heart.active {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

.tab-check.active {
  background: #f0fdf4;
  border-color: #059669;
  color: #059669;
}

.tab-calendar.active {
  background: #eff6ff;
  border-color: var(--ot-blue);
  color: var(--ot-blue);
}

/* Loading spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid var(--ot-blue);
  border-radius: 50%;
  animation: ot-spin 1s linear infinite;
  z-index: 10;
  display: none;
}

@keyframes ot-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================================================
   FIX: Navbar kontrast (bílé pozadí + bílý text)
   ========================================================= */
.navbar.navbar-dark {
  background-color: var(--ot-blue) !important;
}

.navbar.navbar-dark .navbar-brand,
.navbar.navbar-dark .nav-link,
.navbar.navbar-dark .navbar-toggler {
  color: rgba(255, 255, 255, 0.92) !important;
}

.navbar.navbar-dark .nav-link:hover,
.navbar.navbar-dark .nav-link.active {
  color: var(--ot-yellow) !important;
}

.navbar.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

#mainNavbar {
  background-color: #003366 !important;
}

#mainNavbar .navbar-brand,
#mainNavbar .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
  color: #ffc107 !important;
}

#mainNavbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* =========================================================
   9) MAIN DASHBOARD (main.php) – NOVÉ PRVKY PRO VZHLED
   ========================================================= */
:root {
  --ot-blue: #003366;
  --ot-red: #dc3545;
  --ot-yellow: #ffc107;
}

.hero-mini {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.05);
  margin-bottom: 30px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.card-custom {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

/* Unikátní vznášející se znak obce */
.znak-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 65px;
  height: 75px;
  background: #ffffff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

/* Služební dlaždice s informacemi */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 576px) {
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-box {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.info-box .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-box .value {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

/* Zlatá variace pro odměnu */
.info-box.gold {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}

.info-box.gold .label {
  color: #b45309;
}

.info-box.gold .value {
  color: #78350f;
}

/* Horizontální rozložení akcí */
.event-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: none;
}

@media (min-width: 576px) {
  .event-card {
    flex-direction: row;
    height: 180px;
  }
}

.event-plakat {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

@media (min-width: 576px) {
  .event-plakat {
    width: 140px;
    height: 100%;
  }
}

.event-body {
  padding: 20px;
  flex: 1;
}

/* Výletová karta */
.misto-card {
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {
  .misto-card {
    flex-direction: row;
    height: 180px;
  }
}

.misto-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

@media (min-width: 576px) {
  .misto-img {
    width: 160px;
    height: 100%;
  }
}

/* Mapa */
.map-section {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 30px;
}

.map-container {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
/* FIX: viditelnost textu v kartě "Co se dnes děje?" */
.event-card .event-body a,
.event-card .event-body a * {
  color: #fff !important;
}

.event-card .event-body a div:last-child{
  color: #86efac !important; /* zelené "Zobrazit detail ›" */
}