/* ==========================================================================
   PROJECT: ALLURE SALON (MASTER STYLE)
   FILE: allurestyle.css
   ========================================================================== */

:root {
  /* --- HOLIDAY CONTROL CENTER --- */
  --c-gold: #e6d8a8;
  --c-gold-dark: #c8b06a;
  --c-text-main: #000000;
  --c-bg-body: #f6f1e6;
  --c-white-glass: rgba(255, 255, 255, 0.95);
  --c-black-glass: rgba(0, 0, 0, 0.95);
  --f-main: Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--f-main);
  color: var(--c-text-main);
  line-height: 1.5;
  background-color: var(--c-bg-body);
  background-image: url('allureimages/smallallurebgperfect.png');
  background-repeat: repeat;
  background-size: 150px auto;
  display: flex;
  flex-direction: column;
}

/* --- HAMBURGER MENU --- */
.nav-toggle {
  display: block; 
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--c-black-glass);
  color: var(--c-gold);
  border: 1px solid var(--c-gold-dark);
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
}

.main-nav {
  display: none;
  background: var(--c-black-glass);
  flex-direction: column;
  border-radius: 8px;
  position: absolute;
  top: 60px;
  left: 10px;
  width: 200px;
  z-index: 999;
}

.main-nav.active {
  display: flex;
}

.main-nav a {
  color: #fff;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid #333;
  display: block;
}

/* --- UNIVERSAL SECTION RULES --- */
.screen-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 5px; 
  position: relative; 
  text-align: center;
}

/* --- MOBILE SPECIFIC LAYOUT (DEFAULT) --- */
.section-branding {
  min-height: 100vh; 
  justify-content: flex-start; 
  padding-top: 5px; 
}

.section-editorial, .section-event {
  min-height: 300px; 
  justify-content: center; 
  border-top: 1px solid var(--c-gold); 
}

/* --- PAGE HEADER --- */
.page-header {
  font-size: 1.8rem;
  color: var(--c-text-main);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 5px;
  display: inline-block;
}

/* --- LOGO LOGIC (THE TIGHT SQUARE FRAME) --- */
.logo-wrapper { 
  display: inline-flex; 
  width: auto; 
  margin: 0 auto; 
  margin-bottom: 10px; 
  align-items: center; 
  justify-content: center;
  border: 5px solid var(--c-gold);
  background: transparent; 
  padding: 0; 
}

.logo-link {
  display: block;
  width: auto;
}

.main-logo {
  display: block;
  width: auto;
  max-height: 18vh;
  object-fit: contain;
}

.tagline {
  font-size: 1.2rem;
  font-weight: bold;
  font-style: italic;
  text-transform: uppercase;
  margin: 10px 0; 
  width: 100%;
}

/* --- FLOURISH BUTTON STYLE --- */
.flourish-btn-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px; 
  margin: 10px auto; 
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--c-gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5); 
  padding: 8px;
  transition: all 0.3s ease;
}

.flourish-btn-container:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--c-text-main);
}

.flourish-btn-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
}

.flourish-btn-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--c-text-main);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  text-shadow: 0px 0px 5px rgba(255,255,255,0.9); 
}

/* --- LAYOUT GRID SYSTEM --- */
.layout-grid {
  display: grid;
  width: 100%;
  max-width: 1600px; 
  margin: 0 auto;
  grid-template-columns: 1fr;
  grid-template-areas: "branding" "editorial" "event";
  padding-bottom: 60px; 
}

/* SINGLE COLUMN LAYOUT */
.layout-single {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
}

.layout-single .section-branding {
  width: 100%;
  border: none; 
}

.section-branding { grid-area: branding; }
.section-editorial { grid-area: editorial; }
.section-event { grid-area: event; }

/* --- FOOTER --- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: var(--c-black-glass);
  color: var(--c-gold);
  z-index: 2000;
  border-top: 1px solid var(--c-gold-dark);
}

footer a {
  color: #fff;
  margin: 0 5px;
}

.loading-spinner {
  font-weight: bold;
  color: #666;
}

/* --- STYLISTS STYLES --- */
#stylist-list-container {
  width: 100%;
  max-width: 800px; 
  display: flex;
  flex-direction: column;
  gap: 10px; 
  align-items: center;
  margin-top: 5px; 
  margin-bottom: 15px;
}

.stylist-card {
  position: relative; 
  width: 98%; 
  display: flex; 
  flex-direction: row;
  align-items: center; 
  justify-content: flex-start; 
  padding: 5px; 
  background: transparent; 
  border: none; 
  cursor: pointer; 
  transition: all 0.2s ease;
}

