/* UI Pro theme - safe enhancements (Bootstrap 5)
   Goal: improve look & readability WITHOUT changing page logic.
   You can delete this file anytime to rollback.
*/

:root{
  --ui-radius: 1rem;
  --ui-radius-sm: .75rem;
  --ui-shadow: 0 10px 28px rgba(0,0,0,.06);
  --ui-shadow-sm: 0 6px 18px rgba(0,0,0,.05);
  --ui-border: rgba(0,0,0,.07);
  --ui-muted: rgba(0,0,0,.55);
  --ui-muted-2: rgba(0,0,0,.42);
}

html, body { height: 100%; }
body.app-shell{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background */
body.bg-light{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(13,110,253,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(255,193,7,.10), transparent 55%),
    #f6f7fb !important;
}

/* Navbar */
.navbar{
  box-shadow: 0 10px 25px rgba(0,0,0,.10);
}
.navbar .btn{ border-radius: 999px; }

/* Brand (logo + symboles pro) */
.navbar-brand{ text-decoration: none; }
.brand-logo{
  max-height: 96px; /* +50% pour meilleure visibilité */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.16));
}
.brand-title{
  font-weight: 850;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand-icons i{ opacity: .88; margin-left: .25rem; }
.brand-badge{
  border-radius: 999px;
  padding: .35rem .65rem;
  font-weight: 800;
}

/* Footer */
.app-footer{
  border-top: 1px solid rgba(0,0,0,.08);
}
.footer-logo{
  max-height: 63px; /* +50% */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.14));
}
.footer-icons span{ opacity: .78; }

/* =========================
   Dashboard (admin/index)
   ========================= */
.dash-hero{
  border-radius: calc(var(--ui-radius) + .25rem);
  border: 1px solid rgba(0,0,0,.08);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(13,110,253,.12), transparent 60%),
    radial-gradient(800px 380px at 100% 0%, rgba(255,193,7,.14), transparent 55%),
    rgba(255,255,255,.88);
}
body.theme-cinema .dash-hero{
  border-color: rgba(215,179,90,.22);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(215,179,90,.18), transparent 60%),
    radial-gradient(800px 380px at 100% 0%, rgba(255,255,255,.08), transparent 55%),
    rgba(18,24,36,.86);
  color: rgba(244,246,248,.96);
}
body.theme-cinema .dash-hero .text-muted{ color: rgba(244,246,248,.72) !important; }

.stat-tile{
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-sm);
  background: rgba(255,255,255,.86);
  padding: 1rem;
}
body.theme-cinema .stat-tile{ background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.stat-tile .stat-icon{
  width: 44px; height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(13,110,253,.08);
}
body.theme-cinema .stat-tile .stat-icon{ border-color: rgba(255,255,255,.14); background: rgba(215,179,90,.10); }
.stat-tile .stat-value{ font-size: 1.25rem; font-weight: 900; line-height: 1; }
.stat-tile .stat-label{ color: var(--ui-muted); font-size: .85rem; }

/* Main container */
main.container{
  max-width: 1200px;
}

/* Cards */
.card{
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow);
}
.card .card-header{
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid var(--ui-border);
  border-top-left-radius: var(--ui-radius);
  border-top-right-radius: var(--ui-radius);
}

/* Admin header row */
.badge-soft{
  border-radius: 999px;
  padding: .35rem .65rem;
}
.small-muted{ color: var(--ui-muted) !important; }

/* Tabs (admin) */
.admin-tabs{
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  padding: .25rem;
  background: rgba(246,247,251,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 999px;
  box-shadow: var(--ui-shadow-sm);
}
.admin-tabs .nav-link{
  border-radius: 999px !important;
  padding: .45rem .85rem !important;
  font-weight: 600;
}
.admin-tabs .nav-link.active{
  box-shadow: 0 10px 18px rgba(13,110,253,.18);
}

/* Forms */
label.form-label{ font-weight: 700; font-size: .9rem; }
.form-control, .form-select, .btn{
  border-radius: var(--ui-radius-sm);
}
.form-control::placeholder{ color: rgba(0,0,0,.35); }
.form-control:focus, .form-select:focus{
  box-shadow: 0 0 0 .22rem rgba(13,110,253,.18);
}

/* Buttons */
.btn{ font-weight: 650; }
.btn-outline-secondary{ border-color: rgba(0,0,0,.18); }
.btn-icon i{ margin-right: .35rem; }

/* Tables */
.table{
  border-color: rgba(0,0,0,.06);
}
.table thead th{
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.62);
}
.table-hover tbody tr:hover{
  background: rgba(13,110,253,.04) !important;
}
.table td, .table th{ vertical-align: middle; }

/* List groups (dashboard widgets) */
body.theme-cinema .list-group-item{
  background: rgba(255,255,255,.04);
  color: rgba(244,246,248,.96);
  border-color: rgba(255,255,255,.12);
}
body.theme-cinema .list-group-item-action:hover{
  background: rgba(215,179,90,.10);
}

/* Alerts */
.alert{
  border-radius: var(--ui-radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--ui-shadow-sm);
}

/* Badges */
.badge{
  border-radius: 999px;
  font-weight: 700;
}

/* Subtle separators */
.hr-soft{
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.14), transparent);
}

/* Mobile tweaks */
@media (max-width: 768px){
  .admin-tabs{
    position: static;
    border-radius: var(--ui-radius);
  }
  .brand-icons{ display:none; }
  .brand-badge{ display:none; }
  .brand-title{ white-space: normal; line-height: 1.1; }
  main.container{ padding-left: .75rem; padding-right: .75rem; }
}
