/* =====================================================
   INTAROSPORT - STIL UNIFICAT
   Paletă coerentă: albastru închis, auriu, verde, roșu
   ===================================================== */

/* ====== PALETĂ DE CULORI ====== */
:root {
  --brand-bg: #0b1b45;      /* Albastru închis Intaro */
  --brand-text: #ffffff;    /* Text alb */
  --brand-gold: #EABE33;    /* Auriu accent */
  --brand-green: #2EB872;   /* Verde confirmare */
  --brand-green-hover: #3DCC85; /* Verde accent hover */
  --brand-red: #D64541;     /* Roșu vin */
  --brand-red-hover: #E14C48;   /* Roșu accent hover */
  --content-bg: #f7f8fa;    /* Fundal pagină */
  --card-bg: #ffffff;       /* Fundal carduri */
  --text: #111827;          /* Text principal */
  --muted: #6b7280;         /* Text secundar */
  --line: #e5e7eb;          /* Linii și borduri */
}

/* ====== STRUCTURĂ GENERALĂ ====== */
html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--content-bg);
  color: var(--text);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ====== NAVBAR PUBLIC ====== */
.navbar {
  background: var(--brand-bg) !important;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: var(--brand-text) !important;
  opacity: 0.95;
  font-weight: 500;
}

.navbar .nav-link:hover {
  opacity: 1;
  color: var(--brand-gold) !important;
}

/* ====== BANNER SUB NAVBAR ====== */
.banner-public {
  background-color: var(--brand-gold);
  color: #111;
  text-align: center;
  padding: 1rem 0;
}

.banner-public h5 {
  font-weight: 700;
}

/* ====== SIDEBAR (ADMIN / STAFF) ====== */
.sidebar {
  width: 250px;
  background-color: #1e1e2f;
  color: #fff;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  transition: all 0.3s;
}

.sidebar a {
  color: #cfd1d8;
  text-decoration: none;
  display: block;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.sidebar a:hover,
.sidebar a.active {
  background-color: #34344a;
  color: #fff;
  border-left: 3px solid var(--brand-gold);
}

.main-content {
  margin-left: 250px;
  flex: 1;
  background-color: var(--content-bg);
  min-height: 100vh;
}

.navbar-top {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* ====== RESPONSIVITATE SIDEBAR ====== */
@media (max-width: 992px) {
  .sidebar {
    left: -250px;
  }
  .sidebar.active {
    left: 0;
  }
  .main-content {
    margin-left: 0;
  }
}

/* ====== CARDURI, TABELE ȘI SLOTURI ====== */
.card {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.card-header.bg-primary {
  background-color: var(--brand-bg) !important;
  color: var(--brand-text) !important;
}

.table tbody tr:nth-child(even) {
  background: #fafafa;
}

.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.slot.free {
  background: rgba(46, 184, 114, 0.08); /* Verde subtil */
}

.slot.busy {
  background: rgba(214, 69, 65, 0.1);   /* Roșu subtil */
}

/* ====== BUTOANE ====== */
.btn {
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.btn-gold {
  background: var(--brand-gold);
  color: #111;
  border: none;
}

.btn-gold:hover {
  filter: brightness(0.95);
}

/* Verde elegant pentru „liber” */
.btn-success {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  color: #fff !important;
}

.btn-success:hover {
  background-color: var(--brand-green-hover) !important;
  border-color: var(--brand-green-hover) !important;
}

/* Roșu elegant pentru „ocupat” */
.btn-danger {
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #fff !important;
}

.btn-danger:hover {
  background-color: var(--brand-red-hover) !important;
  border-color: var(--brand-red-hover) !important;
}

/* Butoane neutre */
.btn-outline-secondary:hover {
  background-color: var(--brand-gold) !important;
  border-color: var(--brand-gold) !important;
  color: #111 !important;
}

/* ====== SECȚIUNEA DISPONIBILITATE ====== */
.section-disponibilitate {
  background: var(--brand-bg);
  color: var(--brand-text);
  padding: 1.5rem 0;
  text-align: center;
}

.section-disponibilitate h5 {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* ===== LOG TABLE ===== */
.table-dark th {
  background-color: var(--brand-bg) !important;
  color: var(--brand-text) !important;
}
.table-hover tbody tr:hover {
  background-color: rgba(234, 190, 51, 0.1);
}

/* ====== FOOTER ====== */
footer {
  background-color: var(--brand-bg);
  color: var(--brand-text);
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
  border-top: 2px solid var(--brand-gold);
}

footer a {
  color: var(--brand-gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  table.table {
    font-size: 1.1rem;
  }
  table.table td, table.table th {
    padding: 0.8rem;
  }
  .btn-sm {
    font-size: 1rem;
    padding: 0.4rem 0.7rem;
  }
}

/* Card view pentru mobile */
.card {
  border-radius: 14px !important;
}

.card-body {
  padding: 1rem 1.2rem;
}

.card h5 {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .card-body {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .btn-sm {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ====== FOOTER RESPONSIVE ====== */
@media (max-width: 768px) {
  footer {
    font-size: 0.8rem;
    padding: 0.75rem 0;
  }
}
.card {
  border-radius: 14px !important;
  transition: transform 0.1s ease-in-out;
}
.card:hover {
  transform: scale(1.01);
}
.card-body {
  padding: 1rem 1.2rem;
}
@media (max-width: 768px) {
  .card h5 {
    font-size: 1.1rem;
  }
  .btn-sm {
    font-size: 1rem;
    padding: 0.45rem 0.8rem;
  }
}
.card {
  border-radius: 14px !important;
  transition: transform 0.1s ease-in-out;
}

.card:hover {
  transform: scale(1.01);
}

.card-body {
  padding: 1rem 1.2rem;
}

@media (max-width: 768px) {
  .card {
    font-size: 1.1rem;
  }
  .btn-sm {
    font-size: 1rem;
    padding: 0.45rem 0.8rem;
  }
  .card-body {
    padding: 1rem;
  }
}
/* === pagina Profil == /
/* static/css/intaro_style.css */
.card {
  border-radius: 12px;
}
.card-header {
  font-weight: 600;
}
.btn-success {
  background-color: #28a745;
}

/* === Corecție afișare meniu pe mobil === */
@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: #1c1c2b; /* sau culoarea ta actuală */
    z-index: 1050; /* peste conținut */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    position: relative;
    z-index: 1; /* sub sidebar */
  }

  /* Butonul hamburger să rămână vizibil peste toate */
  #sidebarToggle {
    z-index: 1100;
    position: relative;
  }
}
/* ======== REPARARE AFIȘAJ PE MOBILE ======== */

/* Bara laterală – se plasează peste conținut doar când e deschisă */
.sidebar {
  z-index: 1050; /* mai mare decât .content-wrapper */
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

/* Conținutul principal – se mută automat când sidebarul e deschis */
.content-wrapper {
  position: relative;
  z-index: 1;
  background: #f8f9fa;
  min-height: 100vh;
  overflow-x: hidden;
  transition: margin-left 0.3s ease;
}

/* Fix pentru mobile: conținutul să NU fie sub meniu */
@media (max-width: 992px) {
  .content-wrapper {
    margin-left: 0 !important;
    padding-top: 60px; /* spațiu pentru bara superioară */
  }

  .sidebar {
    transform: translateX(-100%);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  /* Previne derularea sub meniu */
  body.sidebar-open {
    overflow: hidden;
  }
}

/* Butonul hamburger – să aibă z-index mare */
.navbar-toggler, .menu-toggle {
  z-index: 1100 !important;
}