.stylist-card:hover {
  transform: translateY(-2px);
}

.stylist-photo-container {
  width: 80px; 
  height: 80px; 
  flex-shrink: 0; 
  margin-right: 15px; 
  border-radius: 4px; 
  overflow: hidden; 
  position: relative; 
  z-index: 10; 
  background: transparent; 
  border: 1px solid var(--c-gold); 
}

.stylist-photo { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: top center; 
}

.stylist-info-container { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
}

.stylist-name { 
  font-size: 1.4rem; 
  font-weight: bold; 
  text-transform: uppercase; 
  margin-bottom: 0px; 
  color: var(--c-text-main); 
  letter-spacing: 1px; 
}

.stylist-menu { 
  display: none; 
  flex-direction: row; 
  gap: 10px; 
  margin-bottom: 5px; 
}

.stylist-card.active .stylist-menu {
  display: flex;
}

.menu-btn { 
  background: rgba(255,255,255,0.8); 
  color: var(--c-text-main); 
  padding: 5px 10px; 
  font-size: 0.8rem; 
  font-weight: bold; 
  border-radius: 4px; 
  border: 1px solid var(--c-gold); 
}

.filigree-accent { 
  width: 140px; 
  height: auto; 
  display: block; 
  opacity: 0.9; 
}

/* --- SIDE WIDGETS --- */
.side-widget-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--c-gold);
  padding: 15px; 
  border-radius: 8px; 
  width: 90%; 
  max-width: 300px;
  margin: 0 auto; 
  text-align: center; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.widget-title { 
  font-weight: bold; 
  text-transform: uppercase; 
  color: var(--c-gold-dark); 
  margin-bottom: 10px; 
  border-bottom: 1px solid var(--c-gold); 
  padding-bottom: 5px; 
}

.widget-event-name { 
  font-size: 1.1rem; 
  font-weight: bold; 
  margin-bottom: 5px; 
}

.widget-date { 
  color: #666; 
  margin-bottom: 10px; 
}

.widget-btn { 
  display: inline-block; 
  background: #000; 
  color: var(--c-gold); 
  padding: 5px 10px; 
  text-decoration: none; 
  font-size: 0.8rem; 
  border-radius: 4px; 
}

/* --- EVENTS PAGE STYLES --- */
.events-top-wrapper { 
  display: flex; 
  flex-direction: column; 
  width: 100%; 
  gap: 20px; 
  align-items: center; 
}

.calendar-container { 
  width: 100%; 
  max-width: 400px; 
  background: rgba(255,255,255,0.9); 
  border: 1px solid var(--c-gold); 
  border-radius: 8px; 
  padding: 10px; 
}

.calendar-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 10px; 
  font-weight: bold; 
  text-transform: uppercase; 
}

.cal-btn { 
  background: transparent; 
  border: 1px solid var(--c-gold); 
  color: var(--c-text-main); 
  cursor: pointer; 
  padding: 5px 10px; 
  font-weight: bold; 
}

.cal-btn:hover {
  background: var(--c-gold);
  color: white;
}

.calendar-grid { 
  display: grid; 
  grid-template-columns: repeat(7, 1fr); 
  gap: 4px; 
  text-align: center; 
}

.cal-day-name {
  font-weight: bold;
  font-size: 0.8rem;
  padding: 5px 0;
}

.cal-day { 
  padding: 8px; 
  border: 1px solid #eee; 
  min-height: 40px; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: relative; 
  font-weight: bold; 
}

.cal-day.is-today { 
  background-color: rgba(0, 200, 255, 0.15); 
  border: 1px solid rgba(0, 200, 255, 0.6); 
  color: #000; 
}

.cal-day.has-event { 
  background-color: var(--c-gold); 
  color: white; 
  border-color: var(--c-gold-dark); 
  cursor: pointer; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.events-action-area { 
  width: 100%; 
  max-width: 400px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}

.next-event-card { 
  width: 100%; 
  border: 2px solid var(--c-gold); 
  background: rgba(255,255,255,0.9); 
  padding: 20px; 
  text-align: center; 
  position: relative; 
  margin-bottom: 15px; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.05); 
}

.next-event-label { 
  position: absolute; 
  top: -12px; 
  left: 50%; 
  transform: translateX(-50%); 
  background: var(--c-gold); 
  color: white; 
  padding: 2px 15px; 
  font-size: 0.8rem; 
  font-weight: bold; 
  text-transform: uppercase; 
}

