/* =========================================================
   L'Arc en Ciel — CSS Administration
   Thème clair : Bleu ciel · Vert forêt · Blanc
   Cohérent avec le site public
   ========================================================= */

:root {
  --admin-bg:        #EAF6FF;
  --admin-surface:   #ffffff;
  --admin-surface2:  #f0f8ff;
  --admin-border:    rgba(75,174,232,0.22);
  --admin-gold:      #2E7D5E;
  --admin-gold-l:    #4CAF80;
  --admin-gold-d:    #1A5E44;
  --admin-cream:     #111111;
  --admin-text:      #111111;
  --admin-text-muted:#666666;
  --admin-danger:    #e53935;
  --admin-success:   #27ae60;
  --admin-warning:   #D4A800;
  --admin-info:      #4BAEE8;
  --sidebar-w:       240px;
  --topbar-h:        56px;
  --font-display:    'Nunito', sans-serif;
  --font-body:       'Nunito', sans-serif;
  --font-ui:         'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; font-size: 15px; }
body { overflow-x: hidden; }

body.admin-body {
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: var(--font-ui);
  min-height: 100vh;
}

/* ========== TOPBAR ========== */
.admin-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--topbar-h);
  background: #ffffff;
  border-bottom: 3px solid #4BAEE8;
  box-shadow: 0 2px 16px rgba(75,174,232,0.12);
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1rem 0 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
}
.topbar-title {
  font-family: var(--font-display); font-size: 0.78rem;
  letter-spacing: 0.15em; color: #2E7D5E;
  text-transform: uppercase; flex: 1; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-sub { opacity: 0.6; }
.topbar-user { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.topbar-connected { font-size: 0.78rem; color: var(--admin-text-muted); }
.topbar-connected strong { color: #2E7D5E; font-weight: 800; }
.topbar-link { font-size: 0.75rem; color: #4BAEE8; text-decoration: none; white-space: nowrap; transition: color 0.2s; font-weight: 700; }
.topbar-link:hover { color: #1A7BBF; }
.topbar-logout { color: var(--admin-danger) !important; }

/* ========== HAMBURGER ========== */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; flex-shrink: 0;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; height: 2px; background: #2E7D5E; border-radius: 2px; transition: all 0.3s; }

/* ========== SIDEBAR ========== */
.admin-sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: 2px solid rgba(75,174,232,0.18);
  box-shadow: 2px 0 16px rgba(75,174,232,0.08);
  display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 1.1rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  border-bottom: 1px solid rgba(75,174,232,0.15);
  text-decoration: none; transition: background 0.2s; flex-shrink: 0;
}
.sidebar-logo:hover { background: rgba(75,174,232,0.06); }
.sidebar-logo img { height: 38px; width: 38px; border-radius: 50%; object-fit: cover; }
.sidebar-logo span {
  font-family: var(--font-display); font-size: 0.72rem;
  letter-spacing: 0.2em; color: #2E7D5E;
  text-transform: uppercase; font-weight: 800;
}

.sidebar-nav { flex: 1; padding: 0.75rem 0; overflow-y: auto; }
.nav-section { padding: 0.25rem 0 0.75rem; }
.nav-label {
  display: block; padding: 0.25rem 1rem;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #87CEEB; margin-bottom: 0.15rem; font-weight: 800;
}
.nav-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 1rem;
  color: var(--admin-text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 700;
  transition: all 0.2s; position: relative;
  border-left: 3px solid transparent;
}
.nav-link:hover { color: #1A3A2A; background: rgba(75,174,232,0.07); }
.nav-link.active {
  color: #2E7D5E; background: rgba(46,125,94,0.08);
  border-left-color: #2E7D5E;
}
.nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--admin-danger);
  color: #fff; font-size: 0.65rem; font-weight: 800;
  padding: 0.15rem 0.45rem; border-radius: 10px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.7} }

.sidebar-footer { border-top: 1px solid rgba(75,174,232,0.15); padding: 0.5rem 0; flex-shrink: 0; }
.nav-logout { color: var(--admin-danger) !important; }
.nav-logout:hover { background: rgba(229,57,53,0.07) !important; }

/* ========== OVERLAY MOBILE ========== */
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.35); backdrop-filter: blur(2px); }
.sidebar-overlay.active { display: block; }

