/* ===== CSS Variables ===== */
:root {
  --primary: #549A56;
  --primary-dark: #3d7a3f;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --dark: #1f2937;
  --light: #f3f4f6;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --text: #111827;
  
  /* Mobile Spacing */
  --mobile-padding: 16px;
  --mobile-gap: 12px;
  --touch-target-size: 44px;
  --mobile-font-size: 14px;
  --mobile-h1-size: 24px;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Navigation ===== */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  padding: 15px 0;
}

.logo-icon {
  font-size: 28px;
}

/* Hamburger Button (Mobile) - Standardmäßig versteckt */
.mobile-menu-toggle {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: var(--touch-target-size);
  min-height: var(--touch-target-size);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 101;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 18px;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 5px;
  margin: 0;
}

/* Mobile-User-Info und Mobile-Logout auf Desktop verstecken */
.mobile-user-info,
.mobile-logout {
  display: none;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  display: block;
  padding: 20px 15px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: background-color 0.2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  background-color: var(--light);
  color: var(--primary);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-icon {
  font-size: 1.25rem;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-icon:hover,
.nav-icon.active {
  background-color: var(--light);
}

.user-name {
  font-weight: 500;
  color: var(--muted);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  list-style: none;
  padding: 5px 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  padding: 10px 15px;
  display: block;
}

.dropdown-icon {
  font-size: 10px;
}

/* ===== Main Content ===== */
.main-content {
  min-height: calc(100vh - 120px);
  padding: 30px 0;
}

/* ===== Page Header ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2,
.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-body.p-0 {
  padding: 0;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary);
}

.stat-card-success {
  border-left-color: var(--success);
}

.stat-card-warning {
  border-left-color: var(--warning);
}

.stat-card-info {
  border-left-color: var(--info);
}

.stat-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: var(--touch-target-size);
  min-width: var(--touch-target-size);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-success {
  background-color: var(--success);
  color: var(--white);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--light);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===== Table ===== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 12px;
  background-color: var(--light);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
  background-color: var(--light);
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-warning {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-default {
  background-color: var(--light);
  color: var(--muted);
}

.badge-secondary {
  background-color: #e5e7eb;
  color: #374151;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.form-input,
.search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-input:focus,
.search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input[readonly] {
  background-color: var(--light);
  cursor: not-allowed;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.col-4 { flex: 0 0 33.333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666%; }

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 30px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.form-section-title:first-child {
  margin-top: 0;
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 500;
  white-space: nowrap;
}

.search-input {
  min-width: 300px;
}

/* ===== Layout Utilities ===== */
.row {
  display: flex;
  gap: 20px;
  margin: 0 -10px;
}

.row > * {
  padding: 0 10px;
}

.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }

/* ===== Text Utilities ===== */
.text-muted {
  color: var(--muted);
}

.text-sm {
  font-size: 14px;
}

.text-center {
  text-align: center;
}

/* ===== Quick Actions ===== */
.quick-actions {
  margin-bottom: 24px;
}

.quick-actions h2 {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.action-card {
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.action-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.action-label {
  font-weight: 500;
  font-size: 14px;
}

/* ===== Calendar ===== */
.calendar-controls {
  display: flex;
  gap: 10px;
}

.calendar-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
}

.calendar-header {
  background-color: var(--dark);
  color: var(--white);
  padding: 12px;
  text-align: center;
  font-weight: 600;
}

.calendar-day {
  background-color: var(--white);
  min-height: 100px;
  padding: 8px;
  position: relative;
}

.calendar-day:hover {
  background-color: var(--light);
}

.day-number {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-event {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.status-bestätigt {
  background-color: var(--success);
  color: var(--white);
}

.calendar-event.status-option {
  background-color: var(--warning);
  color: var(--white);
}

.calendar-event.status-anfrage {
  background-color: var(--info);
  color: var(--white);
}

/* Event List View */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: var(--light);
  border-radius: 6px;
  border-left: 4px solid var(--primary);
}

.event-list-item.status-bestätigt {
  border-left-color: var(--success);
}

.event-list-item.status-option {
  border-left-color: var(--warning);
}

.event-date {
  font-weight: 700;
  font-size: 16px;
  min-width: 60px;
}

.event-info {
  flex: 1;
}

.event-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.event-meta {
  font-size: 14px;
  color: var(--muted);
}

/* ===== Resources ===== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.resource-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.resource-icon {
  font-size: 64px;
  margin-bottom: 15px;
}

.resource-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.resource-card p {
  color: var(--muted);
  font-size: 14px;
}

/* ===== Galleries ===== */
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: var(--light);
  border-radius: 6px;
  padding: 20px;
}

/* ===== Gallery Media Grid (Admin Event Detail) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0;
    margin: 0;
  }
  
  .gallery-grid .gallery-card {
    margin: 0;
    width: 100%;
  }
}

.gallery-grid .gallery-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.gallery-card__media {
  position: relative;
  display: block;
}

.gallery-card__media video,
.gallery-card__media img,
.gallery-card__media picture,
.gallery-card__media picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: fill;
  display: block;
  border: none;
  border-bottom: 1px solid var(--border);
}

.gallery-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(21, 32, 23, 0.75);
  color: white;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}

.gallery-card__footer {
  padding: 1rem 1.2rem;
  display: grid;
  gap: .8rem;
}

.gallery-card__filename {
  font-size: .65rem;
  color: #5f6b62;
  word-break: break-all;
}

.gallery-card__timestamp {
  font-size: .75rem;
  color: #6a756c;
}

.gallery-card__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.gallery-header {
  margin-bottom: 15px;
}

.gallery-header h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.gallery-info {
  margin-bottom: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.info-row .label {
  color: var(--muted);
  font-size: 14px;
}

.gallery-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== Remote ===== */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.status-indicator.online {
  color: var(--success);
}

.status-indicator.offline {
  color: var(--muted);
}

.command-history {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.command-item {
  padding: 15px;
  background-color: var(--light);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.command-item.status-success {
  border-left-color: var(--success);
}

.command-item.status-failed {
  border-left-color: var(--danger);
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.command-params {
  margin: 8px 0;
  padding: 8px;
  background-color: var(--white);
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
}

.command-meta {
  margin-top: 8px;
}

.quick-commands {
  display: flex;
  flex-direction: column;
}

/* ===== Inline-Editing (PROJ-16) ===== */
.block-view .card-header {
  position: relative;
}

.block-view .card-header button[onclick*="enableBlockEdit"] {
  display: inline-block;
}

.block-editing .card-header button[onclick*="enableBlockEdit"] {
  display: none;
}

.block-edit-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.block-editing {
  border: 2px solid var(--primary);
  border-radius: 8px;
}

.block-editing .card-body {
  background-color: #f9fafb;
}

.block-saving {
  opacity: 0.7;
  pointer-events: none;
}

.block-error {
  display: none;
  color: var(--danger);
  font-size: 14px;
  margin-top: 10px;
  padding: 8px;
  background-color: #fee2e2;
  border-radius: 4px;
}

.block-editing .block-error {
  display: block;
}

/* Inline-Edit Input Fields */
/* Verstecke nur divs ohne Inputs/Selects (markiert mit .has-inputs) */
.block-editing .detail-item > div:not(.block-error):not(.has-inputs) {
  display: none;
}

/* Zeige divs mit Inputs/Selects an */
.block-editing .detail-item > div.has-inputs {
  display: block !important;
}

/* Zeige Inputs und Selects immer an */
.block-editing .detail-item input,
.block-editing .detail-item select,
.block-editing input[data-field],
.block-editing select[data-field],
.block-editing .form-input[data-field],
.block-editing input.form-input,
.block-editing select.form-input {
  display: block !important;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  margin-top: 4px;
}

.block-view .detail-item input[data-field],
.block-view .detail-item select[data-field],
.block-view .form-input[data-field] {
  display: none;
}

/* ===== Notes ===== */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.note-item {
  padding: 15px;
  background-color: var(--light);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.note-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.note-date {
  font-size: 13px;
  color: var(--muted);
}

.note-text {
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Email ===== */
.email-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background-color: var(--light);
  border-radius: 6px;
}

.email-icon {
  font-size: 24px;
  font-weight: 700;
}

.email-icon.outgoing {
  color: var(--primary);
}

.email-icon.incoming {
  color: var(--success);
}

.email-content {
  flex: 1;
}

.email-subject {
  margin-bottom: 4px;
}

.email-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ===== Info Box ===== */
.info-box {
  padding: 15px;
  background-color: #eff6ff;
  border-left: 4px solid var(--info);
  border-radius: 4px;
}

.info-item {
  margin-bottom: 15px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.token-display {
  display: flex;
  gap: 10px;
  align-items: center;
}

.token-display code {
  flex: 1;
  padding: 8px;
  background-color: var(--light);
  border-radius: 4px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

/* ===== Alerts ===== */
.alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Auth Page ===== */
.auth-page {
  background: linear-gradient(135deg, var(--primary) 0%, #2d5a2f 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.auth-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.auth-logo .logo-icon {
  font-size: 64px;
}

.auth-logo h1 {
  font-size: 28px;
  margin: 0;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.auth-form {
  margin-bottom: 20px;
}

.auth-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== Error Page ===== */
.error-page {
  text-align: center;
  padding: 80px 20px;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 20px;
}

.error-page h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ===== Action Buttons ===== */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex !important;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar .container {
    flex-wrap: nowrap;
    padding: 0 var(--mobile-padding);
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 60px 0 20px 0;
    margin: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 99;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .navbar-menu a {
    padding: 16px var(--mobile-padding);
    min-height: var(--touch-target-size);
    display: flex;
    align-items: center;
    font-size: var(--mobile-font-size);
  }

  /* Dropdown auf Mobile */
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
    padding: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding-left: calc(var(--mobile-padding) * 2);
    min-height: var(--touch-target-size);
  }

  /* User-Bereich auf Mobile */
  .navbar-user {
    display: none;
  }

  /* User-Info im Mobile-Menu - Nur auf Mobile sichtbar */
  .mobile-user-info {
    display: block;
    border-bottom: 2px solid var(--border);
    padding: var(--mobile-padding);
    background: var(--light);
  }

  .mobile-logout {
    display: block;
  }

  .mobile-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-user-name {
    font-weight: 600;
    font-size: var(--mobile-font-size);
    color: var(--text);
  }

  .mobile-user-actions {
    display: flex;
    gap: 8px;
  }

  .mobile-nav-icon {
    font-size: 1.25rem;
    text-decoration: none;
    padding: 8px;
    min-width: var(--touch-target-size);
    min-height: var(--touch-target-size);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
  }

  .mobile-nav-icon:hover,
  .mobile-nav-icon.active {
    background-color: var(--white);
  }

  .mobile-logout {
    margin-top: auto;
    padding: var(--mobile-padding);
    border-top: 2px solid var(--border);
  }

  /* Container Padding */
  .container {
    padding: var(--mobile-padding);
  }

  /* Page Header */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--mobile-gap);
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: var(--mobile-h1-size);
  }

  .page-header > div {
    width: 100%;
  }

  .page-header .btn {
    font-size: var(--mobile-font-size);
    padding: 10px 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .row {
    flex-direction: column;
    gap: var(--mobile-gap);
  }

  .col-4,
  .col-6,
  .col-8 {
    flex: 0 0 100%;
    width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: var(--mobile-gap);
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--mobile-gap);
  }

  .search-input {
    min-width: 100%;
    min-height: var(--touch-target-size);
  }

  .calendar-grid {
    font-size: 12px;
  }

  .calendar-day {
    min-height: 80px;
    padding: 4px;
  }

  /* Desktop Table / Mobile Cards Toggle */
  .desktop-table {
    display: table;
  }

  .mobile-cards {
    display: none;
  }

  /* Event Cards */
  .event-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--mobile-padding);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .event-card-date {
    font-weight: 600;
    color: var(--text);
    font-size: var(--mobile-font-size);
  }

  .event-card-status {
    display: inline-block;
  }

  .event-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .event-card-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .event-card-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .event-card-value {
    font-size: var(--mobile-font-size);
    color: var(--text);
  }

  .event-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .event-card-actions .btn {
    width: 100%;
  }

  /* Main Content Padding */
  .main-content {
    padding: var(--mobile-padding) 0;
  }

  /* Card Padding */
  .card-header,
  .card-body {
    padding: var(--mobile-padding);
  }

  /* Buttons auf Mobile */
  .btn {
    padding: 12px 20px;
    font-size: var(--mobile-font-size);
  }

  .btn-sm {
    padding: 10px 16px;
    font-size: var(--mobile-font-size);
  }

  /* Desktop Table / Mobile Cards Toggle */
  .desktop-table {
    display: none;
  }

  .mobile-cards {
    display: grid;
  }

  /* Resource Cards (Fotoboxen, Produkt-Typen, etc.) */
  .resource-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .resource-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--mobile-padding);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .resource-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .resource-card-title {
    font-weight: 600;
    color: var(--text);
    font-size: var(--mobile-font-size);
  }

  .resource-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .resource-card-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .resource-card-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .resource-card-value {
    font-size: var(--mobile-font-size);
    color: var(--text);
  }

  .resource-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .resource-card-actions .btn {
    flex: 1;
  }

  .resource-card-preview {
    margin-bottom: 12px;
  }

  .resource-card-preview .preview-thumb {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  /* Remote Cards */
  .remote-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .remote-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--mobile-padding);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .remote-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .remote-card-status {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .remote-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* FX Cards */
  .fx-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .fx-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--mobile-padding);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
}

/* Desktop: Table anzeigen, Cards verstecken */
@media (min-width: 768px) {
  .desktop-table {
    display: table;
  }

  .mobile-cards {
    display: none;
  }
}

/* ===== Toast Notifications ===== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--dark);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: var(--success);
}

.toast-error {
  background: var(--danger);
}

.toast-info {
  background: var(--info);
}

.toast-warning {
  background: var(--warning);
}

.toast-icon {
  font-size: 16px;
  font-weight: bold;
}

/* ===== Modal Styles ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
  margin: auto;
  position: relative;
  overflow-y: auto;
}

.modal h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #333;
}

.modal p {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.modal-actions .btn {
  min-width: 140px;
  white-space: nowrap;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== Tabs (Settings) ===== */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tabs::-webkit-scrollbar {
  height: 6px;
}

.tabs::-webkit-scrollbar-track {
  background: var(--light);
}

.tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.2s;
  min-height: var(--touch-target-size);
}

.tab-btn:hover {
  color: var(--primary);
  background-color: var(--light);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

@media (max-width: 767px) {
  .tabs {
    gap: 8px;
    padding-bottom: 0;
    margin-bottom: var(--mobile-gap);
  }

  .tab-btn {
    padding: 12px 16px;
    font-size: var(--mobile-font-size);
    min-height: var(--touch-target-size);
  }

  /* Placeholder Grid (Settings Templates) */
  .placeholder-grid {
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }

  .placeholder-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .placeholder-item code {
    font-size: 12px;
  }
}

.toast-message {
  flex: 1;
}

/* FX Image Styles */
.fx-preview-image {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.fx-test-result-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
}

.fx-activity-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.fx-config-card-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

/* FX Activity Page */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.activity-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.activity-card:hover {
  box-shadow: 0 4px 12px var(--shadow);
}

.activity-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.activity-info {
  padding: 1rem;
}

.activity-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.activity-info p {
  margin: 0.25rem 0;
  color: #666;
}

.activity-info small {
  color: #999;
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .activity-grid {
    grid-template-columns: 1fr;
    gap: var(--mobile-gap);
  }
}

/* FX Config Selection */
.fx-config-card {
  position: relative;
}

.fx-config-card .checkmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.fx-config-card .checkmark.selected {
  background: #4CAF50;
}

/* FX Local File Preview */
.fx-local-file-preview {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(0,180,0,0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fx-local-file-thumb {
  height: 60px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.fx-local-file-status {
  color: green;
  font-size: 0.85rem;
}

.fx-local-file-preview .btn {
  margin-left: auto;
}

/* FX Event Edit Page - Feature Blocks */
.fx-feature-block {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
}

.fx-feature-block-warning {
  background: rgba(255,200,50,0.15);
  margin-top: 1.5rem;
}

.fx-feature-block-info {
  background: rgba(100,150,255,0.1);
  margin-top: 1.5rem;
}

.fx-feature-block-success {
  background: rgba(50,200,100,0.1);
  margin-top: 1rem;
}

.fx-feature-block-purple {
  background: rgba(180,100,255,0.1);
}

.fx-feature-block-gray {
  background: rgba(0,0,0,0.05);
  margin-top: 1.5rem;
}

.fx-feature-block h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
}

.fx-checkbox-label-bold {
  font-weight: bold;
}

.fx-feature-uploads {
  margin-top: 1rem;
  padding-top: 1rem;
}

.fx-feature-uploads-border-info {
  border-top: 1px solid rgba(100,150,255,0.3);
}

.fx-feature-uploads-border-purple {
  border-top: 1px solid rgba(180,100,255,0.3);
}

.fx-upload-row {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.fx-upload-input {
  flex: 1;
  font-size: 0.85rem;
}

.fx-label-bold {
  font-weight: bold;
  font-size: 0.9rem;
}

.fx-warning-text {
  color: #c60;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.fx-muted-text-sm {
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.fx-export-note {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

.fx-modes-title {
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.fx-modes-warning {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.fx-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.fx-credit-settings-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.fx-info-box-success {
  background: #e8f5e9;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.fx-info-box-success p {
  margin: 0.5rem 0;
}

.fx-link-display {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.fx-link-input {
  flex: 1;
  font-size: 0.85rem;
}

.fx-monospace-input {
  flex: 1;
  padding: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Hybrid Mode Styling */
.hybrid-mode-title {
  text-align: center;
}

.hybrid-mode-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.hybrid-mode-subtitle {
  display: block;
  color: #666;
  font-size: 0.95rem;
  font-weight: normal;
  line-height: 1.4;
}

/* Inline Form */
.inline-form {
  display: inline;
}

/* FX Event Edit - Utility Classes */
.fx-hidden {
  display: none !important;
}

.fx-reset-credits-group {
  margin-top: 1rem;
}

.fx-customer-selected-msg {
  color: #4CAF50;
  font-weight: bold;
}

.fx-existing-link-box {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.fx-link-display {
  margin-top: 1rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.fx-download-buttons-spaced {
  margin-top: 0.5rem;
}

.fx-download-buttons-column {
  margin-top: 0.5rem;
  flex-direction: column;
  align-items: flex-start;
}

/* Form Group Flex */
.form-group-zip {
  flex: 0 0 30%;
}

.form-group-city {
  flex: 1;
}

/* Gallery Event Detail Page */
.gal-event-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.gal-event-count {
  font-size: 0.9rem;
  font-weight: normal;
  color: #666;
}

.gal-stats-margin {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.gal-flex-wrap-sm {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}

.gal-flex-wrap {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.gal-flex-mb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gal-input {
  flex: 1;
  min-width: 180px;
  padding: 0.4rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  background: white;
}

.gal-input-mono {
  flex: 1;
  min-width: 180px;
  padding: 0.4rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  background: white;
  font-family: monospace;
  font-weight: 600;
}

.gal-input-sm {
  flex: 1;
  padding: 0.4rem;
  border: 1px solid rgba(74, 90, 76, 0.3);
  border-radius: 4px;
  font-size: 0.85rem;
}

.gal-input-file {
  flex: 1;
  padding: 0.4rem;
  border: 1px solid rgba(74, 90, 76, 0.3);
  border-radius: 4px;
  font-size: 0.85rem;
}

.gal-loading-text {
  margin: 0;
  font-size: 0.85rem;
}

.gal-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.gal-label-mt {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.gal-help-text {
  display: block;
  margin-top: 0.2rem;
  color: rgba(74, 90, 76, 0.7);
  font-size: 0.75rem;
  line-height: 1.3;
}

.gal-form-mb {
  margin-bottom: 1rem;
}

.gal-breeze-pre {
  background: #f5f5f5;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  font-family: monospace;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}

.gal-upload-status {
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

.gal-upload-flex {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.gal-mosaic-link {
  text-decoration: none;
  color: inherit;
}

.gal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-scroll-btn {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary, #549A56);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

/* Dynamically generated form styles (from loadEventStyle) */
.gal-form-grid {
  display: grid;
  gap: 1rem;
}

.gal-form-section-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.gal-form-row-grid {
  display: grid;
  gap: 0.75rem;
}

.gal-color-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gal-color-input {
  width: 50px;
  height: 35px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.gal-color-text-input {
  flex: 1;
  max-width: 200px;
  padding: 0.4rem;
  border: 2px solid #d0d7d3;
  border-radius: 4px;
  font-size: 0.9rem;
}

.gal-textarea {
  width: 100%;
  max-width: 500px;
  padding: 0.4rem;
  border: 2px solid #d0d7d3;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
}

.gal-textarea-lg {
  width: 100%;
  max-width: 500px;
  padding: 0.4rem;
  border: 2px solid #d0d7d3;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.gal-url-input {
  width: 100%;
  max-width: 500px;
  padding: 0.4rem;
  border: 2px solid #d0d7d3;
  border-radius: 4px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.gal-file-input {
  flex: 1;
  max-width: 300px;
  padding: 0.4rem;
  border: 2px solid #d0d7d3;
  border-radius: 4px;
  font-size: 0.85rem;
}

.gal-file-flex {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gal-logo-preview {
  max-width: 150px;
  max-height: 80px;
  border: 1px solid #d0d7d3;
  border-radius: 4px;
  padding: 0.5rem;
}

.gal-logo-section-mb {
  margin-bottom: 0.75rem;
}

.gal-btn-full {
  width: 100%;
}

.gal-section-mt {
  margin-top: 0.5rem;
}

.gal-label-sm {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.gal-help-sm {
  display: block;
  margin-top: 0.3rem;
  color: #6a756c;
  font-size: 0.85rem;
}

.gal-error-text {
  color: red;
}

/* Settings Page */
.settings-logo-preview {
  max-height: 60px;
  max-width: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.25rem;
}

.settings-signature-preview {
  max-height: 80px;
  max-width: 300px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.25rem;
  background: white;
}

.settings-mb-sm {
  margin-bottom: 0.5rem;
}

.settings-mt-sm {
  margin-top: 0.5rem;
}

.settings-mb {
  margin-bottom: 1rem;
}

.settings-flex-gap {
  display: flex;
  gap: 8px;
}

.settings-flex-input {
  flex: 1;
}

.settings-section-divider {
  border-top: 1px solid var(--border);
}

.settings-webhook-box {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.settings-webhook-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.settings-webhook-url {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.settings-btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Additional Settings Styles */
.settings-flex-row {
  display: flex;
  gap: 0.5rem;
}

.settings-info-box {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.settings-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.settings-info-text {
  font-size: 0.9rem;
  color: #666;
}

.settings-flex-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-flex-col-lg {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.settings-attachments-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.settings-attachments-list {
  margin-bottom: 15px;
}

.settings-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: white;
  border-radius: 4px;
  margin-bottom: 8px;
}

.settings-attachment-size {
  color: #666;
  margin-left: 10px;
}

.settings-label-bold {
  font-size: 0.9rem;
  font-weight: 600;
}

.settings-help-gray {
  color: #666;
}

.settings-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.settings-form-group-compact {
  margin-bottom: 0;
}

.settings-input-compact {
  margin-bottom: 0.25rem;
}

.settings-status-active {
  color: #4caf50;
}

.settings-status-warning {
  color: #ff9800;
}

.settings-status-error {
  color: #f44336;
}

.settings-telegram-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.settings-telegram-flex {
  flex: 1;
}

/* Utility Classes */
.flex-1 {
  flex: 1;
}

.mt-lg {
  margin-top: 1.8rem;
}

.settings-code-badge {
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 1px solid #e0e0e0;
}

.settings-input-preview {
  flex: 1;
  padding: 0.5rem;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 0.9rem;
}

.settings-subtitle {
  margin: 0 0 0.75rem 0;
  color: #333;
  font-size: 0.95rem;
  font-weight: 600;
}

.settings-description {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.6;
}

.settings-color-input {
  width: 50px;
  height: 38px;
}

.settings-flex-start {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.settings-padding-sm {
  padding: 0.25rem 0.5rem;
  background: #f5f5f5;
  border-radius: 4px;
}

/* More Utility Classes */
.ml-xs {
  margin-left: 4px;
}

.ml-sm {
  margin-left: 0.5rem;
}

.ml-1 {
  margin-left: 1rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-xs {
  margin-bottom: 0.25rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-15 {
  margin-bottom: 15px;
}

.nowrap {
  white-space: nowrap;
}

.flex-gap-1 {
  display: flex;
  gap: 1rem;
}

.flex-gap-center {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-card {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

.info-card-blue {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #4a90e2;
}

.info-card-pink {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #e24a90;
}

.info-card-green {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #50c878;
}

.info-card-orange {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #ffa500;
}

.color-dot-blue {
  background: #7986cb;
}

.color-dot-yellow {
  background: #f6bf26;
}

.color-dot-green {
  background: #0b8043;
}

.color-dot-red {
  background: #f4511e;
}

.code-block {
  background: #f5f5f5;
  padding: 0.75rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem 1rem;
}

.logo-preview-box {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: inline-block;
}

.logo-preview-img {
  max-height: 80px;
  max-width: 200px;
}

.settings-modal-footer-end {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.settings-no-attachments {
  color: #999;
  font-size: 0.9rem;
}

.settings-status-warning-inline {
  color: #ff9800;
}

/* Badge Styles */
.badge-sm {
  font-size: 0.7rem;
}

/* Info Box Variants */
.info-box-warning {
  background: #fff9e6;
  border-color: #ffd54f;
}

/* PROJ-25: Info-box variants */
.info-box-primary {
  display: flex;
  gap: 15px;
  background: #e3f2fd;
  border-color: var(--primary);
}

.info-box-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-box-content {
  flex: 1;
}

.info-box-content ul {
  margin: 0;
  padding-left: 20px;
}

.info-box-content li {
  margin-bottom: 4px;
}

.info-box-content li:last-child {
  margin-bottom: 0;
}

/* Event Detail Styles */
.m-0 {
  margin: 0;
}

.mb-half {
  margin-bottom: 0.5rem;
}

.mr-half {
  margin-right: 0.5rem;
}

.mt-half {
  margin-top: 0.5rem;
}

.mt-neg-half {
  margin-top: -0.5rem;
}

.mt-3quarters {
  margin-top: 0.75rem;
}

.pl-28 {
  padding-left: 28px;
}

.fw-600 {
  font-weight: 600;
}

.w-auto {
  width: auto;
}

.w-80 {
  width: 80px;
}

.flex-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flex-center-cursor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.flex-between-start {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.accordion-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.d-block {
  display: block;
}

.label-block {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.block-mt-neg {
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.block-mt-pl {
  display: block;
  margin-top: 0.75rem;
  padding-left: 28px;
}

.text-muted-sm {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.text-muted-sm-mb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.text-gray {
  color: #666;
}

.text-green {
  color: #22c55e;
}

.photobox-thumbnail {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

/* More Event Detail Styles */
.flex-wrap-gap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.text-muted {
  color: var(--muted);
}

.p-1 {
  padding: 1rem;
}

.p-quarter-half {
  padding: 0.25rem 0.5rem;
}

.p-quarter-half-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.p-3quarters {
  padding: 0.75rem;
}

.grid-2col-gap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flex-wrap-gap-8 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flex-min-200 {
  flex: 1;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-secondary);
}

.photobox-square {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
}

.photobox-placeholder {
  width: 32px;
  height: 32px;
  background-color: var(--light);
  border-radius: 4px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

.fw-600-dark {
  font-weight: 600;
  color: #333;
}

.text-gray-95 {
  color: #666;
  font-size: 0.95rem;
}

.strong-dark {
  color: #333;
}

.code-lg {
  font-size: 1rem;
  font-weight: 600;
}

.email-item-clickable {
  cursor: pointer;
}

.badge-telegram {
  background-color: #0088cc;
  color: white;
  border-color: #0088cc;
}

.badge-whatsapp {
  background-color: #6366f1;
  color: white;
  border-color: #6366f1;
}

.checkbox-20 {
  width: 20px;
  height: 20px;
  accent-color: #549A56;
  cursor: pointer;
}

.max-h-150 {
  max-height: 150px;
  overflow-y: auto;
}

.max-h-200-scroll {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
}

.position-card {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background: var(--bg-secondary);
}

.position-card-faded {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background: var(--bg-secondary);
  opacity: 0.85;
}

.mt-1half {
  margin-top: 1.5rem;
}

/* More Event Detail Classes */
.checkbox-label-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.text-95 {
  font-size: 0.95rem;
  line-height: 1.4;
}

.hint-block {
  display: block;
  margin-top: 0.75rem;
  padding-left: 28px;
  color: var(--text-muted);
}

.flex-gap-1-center {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.flex-between-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.position-badge {
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.detail-summary {
  cursor: pointer;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-muted);
}

.flex-gap-wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.flex-gap-half-end {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.modal-actions-mt {
  margin-top: 1.5rem;
}

.employee-select-scroll {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
}

.employee-select-label {
  display: block;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.portal-link-bg {
  background: #f5f7fa;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  word-break: break-all;
  font-family: monospace;
  font-size: 14px;
}

.doc-item-flex {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-actions-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.portal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
}

.text-12 {
  font-size: 12px;
}

.photobox-square-dynamic {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Missing Utility Classes */
.w-full {
  width: 100%;
}

/* Timesheet Styles */
.min-w-120 {
  min-width: 120px;
}

.max-w-500 {
  max-width: 500px;
}

.checkbox-18 {
  width: 18px;
  height: 18px;
  accent-color: #549A56;
}

.text-center-padded {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.title-large {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #111827;
}

.fw-normal-gray {
  font-weight: normal;
  color: #666;
}

.fw-bold-bg-light {
  font-weight: bold;
  background: #f8f9fa;
}

.text-4rem {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.text-1-5rem {
  font-size: 1.5rem;
}

.text-1-25rem {
  font-size: 1.25rem;
}

.flex-1-text-left {
  flex: 1;
  text-align: left;
}

.warning-banner-hidden {
  display: none;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Customer Selection Page */
.fx-password-form {
  max-width: 500px;
  margin: 2rem auto;
}

.fx-selection-instructions {
  margin-bottom: 1.5rem;
}

.fx-submit-container {
  text-align: center;
  margin-top: 2rem;
}

.config-card {
  border: 2px solid #ddd;
}

.config-card-selected {
  border-color: #4CAF50;
}

.config-card-label {
  display: block;
  cursor: pointer;
  margin: 0;
}

/* ===== PROJ-25: Customer Portal Selections ===== */
.selection-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.selection-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.selection-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.selection-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.selection-card-compact {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s;
}

.selection-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.selection-card-compact img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #f9f9f9;
}

.selection-placeholder-compact {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  margin-bottom: 8px;
}

.selection-name-compact {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Custom Design Display in Event Details */
.custom-design-files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.custom-file-item {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  transition: transform 0.2s;
}

.custom-file-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-file-item a {
  text-decoration: none;
  color: #333;
}

.custom-design-preview {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.custom-design-preview:hover {
  transform: scale(1.05);
}

.custom-file-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.custom-file-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.custom-file-actions .btn {
  padding: 4px 12px;
  font-size: 13px;
}

/* Lightbox for Custom Designs */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.lightbox-actions {
  display: flex;
  gap: 12px;
}

.badge-portal {
  background: #2196F3;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: normal;
}

/* Portal Modal Styles */
.portal-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.portal-modal-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s;
  position: relative;
}

.portal-modal-close {
  color: var(--muted);
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.portal-modal-close:hover {
  color: var(--text);
}

.portal-modal h3 {
  margin: 0 0 15px 0;
  color: var(--text);
  font-size: 20px;
}

.portal-modal p {
  margin-bottom: 25px;
  color: var(--muted);
  line-height: 1.6;
}

.portal-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.portal-modal-actions .btn {
  min-width: 100px;
}

/* ===== PROJ-25: Utility Classes (No inline styles!) ===== */

/* Spacing utilities */
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-6 { margin-top: 6px !important; }
.mt-8 { margin-top: 8px !important; }

/* Display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* Text utilities */
.text-muted-secondary { color: #6b7280; }
.fw-600 { font-weight: 600; }

/* Info Box variants */
.info-box-blue {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  padding: 15px;
  border-radius: 8px;
}

.info-box-blue p {
  margin: 0;
  color: #1e40af;
  line-height: 1.6;
}

/* Form field wrapper */
.form-field-wrapper {
  margin-bottom: 20px;
}

/* Custom textarea */
.textarea-full {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
}

/* Section spacing */
.section-spacing-top {
  margin-top: 40px;
}

/* Label with icon */
.label-with-icon {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

/* Small helper text */
.helper-text {
  color: #6b7280;
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

/* Section titles */
.section-title {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

/* Section subtitle */
.section-subtitle {
  color: #6b7280;
  margin-bottom: 20px;
}

/* Badge for layouts */
.badge-layout {
  background: #8b5cf6;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Detail section spacing (for event details) */
.detail-section {
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.detail-section:first-child {
  border-top: none;
  padding-top: 0;
}

.detail-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #374151;
}

.detail-item {
  margin-bottom: 20px;
}

.detail-item label {
  font-weight: 600;
  color: #6b7280;
  display: block;
  margin-bottom: 8px;
}

/* Content boxes */
.content-box {
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  margin-top: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Additional utility classes for event details */
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.ml-8 { margin-left: 8px !important; }

.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.5rem; }

.background-thumb {
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-center { text-align: center; }
.icon-lg {
  font-size: 48px;
  margin-bottom: 10px;
}
.mb-10 { margin-bottom: 10px !important; }

.justify-center { justify-content: center; }

.modal-md {
  max-width: 600px;
}

/* FX Activity Actions - Safe button spacing */
.fx-activity-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .fx-activity-actions {
    flex-direction: column-reverse; /* Zurück button at bottom, safer */
    gap: 16px; /* Larger gap on mobile */
  }
  
  .fx-activity-actions .btn {
    width: 100%;
  }
}
