/* --- CONFIGURAZIONE BASE & VARIABILI --- */
:root {
  --bg-primary: #040404;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(18, 18, 18, 0.75);
  --bg-card-hover: rgba(26, 26, 26, 0.85);
  
  --gold-primary: #d4af37;
  --gold-light: #fbe599;
  --gold-dark: #aa7c11;
  --gold-gradient: linear-gradient(135deg, #fff5cc 0%, #e5c158 40%, #d4af37 70%, #8c6600 100%);
  
  --text-main: #f5f5f5;
  --text-muted: #9e9786;
  --text-dark: #0a0a0a;
  
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-focus: rgba(212, 175, 55, 0.7);
  --border-dark: rgba(255, 255, 255, 0.05);
  
  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.15);
  --shadow-gold-strong: 0 0 40px rgba(212, 175, 55, 0.3);
  --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.7);
  
  --font-title: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* --- SFONDO MAGICO ANIMATO --- */
.background-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: #030303;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: floatGlow 25s infinite alternate ease-in-out;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(170, 124, 17, 0.06) 0%, transparent 70%);
  bottom: 10%;
  right: -10%;
  animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 245, 204, 0.04) 0%, transparent 70%);
  top: 40%;
  left: 45%;
  animation: floatGlow 30s infinite alternate ease-in-out;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* --- ANIMAZIONI DEL LOGO SVG --- */
.pulsing-star {
  transform-origin: 100px 33px;
  animation: starPulse 3s infinite ease-in-out;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 2px rgba(255,255,255,0.4)); }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8)); }
}

.floating-stars circle, .floating-stars path {
  animation: stardust 4s infinite alternate ease-in-out;
}

.floating-stars circle:nth-child(2n) {
  animation-delay: 1.5s;
}

.floating-stars path:nth-child(2n) {
  animation-delay: 2.5s;
}

@keyframes stardust {
  0% { opacity: 0.3; }
  100% { opacity: 0.9; }
}

/* --- SPA NAVIGAZIONE (DISSOLVENZE E SCALE) --- */
.screen {
  display: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
  min-height: 100vh;
}

/* --- PULSANTI PREMIUM (CON EFFETTO BRILLANTE) --- */
.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Effetto di riflesso brillante all'hover */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

.btn-shine:hover::after {
  left: 130%;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.danger-btn {
  background: #ff4d4d !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.2) !important;
}

.danger-btn:hover {
  box-shadow: 0 8px 25px rgba(255, 77, 77, 0.45) !important;
}

/* --- DISTINTIVI & BADGE --- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
}

/* --- SCHERMATA LOGIN --- */
#login-screen {
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.login-card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 420px;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-container {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-gold), var(--shadow-dark);
  backdrop-filter: blur(20px);
  text-align: center;
}

.logo-wrapper {
  margin: 0 auto 1.5rem auto;
  width: 120px;
  height: 130px;
}

.main-logo {
  width: 100%;
  height: 100%;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 2.3rem;
  letter-spacing: 3px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.1rem;
  font-weight: 500;
  text-shadow: 0 0 35px rgba(212, 175, 55, 0.15);
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* INPUT FORM */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-gold-focus);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.12);
}

.error-message {
  color: #ff5252;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  text-align: center;
  min-height: 1.2rem;
  font-weight: 500;
}

/* --- HEADER APP --- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background-color: rgba(6, 6, 6, 0.8);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo-area {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-logo {
  width: 44px;
  height: 48px;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--gold-primary);
  font-weight: 500;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: -1px;
  font-weight: 300;
}

.header-user-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.user-email-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
}

/* --- NAVIGATION BAR --- */
.admin-nav-bar {
  display: flex;
  justify-content: center;
  background: rgba(10, 10, 10, 0.5);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(10px);
  padding: 0 3rem;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 1.1rem 2rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  color: var(--gold-primary);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: var(--gold-gradient);
  box-shadow: 0 0 8px var(--gold-primary);
}

/* --- LAYOUT PRINCIPALE --- */
.main-content {
  flex: 1;
  padding: 3rem 2rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active-tab {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--text-main);
  border-left: 2px solid var(--gold-primary);
  padding-left: 1rem;
  letter-spacing: 2px;
  font-weight: 500;
}

/* --- CARD PROSSIMO INCONTRO (PREMIUM) --- */
.next-meeting-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-gold), var(--shadow-dark);
  overflow: hidden;
  backdrop-filter: blur(15px);
}