.upcoming-list-container { 
  width: 100%; 
  max-width: 800px; 
  margin-top: 30px; 
  border-top: 1px solid var(--c-gold); 
  padding-top: 20px; 
}

.event-list-item { 
  background: rgba(255,255,255,0.6); 
  border-left: 4px solid var(--c-gold); 
  margin-bottom: 10px; 
  padding: 15px; 
  text-align: left; 
  cursor: pointer; 
  transition: all 0.2s; 
}

.event-list-item:hover {
  background: rgba(255,255,255,0.9);
}

.event-details-expanded { 
  display: none; 
  margin-top: 10px; 
  font-size: 0.95rem; 
  line-height: 1.4; 
  border-top: 1px dashed #ccc; 
  padding-top: 10px; 
}

/* --- CONTACT & FORM STYLES --- */
.contact-container {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--c-gold);
  padding: 30px;
  border-radius: 8px;
  margin: 0 auto;
  text-align: left;
}

.contact-info-block {
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.1rem;
}

.contact-label {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 5px;
  display: block;
}

.contact-divider {
  border: 0;
  border-top: 1px solid var(--c-gold);
  margin-bottom: 20px;
}

.form-submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  background: var(--c-text-main);
  color: var(--c-gold);
}

/* --- FAQ ACCORDION STYLES --- */
.faq-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--c-gold);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--c-text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.5);
}

.faq-question:hover {
  background: var(--c-gold);
  color: white;
}

.faq-answer {
  display: none;
  padding: 20px;
  border-top: 1px solid var(--c-gold);
  line-height: 1.6;
  color: #333;
}

.faq-card.active .faq-answer {
  display: block;
}

.plus-icon {
  font-weight: bold;
  font-size: 1.5rem;
}

/* --- EDITORIAL FEED STYLES --- */
.editorial-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
  align-items: center;
}

.editorial-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--c-gold);
  border-radius: 8px;
  padding: 25px;
  width: 95%;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.editorial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.editorial-header {
  border-bottom: 1px solid var(--c-gold);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.editorial-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--c-text-main);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.editorial-meta {
  font-size: 0.9rem;
  color: var(--c-gold-dark);
  font-style: italic;
}

.editorial-body {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.editorial-full-content {
  display: none;
  margin-top: 15px;
}

.read-more-btn {
  background: transparent;
  border: none;
  color: var(--c-gold-dark);
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 10px;
  padding: 0;
  font-size: 0.9rem;
}

.read-more-btn:hover {
  color: #000;
  text-decoration: underline;
}

/* --- MODAL (Shared) --- */
#eventModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border: 2px solid var(--c-gold);
  border-radius: 8px;
}

.close-modal {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}


/* --- DESKTOP MEDIA QUERY (Min-Width 900px) --- */
@media (min-width: 900px) {
  /* 3-Column Grid */
  .layout-grid {
    grid-template-columns: 1fr 2fr 1fr; 
    grid-template-areas: "editorial branding event";
    height: 100vh;
    overflow: hidden;
    padding-bottom: 0;
  }
  
  /* Single Column Layout Base */
  .layout-single {
    padding-top: 0;
  }
  
  /* EDITORIAL SPECIFIC: 50% WIDTH CENTERED */
  .layout-single.editorial-view {
    width: 50%;
    max-width: none;
  }

  /* Reset heights/borders */
  .section-branding, .section-editorial, .section-event {
    min-height: 100%;
    height: 100%;
    border-top: none;
  }
  
  .section-branding {
    padding: 0px 40px 40px 40px;
    justify-content: flex-start;
  }
  
  .section-editorial, .section-event {
    justify-content: center;
  }
  
  .main-logo {
    max-width: 100%;
    max-height: 35vh;
  }
  
  #stylist-column, #events-column {
    overflow-y: auto;
    scrollbar-width: thin; 
    scrollbar-color: var(--c-gold) transparent;
    margin-top: 0;
    padding-top: 0;
  }
  
  .stylist-card {
    width: 100%;
    padding: 15px;
  }
  
  .stylist-photo-container {
    width: 120px;
    height: 120px;
  }
  
  .stylist-name {
    font-size: 1.8rem;
  }
  
  .filigree-accent {
    width: 180px;
  }
  
  .events-top-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
  }
}

/* --- ADMIN FORM STYLES --- */
.admin-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border: 2px solid var(--c-gold);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    margin: 0 auto 30px auto; /* Centered with bottom margin */
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.admin-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--f-main);
}

.submit-btn {
    background: #000;
    color: var(--c-gold);
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #333;
}

