:root {
  --main: #004777;
  --accent-dark: #a30000;
  --accent-light: #ff7700;
  --contrast: #efd28d;
  --secondary: #00afb5;
  --text-light: #ffffff;
  --text-dark: #004777;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--main);
  min-height: 100vh;
  color: #333;
}

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

h2, h3 {
  color: var(--text-light);
}

h2 {
  padding-bottom: 20px;
}

/* h3 {
  padding-top: 20px;
} */

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand h1 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.8rem;
  @media ((width < 700px)) {
    font-size: 1.4rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .logo-title {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.logo-icon {
  color: var(--main);
  flex-shrink: 0;
  margin-right: 12px;
}

.brand .logo-icon {
  width: 64px;
  height: 64px;
  margin-right: 0px;
}

.brand-slogan {
  margin: 0;
  font-size: 0.85rem;
  color: var(--secondary);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.user-menu-trigger:hover {
  background-color: rgba(0, 71, 119, 0.05);
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--main);
}

.user-menu-trigger span {
  color: var(--text-dark);
  font-weight: 500;
}

.user-menu-trigger svg {
  color: var(--text-dark);
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-menu:hover .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.2s;
  border-bottom: 1px solid #eee;
}

.user-menu-dropdown a svg {
  flex-shrink: 0;
  color: var(--main);
}

.user-menu-dropdown a:last-child {
  border-bottom: none;
}

.user-menu-dropdown a:hover {
  background-color: rgba(137, 87, 229, 0.1);
  color: var(--main);
}

.user-menu-dropdown a:hover svg {
  color: var(--main);
}

.guild-description {
  color: #666;
  font-style: italic;
  margin: 10px 0;
}

.event-description {
  color: #666;
  line-height: 1.6;
  margin: 10px 0;
  font-size: 14px;
}

#eventContent {
  display: flex; 
  @media ((width < 700px)) {
    flex-direction: column;
  }
  gap: 30px; 
  margin-bottom: 40px;
}

.guild-members {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.guild-member-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--main);
}

.member-info {
  flex: 1;
}

.member-info h4 {
  margin: 0 0 5px 0;
  color: var(--text-dark);
}

.member-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.owner-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

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

/* Auth Box */
.auth-box {
  background: white;
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-box h1 {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.auth-box .logo-title {
  justify-content: center;
  margin-bottom: 5px;
}

.auth-box .logo-icon {
  width: 64px;
  height: 64px;
  color: var(--main);
}

.slogan {
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 20px;
}

.auth-box h2 {
  text-align: center;
  margin-top: 30px;
  color: var(--accent-dark);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.tag-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tag-suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tag-suggestion-item:hover {
  background-color: rgba(0, 175, 181, 0.1);
  color: var(--secondary);
}

.tag-suggestion-item.selected {
  background-color: rgba(0, 175, 181, 0.2);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--main);
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  min-width: 200px;
  cursor: pointer;
}

.filter-group input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  min-width: 200px;
  cursor: pointer;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
  outline: none;
  border-color: var(--main);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-with-icon svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

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

.btn-primary:hover {
  background: var(--contrast);
  color: var(--text-dark);
}

.btn-secondary {
  background: #6c757d;
  color: var(--text-light);
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-danger {
  background: var(--accent-dark);
  color: var(--text-light);
}

.btn-danger:hover {
  background: #8b0000;
}

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

/* Error messages */
.error {
  color: #dc3545;
  margin-top: 15px;
  text-align: center;
}

.success {
  color: #28a745;
  margin-top: 15px;
  text-align: center;
}

.switch-auth {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.switch-auth a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}

.switch-auth a:hover {
  color: var(--accent-dark);
}

/* Session Form */
.session-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Sessions List */
.sessions-list {
  margin-top: 20px;
}

.session-card {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  overflow: hidden;
}

.session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.session-card-content {
  display: flex;
  min-height: 200px;
  @media ((width > 700px) and (height > 600px)) {
    height: 100%;
  }
}

.session-card-main {
  flex: 2;
  padding: 20px;
}

.session-card-image {
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  @media ((width > 700px) and (height > 600px)) {
    flex: 1.67;
  }
}

.session-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gm-avatar-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  transition: transform 0.2s;
}

.gm-avatar-overlay:hover {
  transform: scale(1.1);
}

.gm-avatar-overlay .gm-avatar-small {
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.session-type-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.session-type-pill svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.session-type-pill span {
  white-space: nowrap;
}

.session-card-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 15px;
}

.session-title-area {
  flex: 1;
}

.session-card-header h4 {
  color: var(--main);
  margin: 0 0 5px 0;
  cursor: pointer;
  font-size: 1.2rem;
}

.session-subtitle {
  color: var(--secondary);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
  font-weight: 500;
}

.session-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: #666;
}

.session-info-row svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.gm-avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--main);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.gm-avatar-small:hover {
  transform: scale(1.1);
  border-color: var(--secondary);
}