.card-glow {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.meeting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1.5rem;
}

/* COUNTDOWN STYLE A CASSELLA */
.countdown-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-val {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.countdown-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.4rem;
  letter-spacing: 1px;
}

.countdown-divider {
  font-size: 1.5rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-top: -1.2rem;
  animation: blinker 1.5s infinite;
}

@keyframes blinker {
  50% { opacity: 0.3; }
}

.meeting-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.meeting-info-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.info-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.info-text {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.meeting-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
  max-width: 850px;
  font-weight: 300;
}

.no-meeting {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--text-muted);
}

.no-meeting-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: floatIcon 4s infinite alternate ease-in-out;
}

@keyframes floatIcon {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* --- MATERIALI / SLIDE GRID --- */
.slides-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-bar-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition);
}

.search-bar-wrapper input:focus {
  outline: none;
  border-color: var(--border-gold-focus);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.4;
  pointer-events: none;
}

.slides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* CARD SLIDE ELEGANTI */
.slide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.slide-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold), var(--shadow-dark);
  background: var(--bg-card-hover);
}

.slide-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.pdf-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid var(--border-gold);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slide-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.45;
}

.slide-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* spinner */
.spinner-circle {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.1);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 1rem auto;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* --- VISTA ADMIN PANELS --- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 2.2rem;
  backdrop-filter: blur(10px);
}

.form-card h3 {
  font-family: var(--font-title);
  color: var(--gold-primary);
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0.75rem;
}

/* DRAG & DROP ZONE PDF */
.file-drop-area {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-dark);
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  gap: 1rem;
}

.file-drop-area:hover,
.file-drop-area.drag-over {
  background: rgba(212, 175, 55, 0.04);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.upload-icon {
  transition: var(--transition);
}

.file-drop-area:hover .upload-icon {
  transform: translateY(-4px) scale(1.05);
}

.file-msg-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 250px;
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

/* TABELLE GESTIONE ADMIN */
.slides-management-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 2.2rem;
  backdrop-filter: blur(10px);
}

.slides-management-card h3 {
  font-family: var(--font-title);
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.92rem;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1px;
}

.admin-table td strong {
  font-weight: 500;
  color: var(--text-main);
}

.admin-table tr {
  transition: var(--transition);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --- TOAST NOTIFICATIONS (UX PRO) --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 350px;
  width: 100%;
  pointer-events: none;
}

.toast {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-gold), var(--shadow-dark);
  color: var(--text-main);
  padding: 1rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: auto;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
  100% { transform: translateY(0); opacity: 1; }
}

.toast.toast-success {
  border-left: 3px solid #2ecc71;
}

.toast.toast-error {
  border-left: 3px solid #e74c3c;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: 1rem;
}

.toast-close:hover {
  color: var(--text-main);
}

/* --- CUSTOM MODAL DIALOGS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-gold-strong), var(--shadow-dark);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.modal-icon {
  font-size: 2.2rem;
}

.modal-box h3 {
  font-family: var(--font-title);
  color: var(--gold-primary);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.modal-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* --- FOOTER --- */
.app-footer {
  text-align: center;
  padding: 2.5rem;
  background-color: transparent;
  border-top: 1px solid var(--border-dark);
  margin-top: auto;
}

.creator-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  opacity: 0.25;
  transition: var(--transition);
  user-select: none;
}

.creator-tag:hover {
  opacity: 0.85;
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* --- RESPONSIVITÀ MOBILE-FIRST --- */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
    text-align: center;
  }
  
  .header-logo-area {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .header-user-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .admin-nav-bar {
    padding: 0;
  }
  
  .nav-tab {
    flex: 1;
    padding: 1rem 0.5rem;
    font-size: 0.82rem;
    text-align: center;
  }
  
  .main-content {
    padding: 1.5rem 1rem;
  }
  
  .next-meeting-card {
    padding: 1.8rem 1.2rem;
    margin-bottom: 2rem;
  }
  
  .meeting-title {
    font-size: 1.6rem;
  }
  
  .meeting-info-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .slides-section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar-wrapper {
    max-width: 100%;
  }
  
  .slides-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .slide-card {
    min-height: 160px;
    padding: 1.4rem;
  }
  
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) {
    display: none; /* nascondi la data di caricamento su mobile */
  }
  
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
  }
}