/* ==========================================================================
   COMMAND CENTER (ADMIN DASHBOARD) & NEW MODAL STYLES
   ========================================================================== */

/* Main Layout Wrapper for Admin */
.dashboard-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* Header Specifics */
.logo-header {
    text-align: center;
    margin-bottom: 40px;
}
.logo-header img {
    width: 180px;
}
.admin-main-title {
    font-family: 'Cinzel', serif;
    margin-top: 10px;
    color: #000;
}

/* White Panels */
.admin-panel-section {
    background: white;
    border: 1px solid #d4af37; /* Gold Border */
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    /* Override possible conflicts */
    text-align: left; 
    max-width: 800px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.panel-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* Buttons */
.add-btn {
    background: #d4af37;
    color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 4px;
}

.panic-btn {
    width: 100%;
    background: #ffdede;
    color: #c00;
    border: 1px solid #c00;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.panic-btn:hover {
    background: #c00;
    color: white;
}

/* List Items */
.admin-list-container {
    min-height: 50px;
    overflow-y: auto;
    max-height: 300px;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}
.admin-list-item:hover {
    background: #f9f9f9;
}
.admin-list-item:last-child {
    border-bottom: none;
}

.badge {
    background: #c00;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ================= MODALS (NEW SYSTEM) ================= */
.admin-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.admin-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    border-top: 4px solid #d4af37;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-x {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}
.close-x:hover {
    color: #000;
}

.inner-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    margin-top: 0;
    color: #000; /* FIXED: Ensures text is black */
}

/* Modal Form Elements */
.admin-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box; 
    margin-bottom: 0;
}

/* Images */
.preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 10px auto;
    border: 2px solid #eee;
}

.photo-preview-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
}
.photo-preview-box img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* Review Box Specifics */
.review-box {
    background: #f9f9f9;
    padding: 15px;
    border: 1px dashed #ccc;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Lato', sans-serif;
}

.action-bar {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    color: white;
    text-transform: uppercase;
}

.btn-yes { background: #28a745; }
.btn-no { background: #dc3545; }

.delete-text-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 15px;
    color: #c00;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    
}

/* --- UNIFIED STYLIST BUTTONS --- */
.stylist-action-btn {
    display: block;            /* Forces them to be blocks (same shape) */
    width: 140px;             /* Fixed width for perfect uniformity */
    height: 36px;             /* Fixed height */
    line-height: 34px;        /* Vertically centers text */
    margin: 5px auto;         /* Centers them in the card */
    padding: 0;               /* Reset padding */
    
    /* THE LOOK */
    background: rgba(255, 255, 255, 0.2); /* Faded see-through glass */
    border: 1px solid var(--c-gold);
    color: var(--c-text-main);
    
    /* TEXT */
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stylist-action-btn:hover {
    background: var(--c-gold);
    color: white;
    border-color: var(--c-gold-dark);
}

/* --- ADMIN ALIGNMENT FIXES --- */
.dashboard-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers logo and title */
}

.admin-panel-section {
    width: 100%;
    margin: 0 auto 30px auto; /* Centers panels horizontally */
    float: none;
    display: block;
}

#team-list-admin, #inbox-container, #event-list-admin {
    width: 100%;
}

/* CUSTOM DATE PICKER STYLING
   Ensures the triple-dropdowns stay side-by-side and 
   are easy to tap on mobile devices.
*/
.date-picker-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.date-picker-group select {
    flex: 1; /* This forces all 3 boxes to share the width equally */
    min-width: 0; /* Prevents boxes from pushing past the screen edge */
    padding: 10px 5px;
    font-size: 16px; /* Prevents iOS from zooming in automatically */
}

/* Adjustments for the Admin Modal specifically */
.admin-modal .date-picker-group select {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Prevents long text from breaking the layout */
.event-list-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all; /* Forces break even if no spaces exist */
    max-width: 100%;
}

.event-list-item p {
    white-space: normal;
    line-height: 1.4;
}

/* ==========================================================================
   NAVIGATION STABILITY PATCH - DO NOT REMOVE
   Purpose: Forces the menu to be hidden on load to prevent flickering links.
   ========================================================================== */

/* This overrides any inline styles to keep the menu invisible until the 
   hamburger is actually clicked. */
.main-nav {
    display: none !important;
}

/* This allows the .active class from governor.js to reveal the menu 
   properly when the hamburger is touched. */
.main-nav.active {
    display: flex !important;
}

/* Ensures the hamburger button is fixed in place for easier 
   navigation on mobile. */
.nav-toggle {
    position: fixed !important;
}