/* ========== MAIN AREA ========== */
.admin-main {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  min-height: calc(100vh - var(--topbar-h));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #EAF6FF 0%, #DFF0FA 100%);

}
.admin-content { padding: 1.5rem 2rem; flex: 1; min-width: 0; box-sizing: border-box; max-width: 100%; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: #111111; }
.page-subtitle { color: var(--admin-text-muted); font-size: 0.82rem; margin-top: 0.2rem; }

/* ========== STAT CARDS ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: #ffffff;
  border: 1.5px solid rgba(75,174,232,0.2);
  border-radius: 12px; padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 0.9rem;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(75,174,232,0.08);
}
.stat-card:hover { border-color: #4BAEE8; box-shadow: 0 4px 20px rgba(75,174,232,0.15); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; border-radius: 12px 0 0 12px; }
.stat-pending::before { background: #F5C518; }
.stat-today::before   { background: #4BAEE8; }
.stat-covers::before  { background: #27ae60; }
.stat-total::before   { background: #2E7D5E; }
.stat-icon { font-size: 1.8rem; flex-shrink: 0; }
.stat-info { flex: 1; min-width: 0; }
.stat-number { font-size: 1.9rem; font-weight: 900; color: #111111; line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--admin-text-muted); margin-top: 0.2rem; font-weight: 600; }
.stat-link { font-size: 0.7rem; color: #4BAEE8; text-decoration: none; letter-spacing: 0.1em; flex-shrink: 0; font-weight: 700; }
.stat-link:hover { text-decoration: underline; }

/* ========== SECTION CARDS ========== */
.section-card {
  background: #ffffff;
  border: 1.5px solid rgba(75,174,232,0.18);
  border-radius: 12px; margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(75,174,232,0.07);
}
.card-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1.5px solid rgba(75,174,232,0.12);
  background: #f8fbff;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.card-header h2 { font-size: 0.9rem; font-weight: 800; color: #111111; }

/* ========== TABLES ========== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 480px; }
.admin-table thead tr { border-bottom: 2px solid rgba(75,174,232,0.2); }
.admin-table th {
  padding: 0.65rem 0.9rem; text-align: left;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--admin-text-muted); font-weight: 700; white-space: nowrap;
}
.admin-table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(75,174,232,0.08); vertical-align: middle; }
.admin-table td strong { display: block; color: #111111; margin-bottom: 0.1rem; font-weight: 700; }
.admin-table td small { color: var(--admin-text-muted); font-size: 0.72rem; display: block; }
.admin-table tbody tr:hover { background: rgba(75,174,232,0.04); }
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ========== BADGES & STATUS ========== */
.badge {
  display: inline-block; padding: 0.18rem 0.55rem;
  background: rgba(75,174,232,0.12); color: #1A7BBF;
  border-radius: 6px; font-size: 0.72rem; font-weight: 700;
}
.status-badge {
  display: inline-block; padding: 0.18rem 0.65rem;
  border-radius: 6px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.status-en_attente { background: rgba(245,197,24,0.15);  color: #b8900a; }
.status-confirme   { background: rgba(39,174,96,0.15);   color: #1e8449; }
.status-refuse     { background: rgba(229,57,53,0.12);   color: #c0392b; }
.status-no_show    { background: rgba(120,120,120,0.12); color: #888; }

/* ========== BUTTONS ========== */
.btn-sm {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.8rem; font-size: 0.76rem; font-weight: 700;
  border-radius: 6px; border: none; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
  background: rgba(75,174,232,0.12); color: #1A7BBF;
  font-family: var(--font-ui); white-space: nowrap;
}
.btn-sm:hover { background: rgba(75,174,232,0.22); }
.btn-sm.btn-primary   { background: #2E7D5E; color: #fff; }
.btn-sm.btn-primary:hover { background: #1A5E44; }
.btn-sm.btn-success   { background: #27ae60; color: #fff; }
.btn-sm.btn-success:hover { background: #219a52; }
.btn-sm.btn-danger    { background: #e53935; color: #fff; }
.btn-sm.btn-danger:hover  { background: #c62828; }
.btn-sm.btn-secondary { background: rgba(0,0,0,0.05); color: #4A7060; }
.btn-sm.btn-secondary:hover { background: rgba(0,0,0,0.1); }

.btn-action {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: 8px; border: none;
  cursor: pointer; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s; font-family: var(--font-ui);
}
.btn-warning  { background: rgba(245,197,24,0.15); color: #b8900a; }
.btn-warning:hover { background: rgba(245,197,24,0.28); }
.btn-danger   { background: rgba(229,57,53,0.1); color: #c0392b; }
.btn-danger:hover { background: rgba(229,57,53,0.2); }
.btn-danger.active { background: rgba(229,57,53,0.2); color: #c0392b; }
.btn-info     { background: rgba(75,174,232,0.12); color: #1A7BBF; }
.btn-info:hover { background: rgba(75,174,232,0.22); }
.btn-secondary { background: rgba(0,0,0,0.05); color: #4A7060; }
.btn-secondary:hover { background: rgba(0,0,0,0.1); }

/* ========== FORMS ADMIN ========== */
.admin-form { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.25rem; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.admin-form .form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.admin-form .form-group.full { grid-column: 1 / -1; }
.admin-form label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--admin-text-muted); font-weight: 700; }
.admin-form input[type=text],
.admin-form input[type=email],
.admin-form input[type=password],
.admin-form input[type=number],
.admin-form input[type=tel],
.admin-form input[type=date],
.admin-form select,
.admin-form textarea {
  background: #f8fbff;
  border: 1.5px solid rgba(75,174,232,0.25);
  border-radius: 8px; padding: 0.6rem 0.85rem;
  color: #111111; font-family: var(--font-ui); font-size: 0.88rem;
  outline: none; width: 100%; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus { border-color: #4BAEE8; box-shadow: 0 0 0 3px rgba(75,174,232,0.1); }
.admin-form textarea { resize: vertical; min-height: 80px; }
.admin-form select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234BAEE8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.5rem;
}
.admin-form small { font-size: 0.7rem; color: var(--admin-text-muted); line-height: 1.4; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; padding: 0 1.25rem 1.25rem; }
.btn-save {
  background: #2E7D5E; color: #fff;
  border: none; padding: 0.65rem 1.6rem; font-family: var(--font-ui);
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.05em;
  border-radius: 8px; cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.btn-save:hover { background: #1A5E44; }

/* ========== ALERTS ========== */
.alert { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.84rem; margin-bottom: 1rem; line-height: 1.5; }
.alert-error   { background: rgba(229,57,53,0.08);  border-left: 3px solid #e53935; color: #c0392b; }
.alert-success { background: rgba(39,174,96,0.1);   border-left: 3px solid #27ae60; color: #1e8449; }
.alert-info    { background: rgba(75,174,232,0.1);  border-left: 3px solid #4BAEE8; color: #1A7BBF; }

/* ========== QUICK ACTIONS ========== */
.quick-actions { padding: 1.1rem 1.25rem; }
.quick-actions h2 { font-size: 0.9rem; margin-bottom: 0.9rem; color: #1A3A2A; font-weight: 800; }
.quick-btns { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 2.5rem; color: var(--admin-text-muted); }
.empty-icon { font-size: 2.2rem; margin-bottom: 0.65rem; }

/* ========== CALENDAR ========== */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0.75rem; }
.cal-header { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--admin-text-muted); text-align: center; padding: 0.4rem 0; font-weight: 700; }
.cal-day {
  background: #f8fbff; border: 1.5px solid rgba(75,174,232,0.15);
  border-radius: 8px; padding: 0.4rem; min-height: 64px;
  cursor: pointer; transition: all 0.2s; position: relative;
  text-decoration: none; display: block;
}
.cal-day:hover { border-color: #4BAEE8; box-shadow: 0 2px 8px rgba(75,174,232,0.15); }
.cal-day.has-resa { border-color: rgba(75,174,232,0.4); background: rgba(75,174,232,0.05); }
.cal-day.today { border-color: #2E7D5E; background: rgba(46,125,94,0.06); }
.cal-day.other-month { opacity: 0.3; }
.cal-day.selected { border-color: #4BAEE8; background: rgba(75,174,232,0.1); }
.cal-day-num { font-size: 0.78rem; color: var(--admin-text-muted); font-weight: 700; }
.cal-day.today .cal-day-num { color: #2E7D5E; font-weight: 900; }
.cal-count { margin-top: 0.25rem; font-size: 0.68rem; color: #4BAEE8; font-weight: 800; }
.cal-covers { font-size: 0.62rem; color: var(--admin-text-muted); }
.cal-nav {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.25rem; border-bottom: 1.5px solid rgba(75,174,232,0.12);
  flex-wrap: wrap;
}
.cal-nav h2 { flex: 1; font-size: 1rem; color: #111111; font-family: var(--font-display); font-weight: 900; }

/* ========== LOGIN PAGE ========== */
body.login-page {
  background: linear-gradient(180deg, #87CEEB 0%, #4BAEE8 35%, #2E7D5E 75%, #1A5E44 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.login-container { width: 100%; max-width: 380px; }
.login-card {
  background: #ffffff;
  border: none; border-radius: 16px; padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-logo { height: 90px; width: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.login-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; color: #111111; margin-bottom: 0.2rem; }
.login-subtitle { font-size: 0.78rem; color: var(--admin-text-muted); margin-bottom: 1.75rem; letter-spacing: 0.1em; font-weight: 600; }
.login-form { text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.login-form .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.login-form label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--admin-text-muted); font-weight: 700; }
.login-form input {
  background: #f0f8ff; border: 1.5px solid rgba(75,174,232,0.25);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: #111111; font-family: var(--font-ui); font-size: 0.95rem;
  outline: none; width: 100%; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.login-form input:focus { border-color: #4BAEE8; box-shadow: 0 0 0 3px rgba(75,174,232,0.12); }
.form-check { display: flex; align-items: center; }
.check-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.82rem; color: var(--admin-text-muted); font-weight: 600; }
.check-label input[type=checkbox] { accent-color: #2E7D5E; width: 14px; height: 14px; }
.btn-login {
  width: 100%; background: #2E7D5E; color: #fff;
  border: none; padding: 0.9rem; font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase;
  border-radius: 10px; cursor: pointer; margin-top: 0.5rem;
  transition: background 0.2s; box-shadow: 0 4px 16px rgba(46,125,94,0.3);
}
.btn-login:hover { background: #1A5E44; }

/* ========== WYSIWYG EDITOR ========== */
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 0.65rem 0.9rem; border-bottom: 1.5px solid rgba(75,174,232,0.15);
  background: #f8fbff;
}
.editor-btn {
  background: #fff; border: 1px solid rgba(75,174,232,0.25);
  border-radius: 6px; padding: 0.28rem 0.55rem;
  color: #4A7060; cursor: pointer; font-size: 0.8rem;
  transition: all 0.15s; font-family: var(--font-ui); font-weight: 700;
}
.editor-btn:hover, .editor-btn.active { background: rgba(75,174,232,0.12); color: #1A7BBF; border-color: #4BAEE8; }
.editor-sep { width: 1px; background: rgba(75,174,232,0.2); margin: 0 3px; }
.editor-area {
  min-height: 400px; padding: 1.25rem;
  color: #111111; font-family: 'Nunito', sans-serif;
  font-size: 1.05rem; line-height: 1.9; outline: none;
}
.editor-area h2 {
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.2em;
  color: #2E7D5E; text-align: center; text-transform: uppercase;
  margin: 1.5rem 0 0.75rem; padding-bottom: 0.4rem;
  border-bottom: 1.5px solid rgba(75,174,232,0.25);
}
.editor-area h3 { font-style: italic; color: #111111; margin: 1rem 0 0.3rem; }
.editor-area hr { border: none; border-top: 1px dotted rgba(75,174,232,0.3); margin: 1rem 0; }
.editor-split { display: grid; grid-template-columns: 1fr; }
.preview-panel { border-left: 1.5px solid rgba(75,174,232,0.15); background: #f8fbff; position: relative; }
.preview-label { position: absolute; top: 0.75rem; right: 1rem; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--admin-text-muted); font-weight: 700; }
select.editor-select {
  background: #f0f8ff; border: 1px solid rgba(75,174,232,0.25);
  color: #111111; border-radius: 6px; padding: 0.28rem 0.5rem;
  font-family: var(--font-ui); font-size: 0.8rem; outline: none; cursor: pointer;
  -webkit-appearance: none; font-weight: 700;
}

/* ========== TOGGLE SWITCH ========== */
.toggle-wrap { display: flex; align-items: center; gap: 0.75rem; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #e0e0e0; border: 1px solid rgba(75,174,232,0.2);
  border-radius: 24px; cursor: pointer; transition: all 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: all 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle input:checked + .toggle-slider { background: #2E7D5E; border-color: #2E7D5E; }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ========== COLOR PICKER ========== */
.color-picker-wrap { display: flex; align-items: center; gap: 0.75rem; }
.color-picker-wrap input[type=color] { width: 40px; height: 36px; border: 1.5px solid rgba(75,174,232,0.25); border-radius: 8px; cursor: pointer; padding: 2px; background: #f8fbff; }
.color-picker-wrap input[type=text] { width: 110px; }

/* ========== DETAIL RESERVATION ========== */
.resa-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 1.25rem; }
.detail-item { display: flex; flex-direction: column; gap: 0.25rem; }
.detail-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--admin-text-muted); font-weight: 700; }
.detail-value { font-size: 0.95rem; color: #111111; font-weight: 600; }
.detail-value.large { font-size: 1.4rem; font-weight: 900; color: #2E7D5E; }

/* ========== TABS ========== */
.tabs {
  display: flex; border-bottom: 2px solid rgba(75,174,232,0.18);
  padding: 0 1.25rem; margin-bottom: 1.25rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 0.65rem 1.1rem; font-size: 0.8rem; font-weight: 800;
  color: var(--admin-text-muted); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
  font-family: var(--font-ui); white-space: nowrap;
}
.tab-btn:hover { color: #111111; }
.tab-btn.active { color: #2E7D5E; border-bottom-color: #2E7D5E; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========== LOGS ========== */
.log-container { max-height: 60vh; overflow-y: auto; }

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); box-shadow: none; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(75,174,232,0.2); }
  .admin-main { margin-left: 0; width: 100%; }
  .hamburger { display: flex; }
  .topbar-connected { display: none; }
  .topbar-sub { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .editor-split { grid-template-columns: 1fr; }
  .resa-detail-grid { grid-template-columns: 1fr; }
  .admin-form .form-row { grid-template-columns: 1fr; }
  .admin-content { padding: 0.75rem; box-sizing: border-box; width: 100%; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 0.85rem 1rem; }
  .stat-icon { font-size: 1.4rem; }
  .stat-number { font-size: 1.6rem; }
  .calendar-grid { gap: 2px; padding: 0.5rem; }
  .cal-day { min-height: 48px; padding: 0.25rem; }
  .cal-header { font-size: 0.58rem; }
  .quick-btns { flex-direction: column; }
  .btn-action { width: 100%; justify-content: center; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 0.5rem 0.65rem; }
  .tabs { padding: 0 0.5rem; }
  .tab-btn { padding: 0.5rem 0.7rem; font-size: 0.72rem; }
}