.session-card p {
  margin: 5px 0;
  color: #666;
}

.session-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
}

.status-draft {
  background: var(--accent-light);
  color: var(--text-light);
}

.status-published {
  background: #28a745;
  color: var(--text-light);
}

.session-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  background: #e9ecef;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: #495057;
}

.session-actions {
  margin-top: 15px;
  display: flex;
  align-items: baseline;
  @media ((width < 700px)) {
    flex-direction: column;
    align-items: stretch;
  }
  gap: 10px;
}

/* Sessions Grid */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Session Detail */
.session-detail {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.session-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.session-detail-left {
  min-width: 0;
}

.session-detail-left h2 {
  color: var(--main);
  margin-bottom: 30px;
  font-size: 32px;
}

.session-gm-info {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.gm-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gm-info-text {
  flex: 1;
}

.gm-name {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.gm-info-text h3 {
  margin: 0;
  font-size: 24px;
  color: var(--text);
}

.gm-guild {
  color: #666;
  margin: 5px 0 0 0;
  font-size: 14px;
}

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

.session-section:last-of-type {
  border-bottom: none;
}

.session-section h4 {
  color: var(--main);
  margin-bottom: 15px;
  font-size: 18px;
}

.session-description {
  color: #555;
  line-height: 1.8;
  white-space: pre-wrap;
}

.requirements-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f8f8;
  padding: 15px 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
}

.requirement-item svg {
  color: var(--main);
  flex-shrink: 0;
}

.requirement-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.requirement-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.triggers-section {
  background: #fff3cd;
  padding: 20px;
  border-radius: 8px;
  border: 2px solid #ffc107;
}

.triggers-section h4 {
  color: #856404;
  margin-top: 0;
}

.trigger-tag {
  background: #ffc107;
  color: #856404;
  border: 1px solid #e0a800;
}

.session-detail-right {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.session-detail-image img, .session-detail-image-top {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.session-detail-image img, .session-detail-image-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.session-info-box {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  @media (width < 700px) {
      display: none;
  }
}

.session-info-box-top {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-item:first-child {
  padding-top: 0;
}

.info-item svg {
  width: 24px;
  height: 24px;
  color: var(--main);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item > div {
  flex: 1;
  min-width: 0;
}

.info-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.info-value {
  color: var(--text);
  font-size: 15px;
  word-wrap: break-word;
}

.info-item-full {
  flex-direction: column;
  gap: 10px;
}

.info-item-full .session-tags {
  margin-top: 5px;
}

.session-detail h2 {
  color: var(--main);
  margin-bottom: 20px;
}

.detail-row {
  margin: 15px 0;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.detail-value {
  color: #333;
}

.players-list {
  list-style: none;
  padding: 0;
}

.players-list li {
  padding: 8px 0;
  color: #666;
}

/* Profile Info */
.profile-info {
  background: white;
  padding: 30px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-header {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--main);
}

.profile-details {
  flex: 2;
}

.profile-sidebar {
  flex: 1;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  @media ((width < 700px)) {
    order: -1;
  }
}

.profile-sidebar h4 {
  margin: 0 0 15px 0;
  color: var(--main);
  font-size: 16px;
}

.profile-info .detail-row {
  gap: 10px;
  margin: 15px 0;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.profile-info .detail-row:last-child {
  border-bottom: none;
}

.profile-info #profileFavoriteGames {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-info #profileFavoriteGames .tag {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(123, 97, 255, 0.3);
}

.user-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}

.user-link:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

input[type="file"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
}

small {
  color: #666;
  font-size: 12px;
}

/* Filters */
.filters {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group label svg {
  width: 20px;
  height: 20px;
  stroke: var(--main);
  flex-shrink: 0;
}

.filter-group select {
  padding: 10px 36px 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  min-width: 200px;
  cursor: pointer;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-group select:hover {
  border-color: var(--main);
  background-color: #fafafa;
}

.filter-group input[type="date"] {
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  min-width: 150px;
  cursor: pointer;
  background-color: white;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-group input[type="date"]:hover {
  border-color: var(--main);
  background-color: #fafafa;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
  outline: none;
  border-color: var(--main);
  box-shadow: 0 0 0 3px rgba(137, 87, 229, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: #555;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.checkbox-label:hover {
  background-color: #f5f5f5;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--main);
  border-radius: 4px;
}

/* Full session indicator */
.session-full {
  opacity: 0.8;
  border-left: 4px solid var(--accent-dark);
}

.full-badge {
  display: inline-block;
  background: var(--accent-dark);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-top: 0;
}

.crop-container {
  max-height: 500px;
  margin: 20px 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
  @media ((width < 700px)) {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Role icons list in profile sidebar */
.role-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  /* justify-content: center; */
  margin-top: 8px;
}

.role-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: white;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.role-icon {
  color: var(--main);
  width: 24px;
  height: 24px;
}

.role-label {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 600;
}

/* Comments section */
.comments-section {
  background: #fafafa;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  border: 1px solid #f0f0f0;
}

.comment-item {
  padding: 10px;
  border-bottom: 1px dashed #e6e6e6;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.comment-text {
  font-size: 14px;
  color: #333;
  white-space: pre-wrap;
}

.date-range-display {
  font-size: 15px;
  color: var(--main);
  margin-bottom: 6px;
  min-height: 18px;
  line-height: 18px;
  text-align: left;
}

/* small spacing for icon inside date button */
#openDateRangeBtn svg {
  vertical-align: middle;
  margin-right: 6px;
}

@media (max-width: 768px) {
  .sessions-grid {
    grid-template-columns: 1fr;
  }
  
  .session-card-content {
    flex-direction: column;
  }
  
  .session-card-image {
    height: 150px;
    order: -1;
  }
  
  .session-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .session-detail-right {
    position: static;
  }
  
  .session-detail-image {
    height: 250px;
    @media ((width < 700px)) {
      display: none;
    }
  }
  
  .session-gm-info {
    flex-direction: column;
    text-align: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: center;
  }
  
  .filters {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-group select {
    min-width: 100%;
  }
  
  .gm-avatar-small {
    width: 40px;
    height: 40px;
  }
}
  #usernameDisplay {
    @media ((width < 700px)) {
      display: none;
    }
  }

  #dateFilters {
    @media ((width < 700px)) {
      display: block;
    }
  }

  #loginForm {
    display: flex;
    flex-direction: column;
  }

  .session-detail-image-top {
    display: none;
    margin-bottom: 20px;
    @media (width < 700px) {
      display: flex;
    }
  }

  .session-info-box-top {
    display: none;
    @media (width < 700px) {
      display: flex;
      flex-direction: column;
    }
  }
}

#currentEventImage {
  max-width: 220px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* event detail flex layout: image + text side by side */
.event-detail-flex {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.event-detail-content {
  flex: 1 1 auto;
  min-width: 0; /* allow text wrapping */
}

/* event image is now a flex item (square) */
.event-image-corner {
  flex: 0 0 220px; /* fixed square size */
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.event-image-corner img,
.event-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,71,119,0.9), rgba(0,175,181,0.7));
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* placeholder box shown when no image */
.event-image-placeholder {
  display: block;
}

/* small visibility badge below image */
.visibility-badge {
  margin-top: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: var(--text-dark);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* ensure layout adapts on narrow screens */
@media (max-width: 900px) {
  .event-detail-flex {
    flex-direction: column;
  }
  .event-image-corner {
    width: 100%;
    height: auto;
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }
  .event-image-corner img,
  .event-image-placeholder {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
  }
  .visibility-badge {
    margin-left: 12px;
    margin-top: 0;
  }
}
