:root {
  --bg-dark: #333f48;
  --primary-color: #333f48;
  --accent-gold: #a89968;
  --accent-hover: #8f8155;
  --surface-white: #ffffff;
  --text-main: #333f48;
  --text-muted: #88929b;
  --border-light: #e2e8f0;
  --input-bg: #f8fafc;
  --alert-bg: #fffbeb;
  --alert-text: #b45309;
  --card-bg: #ffffff;
  --border-color: #e0e1dd;
  --slate: #333f48;
  --gold: #a89968;
  --light-bg: #f4f6f8;
  --text-light: #ffffff;
}

/* --- Premium Tinted Icon Colors --- */
/* These classes override the default background/color of .menu-icon */

.menu-icon.c-blue { background-color: #eff6ff; color: #3b82f6; }
.menu-icon.c-red { background-color: #fff1f2; color: #e11d48; }
.menu-icon.c-amber { background-color: #fffbeb; color: #d97706; }
.menu-icon.c-teal { background-color: #f0fdfa; color: #0d9488; }
.menu-icon.c-purple { background-color: #f5f3ff; color: #7c3aed; }
.menu-icon.c-sky { background-color: #f0f9ff; color: #0284c7; }
.menu-icon.c-green { background-color: #ecfdf5; color: #059669; }
.menu-icon.c-pink { background-color: #fdf2f8; color: #db2777; }
.menu-icon.c-orange { background-color: #fff7ed; color: #ea580c; }
.menu-icon.c-emerald { background-color: #ecfdf5; color: #10b981; }
.menu-icon.c-indigo { background-color: #eef2ff; color: #4f46e5; }
.menu-icon.c-slate { background-color: #f1f5f9; color: #475569; }

/* Optional: Make the icon inside the circle scale up slightly on hover for a high-end feel */
.tile-compact:hover .menu-icon i {
    transform: scale(1.15);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Creates a slight "bounce" effect */
}

.menu-icon i {
    transition: transform 0.2s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.brand-header {
  display: grid;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 20px;
  width: 100%;
}

.brand-logo {
  max-width: 100%;
  width: auto;
  height: auto;
  background: white;
  margin: 0 auto;
  display: block;
  max-height: 35px;
  object-fit: contain;
}

.login-logo {
    max-height: 200px;
    height: 200px;
    width: 200px;
  }

.app-title {
  color: var(--accent-gold);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 400;
}

.container {
  background: var(--surface-white);
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 30px;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn{

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.hidden {
  display: none !important;
}

.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.section-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 25px 0 15px 0;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.section-title:first-of-type {
  margin-top: 10px;
}

.menu-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr;
}

.menu-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.menu-item {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-item.highlight {
  border-color: rgba(168, 153, 104, 0.4);
  background: #faf9f6;
}

.menu-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.menu-icon {
  background: var(--surface-white);
  color: var(--bg-dark);
  min-width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  margin-right: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.menu-item.highlight .menu-icon {
  background: var(--bg-dark);
  color: var(--accent-gold);
}

.menu-text h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-main);
}

.menu-text p {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.menu-arrow {
  margin-left: auto;
  color: var(--border-light);
}

.tile-compact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 10px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.1rem;
  color: var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.fav-icon:hover {
  transform: scale(1.2);
  color: var(--accent-hover);
}

.fav-icon.active {
  color: var(--accent-gold);
}

.tile-compact:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tile-compact .menu-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  margin-right: 0;
  color: var(--text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.tile-compact h3 {
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
  width: 100%;
}

.spending-card {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.spending-icon {
  min-width: 50px;
  height: 50px;
  background: var(--surface-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  color: var(--bg-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-right: 20px;
}

.spending-details {
  display: flex;
  flex-direction: column;
}

.spending-details h4 {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.spending-details .amount {
  margin: 5px 0 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.info-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--input-bg);
  padding: 15px;
  border-radius: 8px;
  margin-top: 25px;
  text-align: center;
}

.form-header-bar {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px 15px 10px 0;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: var(--accent-gold);
}

.form-header-bar h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--bg-dark);
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
  min-width: 140px;
}

label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

label i {
  color: var(--accent-gold);
  margin-right: 8px;
  width: 14px;
  text-align: center;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  min-height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px !important;
  background-color: var(--input-bg);
  color: var(--text-main);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: var(--surface-white);
  box-shadow: 0 0 0 3px rgba(168, 153, 104, 0.15);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  padding: 15px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.option-label {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 0.95rem;
  margin: 0;
  cursor: pointer;
  color: var(--text-main);
}

.option-label input {
  accent-color: var(--accent-gold);
  width: 18px;
  height: 18px;
  margin-right: 12px;
  cursor: pointer;
}

.system-access-item {
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.system-access-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.access-role-input {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
  animation: fadeIn 0.3s ease-out;
}

.access-role-input.show {
  display: block;
}

.btn {
  width: 100%;
  min-height: 48px;
  background: var(--accent-gold);
  color: var(--surface-white);
  border: none;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: inherit;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn:hover {
  background: var(--accent-hover);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: var(--input-bg);
  border-radius: 8px;
  border: 1px dashed var(--border-light);
  margin-bottom: 10px;
  flex-direction: row;
}

.checkbox-group input {
  accent-color: var(--accent-gold);
  width: 20px;
  height: 20px;
}

.tracking-card {
  text-align: center;
  padding: 10px 0;
}

.tracking-id {
  font-size: 2.0rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-gold);
  margin: 10px 0 30px 0;
  background: var(--bg-dark);
  padding: 5px;
  border-radius: 12px;
}

.stepper {
  text-align: left;
  position: relative;
  padding-left: 20px;
}

.stepper::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 20px;
  width: 2px;
  background: var(--border-light);
}

.step {
  position: relative;
  margin-bottom: 25px;
  padding-left: 35px;
}

.step::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: -5px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 3px solid var(--border-light);
  z-index: 1;
  transition: all 0.3s ease;
}

.step.completed::before {
  background: green;
  border-color: green;
  color: var(--surface-white);
}

.step.pending::before {
  border-color: var(--bg-dark);
  background: var(--input-bg);
  color: var(--bg-dark);
  content: '\f141';
}

.step.rejected::before {
  border-color: red;
  background: red;
  color: var(--input-bg);
  content: '\f05e';
}

.step h4 {
  margin: 0 0 4px 0;
  font-size: 0.8rem;
  color: var(--bg-dark);
}

.step p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.notification-badge {
  background: var(--alert-text);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.approval-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.approval-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.approval-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--input-bg);
}

.app-info h4 {
  margin: 8px 0 2px 0;
  font-size: 1.05rem;
  color: var(--text-main);
}

.app-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.badge-exit {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-it {
  background: #f3e8ff;
  color: #7e22ce;
}

.badge-visitor {
  background: #dcfce7;
  color: #15803d;
}

.app-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.approval-header.active .app-icon {
  transform: rotate(180deg);
}

.approval-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease;
  background: var(--surface-white);
}

.approval-body.open {
  padding: 20px;
  max-height: 1000px;
  border-top: 1px solid var(--border-light);
}

.app-data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.app-data-grid small {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-data-grid p {
  margin: 3px 0 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bg-dark);
}

.app-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-approve {
  background: var(--accent-gold);
}

.btn-approve:hover {
  background: var(--accent-hover);
}

.btn-reject {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fda4af;
}

.btn-reject:hover {
  background: #ffe4e6;
}

.reject-box {
  background: var(--input-bg);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border: 1px dashed #fda4af;
  animation: fadeIn 0.3s ease-out;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
}

.page-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.page-btn {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--bg-dark);
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--input-bg);
}

#toast-container {
  position: fixed;
  top: env(safe-area-inset-top, 20px);
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: auto;
  max-width: calc(100vw - 40px);
}

.toast {
  width: 320px;
  max-width: 100%;
  padding: 14px 18px;
  background: white;
  color: var(--text-main);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: auto;
  border-left: 5px solid var(--accent-gold);
  animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  transition: all 0.3s ease;
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.info {
  border-left-color: var(--accent-gold);
}

@keyframes toastSlideIn{

    from {
        transform: translateX(110%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}

.toast.fade-out {
  transform: translateX(110%);
  opacity: 0;
}

.tracking-list-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 0;
}

.tracking-list-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.tl-id {
  font-weight: 600;
  color: var(--bg-dark);
  font-size: 0.95rem;
}

.tl-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tl-status.pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tl-status.approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.tl-status.rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.tl-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tl-purpose {
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.step small {
  display: inline-block;
  margin-top: 6px;
  font-weight: 500;
  background: var(--input-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.events-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-card {
  display: flex;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: var(--accent-gold);
}

.event-card.has-image {
  flex-direction: column;
}

.event-image {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-date-badge {
  background: var(--bg-dark);
  color: var(--surface-white);
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.event-date-badge .day {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-top: 5px;
  color: var(--accent-gold);
}

.event-details {
  padding: 20px;
  flex: 1;
}

.event-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.tag-sports {
  background: #e0f2fe;
  color: #0369a1;
}

.tag-trip {
  background: #fef3c7;
  color: #b45309;
}

.tag-wellness {
  background: #dcfce7;
  color: #15803d;
}

.event-details h4 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: var(--bg-dark);
}

.event-details p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.seat-tracker {
  margin: 15px 0;
}

.seat-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--bg-dark);
}

.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 4px;
}

.booking-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  align-items: center;
}

.timeslot-select {
  flex: 1;
  min-height: 40px;
  padding: 8px 12px;
}

.btn-small {
  width: auto;
  min-height: 40px;
  padding: 8px 20px;
  margin-top: 0;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--bg-dark);
  margin-top: 15px;
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--surface-white);
}

.sc-highlight-card {
  background: linear-gradient(135deg, var(--bg-dark), #1a232a);
  border-radius: 16px;
  padding: 30px 20px;
  color: var(--surface-white);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

.sc-highlight-card::after {
  content: '\f0d6';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 8rem;
  opacity: 0.05;
  color: var(--surface-white);
}

.sc-icon {
  background: rgba(168, 153, 104, 0.2);
  color: var(--accent-gold);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
}

.sc-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.sc-info h2 {
  margin: 5px 0;
  font-size: 2.2rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 1px;
}

.sc-info small {
  font-size: 0.75rem;
  opacity: 0.7;
}

.announcement-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.announce-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-gold);
}

.announce-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.announce-tag.alert {
  color: #b91c1c;
}

.announce-card.general-card {
  border-left-color: #b91c1c;
}

.announce-card h4 {
  margin: 8px 0;
  font-size: 1.05rem;
  color: var(--bg-dark);
}

.announce-card p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.announce-card small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.promo-card {
  display: flex;
  gap: 15px;
  align-items: center;
}

.promo-avatar {
  width: 50px;
  height: 50px;
  background: var(--input-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.form-instructions {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.category-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}

.cat-option input {
  display: none;
}

.cat-box {
  border: 2px solid var(--border-light);
  background: var(--input-bg);
  border-radius: 12px;
  padding: 10px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: row;
  gap: 25px;
  color: var(--text-muted);
  width: 100%;
  height: 25px;
}

.cat-box i {
  font-size: 1.8rem;
}

.cat-box span {
  font-size: 0.85rem;
  font-weight: 500;
}

.cat-option input:checked + .cat-box {
  border-color: var(--accent-gold);
  background: rgba(168, 153, 104, 0.05);
  color: var(--accent-gold);
}

.file-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  background: var(--input-bg);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.file-upload-area:hover {
  border-color: var(--primary-color);
  background: var(--surface-white);
  color: var(--primary-color);
}

.upload-icon {
  font-size: 2rem;
  color: var(--border-light);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.file-upload-area:hover .upload-icon {
  color: var(--accent-gold);
}

.file-upload-area p {
  margin: 0 0 5px 0;
  font-weight: 500;
  color: var(--bg-dark);
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-name-display {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

.notice-carousel {
  position: relative;
  height: 250px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(51, 63, 72, 0.15);
  background-color: var(--slate);
}

.carousel-track-container {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  height: 100%;
  transition: transform 250ms ease-in;
}

.carousel-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-content {
  padding: 30px;
  color: var(--text-light);
  z-index: 2;
}

.notice-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.6;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(51, 63, 72, 0.9), transparent);
  width: 100%;
  padding-top: 60px;
}

.notice-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notice-badge.gold-badge {
  background-color: var(--gold);
  color: var(--slate);
  border: none;
}

.notice-title {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.notice-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(51, 63, 72, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.carousel-button:hover {
  background: var(--gold);
  color: var(--slate);
}

.carousel-button--left {
  left: 15px;
}

.carousel-button--right {
  right: 15px;
}

.is-hidden {
  display: none;
}

.carousel-nav {
  position: absolute;
  bottom: 15px;
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 8px;
  z-index: 10;
}

.carousel-indicator {
  border: none;
  border-radius: 50%;
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-indicator.current-indicator {
  background: var(--gold);
  transform: scale(1.3);
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 5px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  flex-grow: 1;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 0px;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
}

.search-box:focus-within {
  border-color: var(--gold);
}

.search-box input:focus, select:focus, textarea:focus {
  box-shadow: none;
}

.search-icon {
  color: var(--text-muted);
  margin-right: 12px;
  position: absolute;
  left: 15px;
  font-size: 0.9rem;
}

.search-box:focus-within .search-icon {
  color: var(--gold);
}

#searchInput {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  color: var(--text-dark);
  background: transparent;
}

#searchInput::placeholder {
  color: #9aa5b1;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 8px;
  margin-top: 8px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 101;
  border: 1px solid var(--border-color);
  width: 100%;
  margin: 0;
}

.search-results.hidden {
  display: none;
}

.search-result-item a {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f2f5;
  transition: background-color 0.2s ease;
}

.search-result-item:last-child a {
  border-bottom: none;
}

.search-result-item a:hover {
  background-color: #fcfbf8;
  border-left: 4px solid var(--gold);
  padding-left: 16px;
}

.result-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.result-desc {
  font-size: 0.85rem;
  color: #7b8794;
}

.no-results {
  padding: 15px 20px;
  color: #7b8794;
  font-style: italic;
  text-align: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.brand-logo-inline {
  height: 50px;
  width: auto;
  margin-left: 6px;
  object-fit: contain;
}

.app-title-inline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-gold);
  white-space: nowrap;
}

.search-container.inline-search {
  margin: 0;
  flex-grow: 1;
}

.search-container.inline-search .search-box {
  height: 30px;
}

.top-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 3px 6px 10px rgba(0, 0, 0, 0.04);
    margin: -30px -30px 20px -30px;
    padding: 5px 30px;
    border-bottom: 1px solid white;
    border-radius: 20px 20px 0 0;
    gap: 15px;
}

.brand-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.search-box input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-results li {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-results li:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.user-profile-mini {
  position: relative;
  flex-shrink: 0;
}

.user-profile-mini .avatar {
  width: 40px;
  height: 40px;
  background-color: var(--accent-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  user-select: none;
}

.user-profile-mini .avatar:hover {
  box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--accent-gold);
  border: 1px solid white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 190px;
  display: none;
  flex-direction: column;
  z-index: 1005;
  overflow: hidden;
}

.profile-dropdown.active {
  display: flex;
}

.profile-dropdown a {
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s;
}

.profile-dropdown a:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
}

.profile-dropdown a.logout-btn:hover {
  color: var(--danger-color);
}

.profile-dropdown a.logout-btn:hover i {
  color: var(--danger-color);
}

.select2-container--default .select2-selection--single {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 42px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-main);
  line-height: normal;
  padding-left: 15px;
  font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 12px;
}

.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
  background-color: #ffffff;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1) !important;
  outline: none;
}

.select2-dropdown {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  z-index: 1050;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--accent-gold);
  color: white;
}

.filter-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
}

.filter-icon {
  position: absolute;
  left: 15px;
  z-index: 10;
  color: var(--accent-gold);
  font-size: 0.9rem;
  pointer-events: none;
}

.filter-wrapper .select2-container--default .select2-selection--single {
  border-radius: 20px;
  background-color: #ffffff;
  height: 38px;
}

.filter-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 40px;
  font-size: 0.85rem;
}

.hero-select-group {
  background: var(--bg-dark);
  padding: 15px 20px;
  border-radius: 20px;
  border: 1px solid rgba(67, 97, 238, 0.2);
  margin-bottom: 25px;
}

.hero-select-group label {
  color: white;
  font-size: 1rem;
  margin-bottom: 10px;
}

.hero-select-group .select2-container--default .select2-selection--single {
  height: 28px;
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}

.hero-select-group .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 1.05rem;
  font-weight: 600;
  color: white !important;
}

#events-page {
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.timeslot-container {
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.timeslot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

.timeslot-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.error-message {
  color: var(--danger-color);
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

[post-inactive-overlay] {
  z-index: 10;
  pointer-events: none;
}

.card-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.card-actions button {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 0.8rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-actions button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.card-actions button.btn-delete:hover {
  background: var(--danger-color);
  border-color: var(--danger-color);
}

.post-metadata {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-metadata span {
  display: block;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.pagination-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 15px;
  box-sizing: border-box;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-main);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 25px;
}

.table-responsive {
  overflow-x: auto;
  margin-bottom: 15px;
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.reg-table th {
  text-align: left;
  padding: 12px;
  background: #f8f9fa;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.reg-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  padding: 5px;
}

.drag-handle:active {
  cursor: grabbing;
}

.reg-row.dragging {
  opacity: 0.5;
  background: #f1f3f5;
}

.timeslot-dropdown {
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (min-width: 1024px) {
  .menu-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (min-width: 768px) {
  .menu-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (min-width: 1024px) {
  .menu-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (min-width: 480px) {
  .app-data-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  #toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999 !important;
    pointer-events: none;
  }
  
  .toast {
    display: flex !important;
    visibility: visible !important;
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .category-selector {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (min-width: 1024px) {
  .category-selector {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 850px) {
  .app-title-inline {
    display: none;
  }
}

@media (max-width: 600px) {
  .top-header-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .brand-group {
    justify-content: center;
  }
  
  .search-container.inline-search {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .top-header-bar {
    margin: -20px -20px 20px -20px;
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  
  .search-container {
    order: 3;
    max-width: 100%;
    margin-top: 5px;
  }
}

@media (max-width: 600px) {
  .top-header-bar {
    margin: -20px -20px 20px -20px;
    padding: 12px 15px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  
  .brand-logo {
    max-height: 24px;
  }
    
  .login-logo {
    max-height: 100px;
    height: 100px;
    width: 100px;
  }
  
  .search-container {
    order: initial;
    margin-top: 0;
    max-width: none;
  }
  
  .search-box input {
    padding: 8px 12px 8px 30px;
    font-size: 0.85rem;
  }
  
  .search-icon {
    left: 10px;
    font-size: 0.8rem;
  }
  
  .user-profile-mini .avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .top-header-bar {
    margin: -20px -20px 20px -20px;
    padding: 10px 15px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  
  .brand-container {
    flex: 0 0 auto !important;
    width: auto;
  }
  
  .brand-logo {
    max-height: 24px;
    width: auto;
  }

.login-logo {
    max-height: 100px;
    height: 100px;
    width: 100px;
  }
  
  .search-container {
    flex: 1 1 0px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  
  .search-box input {
    width: 100%;
    padding: 8px 12px 8px 30px;
    font-size: 0.85rem;
  }
  
  .user-profile-mini {
    flex: 0 0 auto !important;
  }
  
  .user-profile-mini .avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .profile-dropdown {
    top: calc(100% + 5px);
    width: 160px;
  }
}
