/* File: assets/css/style.css */
/* Main stylesheet for the guest system */

:root {
  --primary-color: rgb(30, 44, 167);
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: bold;
}

@font-face {
  font-family: 'FuturaRenner';
  src: url('../fonts/FuturaRenner-Regular.woff2') format('woff2');
  font-weight: normal;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
  margin-bottom: 20px;
  font-family: 'FuturaRenner', sans-serif;
}

a {
  color: #4CAF50;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: bold;
}

/* Header */
.header {
  position: relative;
  z-index: 1000;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  h1 {
    color: #fff;
    margin-bottom: 0;
  }
}

.header a {
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  /* Ensure logo stays above mobile menu */
}

.logo img {
  height: 40px;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-info span {
  margin-right: 15px;
}

/* Historical Year Indicator */
.header.historical-year {
  filter: grayscale(100%);
  opacity: 0.85;
  position: relative;
}

.header.historical-year::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.historical-year-banner {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  padding: 12px 20px;
  text-align: center;
  border-bottom: 3px solid #e65100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  z-index: 999;
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.banner-content strong {
  font-weight: bold;
  margin-right: 8px;
}

.banner-content span {
  flex: 1;
  min-width: 200px;
}

.banner-link,
.switch-year-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}

.banner-link:hover,
.switch-year-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Responsive adjustments for historical banner */
@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .banner-content span {
    min-width: auto;
  }
  
  .historical-year-banner {
    padding: 10px 15px;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  margin-right: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: #4CAF50;
  color: white;
}

.btn-primary:hover {
  background-color: #45a049;
}

.btn-secondary {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #0b7dda;
}

.btn-danger {
  background-color: #f44336;
  color: white;
}

.btn-danger:hover {
  background-color: #d32f2f;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}

.logout-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.logout-btn:hover {
  background-color: #d32f2f;
  text-decoration: none;
}

/* Cards and containers */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
}

.login-container {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 100px auto;
}

.login-container .logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.login-options {
  margin-top: 20px;
  text-align: center;
}

/* Forms */
.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.form-actions {
  margin-top: 20px;
}

.form-actions.inline {
  margin-top: 0;
  margin-bottom: 15px;
  align-self: flex-end;
}

/* Guest form specific styles */
.guest-form {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.guest-form h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 20px;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

tr:hover {
  background-color: #f5f5f5;
}

.actions {
  white-space: nowrap;
}

.centered {
  text-align: center;
}

/* Copy link styles */
.copy-link {
  cursor: pointer;
  color: #2196F3;
  text-decoration: underline;
}

.input-with-copy {
  display: flex;
  gap: 10px;
}

.input-with-copy input {
  flex: 1;
}

.copy-button {
  white-space: nowrap;
}

/* Guest types and status */
.guest-type {
  font-weight: bold;
}

/* Guest status styling - checkbox and indicator */
.guest-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 5px;
  min-height: 30px;
}

.guest-status-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.status-delivered {
  background-color: #4CAF50;
}

.status-pending {
  background-color: #FF9800;
}

.wristband-checkbox {
  transform: scale(1.2);
  margin: 0;
  flex-shrink: 0;
}

/* Table cell for wristband status */
td:last-child {
  width: 120px;
  text-align: right;
  vertical-align: middle;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  margin-right: 5px;
}

.tab.active {
  background-color: white;
  border-bottom: 1px solid white;
  margin-bottom: -1px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Messages */
.error-message,
.success-message {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.error-message ul,
.success-message ul {
  margin-left: 20px;
}

/* Dashboard specific styles */
.dashboard-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.dashboard-detailed-stats {
  margin-bottom: 30px;
}

.stat-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: bold;
  margin: 10px 0;
  color: #4CAF50;
}

.stat-link {
  display: block;
  margin-top: 10px;
}

.dashboard-actions {
  margin-bottom: 30px;
}

.recent-activity {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

/* Entrance specific styles */
.search-container {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  background-color: white;
  text-decoration: none;
  color: #333;
}

.filter-btn.active {
  background-color: #4CAF50;
  color: white;
  border-color: #4CAF50;
}

.entrance-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.summary-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.summary-value {
  font-size: 36px;
  font-weight: bold;
  margin: 10px 0;
}

.summary-item:nth-child(1) .summary-value {
  color: #2196F3;
}

.summary-item:nth-child(2) .summary-value {
  color: #4CAF50;
}

.summary-item:nth-child(3) .summary-value {
  color: #FF9800;
}

.artist-section {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.artist-section:last-child {
  border-bottom: none;
}

.no-results {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  margin: 30px 0;
}

/* Instructions */
.instructions {
  margin-bottom: 20px;
  line-height: 1.6;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-stats {
    flex-direction: column;
  }

  .entrance-summary {
    flex-direction: column;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .type-list-container {
    overflow-x: auto;
  }
}

/* Artist fremhævning i lister */
.artist-name {
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
}

.contact-info {
  font-size: 0.9em;
  color: #666;
}

/* Artist section headers i entré-listen */
.artist-section h2 {
  background-color: #f2f2f2;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 4px solid #4CAF50;
}

.artist-section h2 strong {
  font-size: 1.2em;
  color: #333;
}

.artist-section h2 small {
  color: #666;
  font-weight: normal;
  font-size: 0.85em;
}

/* Form hints */
.form-hint {
  display: block;
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

/* Separeret formular sektioner */
.form-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* Bedre fremhævning af artist/kontaktperson-information */
.artist-info {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.artist-info .artist-name {
  font-size: 1.2em;
  margin-bottom: 5px;
}

.artist-info .contact-details {
  font-size: 0.9em;
  color: #666;
}

/* Justering af tabeller til at fremhæve artistnavne */
table th:first-child {
  min-width: 180px;
}

table td:first-child strong {
  font-size: 1.05em;
  color: #1a1a1a;
}

/* Forbedret styling til artist-section i entrélisten */
.artist-section {
  margin-bottom: 40px;
  /* Mere space mellem artister */
  border-bottom: 1px solid #ddd;
  padding-bottom: 30px;
}

.artist-section:last-child {
  border-bottom: none;
}

* Detaljeret Statistik på Dashboard */ .dashboard-detailed-stats {
  margin-top: 30px;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stats-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.stats-card-header {
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.stats-card-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: #555;
}

.stats-card-body {
  padding: 20px;
}

/* Progress bar */
.progress-container {
  margin-top: 10px;
}

.progress-bar {
  height: 24px;
  background-color: #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress {
  height: 100%;
  background-color: #4CAF50;
  border-radius: 12px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-text {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: bold;
  font-size: 0.85em;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.progress-label {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  margin-right: 15px;
  color: #666;
}

.progress-label.total {
  margin-left: auto;
  font-weight: bold;
  color: #333;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  display: inline-block;
}

.dot.delivered {
  background-color: #4CAF50;
}

.dot.pending {
  background-color: #FFC107;
}

/* Stats table and mini bars */
.stats-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.stats-table th {
  font-weight: bold;
  color: #555;
}

.mini-bar {
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 4px;
  margin-right: 5px;
  display: inline-block;
  min-width: 2px;
  vertical-align: middle;
}

/* Forbedret Entré Statistik */
.entrance-summary {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 30px;
}

.summary-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.summary-header h2 {
  margin: 0;
  flex: 1;
}

.live-indicator {
  background-color: #4CAF50;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
  margin-right: 10px;
}

.last-updated {
  font-size: 0.85em;
  color: #666;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.summary-card {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.summary-card.total {
  background-color: #E3F2FD;
  border-left: 4px solid #2196F3;
}

.summary-card.delivered {
  background-color: #E8F5E9;
  border-left: 4px solid #4CAF50;
}

.summary-card.pending {
  background-color: #FFF8E1;
  border-left: 4px solid #FFC107;
}

.summary-icon {
  font-size: 2em;
  margin-right: 15px;
}

.summary-content {
  flex: 1;
}

.summary-content h3 {
  margin: 0;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 5px;
}

.summary-value {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: baseline;
}

.summary-percentage {
  font-size: 0.55em;
  margin-left: 10px;
  color: #666;
}

.overall-progress {
  margin-bottom: 25px;
}

.type-breakdown h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #555;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.type-card {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.type-name {
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-align: center;
  color: white;
}

.type-stats {
  display: flex;
  flex-direction: column;
}

.type-count {
  text-align: center;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.type-mini-progress {
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
}

.type-mini-bar {
  height: 100%;
  background-color: #4CAF50;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Responsive Tilpasninger */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .type-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .type-grid {
    grid-template-columns: 1fr;
  }

  .progress-labels {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-label {
    margin-bottom: 5px;
  }

  .progress-label.total {
    margin-left: 0;
    margin-top: 5px;
  }
}

.admin-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.admin-form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.preview-container {
  margin-bottom: 20px;
}

.type-badge-preview {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  color: white;
  font-size: 14px;
  margin-top: 8px;
}

.type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
  font-size: 13px;
}

.type-table th:nth-child(3),
.type-table td:nth-child(3) {
  text-align: center;
}

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

.no-items {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  color: #666;
  text-align: center;
}

@media (max-width: 768px) {
  .admin-content {
    grid-template-columns: 1fr;
  }
}

.guest-info {
  margin-bottom: 20px;
}

.add-guest-form {
  margin-bottom: 20px;
}

.guest-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.type-name {
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-align: center;
  color: white;
}

/* Opdater filter buttons styling */
.filter-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  background-color: white;
  text-decoration: none;
  color: #333;
  margin-bottom: 5px;
  display: inline-block;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #999;
  text-decoration: none;
}

.filter-btn.active {
  border-color: #000;
  border-width: 4px;
  padding: 5px;
}

/* Tilføj styling til type management siden */
.type-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.type-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
  position: relative;
}

.type-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.type-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  color: white;
  margin-bottom: 10px;
}

.type-stats {
  margin-top: 15px;
  font-size: 0.9em;
  color: #666;
}

.color-preview {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid #ddd;
}

@media (max-width: 768px) {
  .type-card {
    width: 100%;
  }
}

.guest-type-display {
  margin-top: 15px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  border-left: 3px solid #ddd;
}

.guest-type-label {
  font-weight: bold;
  margin-right: 10px;
}

.guest-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 15px;
  color: white;
  font-size: 12px;
}

.guest-type-note {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.wristband-delivered-notice {
  background-color: #fff3cd;
  border-left: 3px solid #ffc107;
  padding: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.locked-icon {
  font-size: 18px;
  margin-right: 10px;
}

.locked-field {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  color: #666;
}

.locked-field:focus {
  outline: none;
  border-color: #ddd;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 5px;
}

.nav-link {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.logout-link {
  color: #ff6b6b;
}

/* Desktop/Mobile Display Utilities */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

.user-display {
  color: #ddd;
  font-size: 0.9em;
  padding: 10px 15px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  order: 3;
}

.hamburger-icon {
  display: block;
  position: relative;
  width: 30px;
  height: 24px;
}

.bar {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.bar:nth-child(1) {
  top: 0px;
}

.bar:nth-child(2) {
  top: 10px;
}

.bar:nth-child(3) {
  top: 20px;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 80px 0 20px 0;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    padding: 15px 20px;
    border-radius: 0;
  }

  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Create overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Container adjustments for mobile */
  .container {
    padding: 0 15px;
  }

  /* Adjust tables for mobile */
  table {
    display: block;
    overflow-x: auto;
  }

  /* Make buttons more finger-friendly */
  .btn {
    padding: 12px 20px;
    margin-bottom: 10px;
  }

  .btn-small {
    padding: 8px 12px;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .logo img {
    height: 30px;
  }

  .header {
    padding: 10px 15px;
  }

  .container {
    margin: 10px auto;
  }

  .card,
  .stats-card,
  .admin-panel {
    padding: 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  /* Stack buttons on small screens */
  .admin-actions {
    display: flex;
    flex-direction: column;
  }

  .admin-actions .btn {
    width: 100%;
    margin-right: 0;
  }
}

.default-type-preview {
    margin-bottom: 20px;
}

.guest-type-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    margin-top: 8px;
}

.default-type-info {
    background-color: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

/* Toast notification styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    position: relative;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.loading {
    background: #007bff;
}

.toast .close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

.toast .close-btn:hover {
    opacity: 1;
}

/* Sticky submit button styles */
.sticky-submit-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: none;
}

.sticky-submit-container .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sticky-submit-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.sticky-submit-container .btn-large {
    padding: 18px 30px;
    font-size: 18px;
}

/* Audit Log Styles */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.filter-section .filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.filter-section .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filter-section .filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.filter-section .filter-group input,
.filter-section .filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.filter-section .filter-actions {
    display: flex;
    gap: 10px;
}

.log-stats {
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.logs-table-container {
    overflow-x: auto;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.logs-table th,
.logs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.logs-table th {
    background: #f8f9fa;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.log-row:hover {
    background: #f8f9fa;
}

.log-timestamp {
    white-space: nowrap;
    font-family: monospace;
}

.user-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
}

.user-type-admin { background: #dc3545; color: white; }
.user-type-entrance { background: #007bff; color: white; }
.user-type-artist { background: #28a745; color: white; }
.user-type-system { background: #6c757d; color: white; }

.action-badge {
    font-weight: bold;
    display: inline-block;
}

.log-target {
    color: #6c757d;
    font-style: italic;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-info {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 3px;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

@media (max-width: 768px) {
    .filter-section .filter-row {
        flex-direction: column;
    }
    
    .filter-section .filter-group {
        min-width: auto;
    }
    
    .logs-table {
        font-size: 14px;
    }
    
    .logs-table th,
    .logs-table td {
        padding: 8px;
    }
}