/* Modern 2024 Design System */
:root {
  /* Modern Color Palette */
  --primary: #6366f1; /* Indigo - modern, professional */
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #f59e0b; /* Amber - warm, inviting */
  --accent-light: #fbbf24;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #0f172a; /* Slate 900 */
  --bg-card: #ffffff;
  
  /* Text */
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  
  /* Borders */
  --border-color: #e5e7eb;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
  
  /* Shadows - Modern, subtle */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", var(--font-sans);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Modern Layout Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 500;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1280px;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Simple grid to replace Bootstrap */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.row > [class^="col-"],
.row > [class*=" col-"] {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.col-12 { width: 100%; }
.col-md-6 { width: 100%; }
.col-lg-4 { width: 100%; }

@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
}

@media (min-width: 1024px) {
  .col-lg-4 { width: 33.333%; }
}

/* Modern spacing */
section {
  margin-bottom: var(--spacing-2xl);
}
/* Modern Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) 0;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  width: 100% !important;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
  text-decoration: none;
  margin-right: auto;
}

.navbar-brand:hover {
  color: var(--primary) !important;
}

.navbar-toggler {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.375rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.navbar-toggler:hover {
  background: var(--gray-50);
  border-color: var(--primary);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
  outline: none;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  transition: opacity 0.15s ease-in-out;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  align-items: center;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  margin: 0 var(--spacing-xs);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.9375rem;
  text-decoration: none;
  display: block;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  background: var(--gray-50);
}

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--gray-100);
}

/* Mobile Styles */
@media (max-width: 991.98px) {
  .navbar-toggler {
    display: inline-flex;
    order: 2;
  }

  .navbar-brand {
    order: 1;
  }

  .navbar-collapse {
    order: 3;
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.875rem 1rem !important;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  /* Language switcher in mobile */
  .navbar-nav .dropdown {
    width: 100%;
  }

  .navbar-nav .dropdown .btn {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: none;
  }
}

/* Ensure Bootstrap collapse works properly */
.navbar-collapse.collapse {
  display: none;
}

.navbar-collapse.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease, padding 0.35s ease;
}

.navbar-collapse.collapse.show {
  display: flex !important;
  flex-direction: column;
}

/* Prevent layout shift during collapse */
.navbar-collapse {
  will-change: height;
  backface-visibility: hidden;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-direction: row;
  }

  .navbar-toggler {
    display: none;
  }

  .navbar-nav {
    flex-direction: row;
  }

  .navbar-nav .nav-link {
    width: auto;
    border-bottom: none;
  }
}
/* Modern Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
/* Modern Card Design */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.card-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  flex: 1;
  margin-right: var(--spacing-md);
}

.card-header-row {
  gap: var(--spacing-md);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.card-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-md) var(--spacing-lg);
}

/* Blog post section cards: rich text lives in .post-content .card .card-text.
   .post-content has white-space: pre-wrap (forum); that preserves newlines in
   Action Text HTML and creates extra vertical gaps. Override here and reset
   paragraph margins (Trix/HTML defaults add margin-top on first p, etc.). */
.post-content .card .card-text {
  white-space: normal;
}

.post-content .card .card-text p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-content .card .card-text p:last-child {
  margin-bottom: 0;
}

.post-content .card .card-text > *:first-child {
  margin-top: 0;
}

.post-content .card .card-text > *:last-child {
  margin-bottom: 0;
}

/* Casino Card */
.casino-card {
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.casino-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* Casino Logo */
.casino-logo-container {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.casino-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.casino-logo {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

.casino-card:hover .casino-logo {
  transform: scale(1.05);
}

.casino-logo-preview {
  border: 1px solid var(--border-color);
  background: white;
  padding: 0.5rem;
}

.casino-hero-preview {
  border: 1px solid var(--border-color);
  background: white;
}

/* Casino Hero Section */
.casino-hero-wrapper {
  margin: -1.5rem -15px 0 -15px;
  overflow: hidden;
}

@media (min-width: 576px) {
  .casino-hero-wrapper {
    margin: -1.5rem calc(-1.5rem - 15px) 0 calc(-1.5rem - 15px);
  }
}

@media (min-width: 768px) {
  .casino-hero-wrapper {
    margin: -3rem calc(-3rem - 15px) 0 calc(-3rem - 15px);
  }
}

.casino-hero {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

@media (min-width: 576px) {
  .casino-hero {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .casino-hero {
    min-height: 320px;
    padding: 4rem 3rem;
  }
}

.casino-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
  z-index: 1;
}

.casino-hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.casino-hero[style*="background-image"] .casino-hero-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.75) 100%);
  backdrop-filter: blur(1px);
}

.casino-hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.casino-hero-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
  .casino-hero-logo {
    width: 120px;
    height: 120px;
    padding: 1rem;
  }
}

.casino-hero:hover .casino-hero-logo {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.casino-hero-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.casino-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .casino-hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 992px) {
  .casino-hero-title {
    font-size: 3rem;
  }
}

/* Prominent Hero Rating Card */
.casino-hero-rating-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casino-hero-rating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.casino-hero-rating-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.casino-hero-rating-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.casino-hero-rating-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.casino-hero-rating-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.casino-hero-rating-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.casino-hero-rating-item-separator {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.casino-hero-rating-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.casino-hero-rating-value-large {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  line-height: 1;
}

.casino-hero-rating-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
}

.casino-hero-rating-divider {
  font-size: 1.5rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
}

.casino-hero-rating-max {
  font-size: 1.25rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
}

.casino-hero-rating-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.casino-hero-rating-stars .stars {
  font-size: 1.25rem;
  filter: none;
}

.casino-hero-rating-count {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.casino-hero-rating-empty {
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

@media (max-width: 991px) {
  .casino-hero-rating-card {
    margin-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  .casino-hero-rating-card {
    padding: 1.25rem;
  }
  
  .casino-hero-rating-number {
    font-size: 2rem;
  }
  
  .casino-hero-rating-title {
    font-size: 1rem;
  }
}

/* Section Rating Display (for review sections) */
.section-rating-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 100px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.section-rating-display:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.section-rating-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.section-rating-value {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  line-height: 1;
}

.section-rating-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
}

.section-rating-divider {
  font-size: 1.125rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
}

.section-rating-max {
  font-size: 1rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
}

@media (max-width: 767px) {
  .section-rating-display {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
  }
  
  .section-rating-number {
    font-size: 1.5rem;
  }
  
  .section-rating-label {
    font-size: 0.5625rem;
  }
}

.casino-hero-actions {
  margin-top: 1rem;
}

.casino-hero-actions .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.casino-hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.casino-hero-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.9);
  color: white;
  background: rgba(0, 123, 255, 0.9);
  backdrop-filter: blur(10px);
}

.casino-hero-actions .btn-outline-light:hover {
  background: rgba(0, 123, 255, 1);
  border-color: rgba(255, 255, 255, 1);
  color: white;
}

.casino-hero-admin-actions {
  margin-top: 1rem;
}

.casino-hero-admin-actions .btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.casino-hero-admin-actions .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
}

/* Prominent Rating Card */
.casino-rating-card {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.casino-rating-card:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.casino-rating-item {
  flex: 1;
  min-width: 200px;
}

.casino-rating-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.casino-rating-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.casino-rating-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 0.5rem;
}

.casino-rating-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.casino-rating-stars .stars {
  font-size: 1.25rem;
}

.casino-rating-count {
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .casino-rating-value {
    flex-direction: row;
    align-items: center;
  }
  
  .casino-rating-number {
    font-size: 1.75rem;
  }
}

/* Review Card */
.review-card {
  border-left: 3px solid var(--primary);
  background: var(--bg-card);
}

.review-card .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.review-card .card-text {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Ranking Badge */
.ranking-badge-container {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 10;
}

.ranking-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 3px solid white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ranking-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.ranking-badge--gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #fbbf24;
}

.ranking-badge--silver {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  border-color: #e5e7eb;
}

.ranking-badge--bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #d97706;
}
/* Blog Article View – minimal spacing, custom section layout */

.blog-article-page {
  padding-bottom: var(--spacing-xl);
}

.blog-article-wrapper {
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .blog-article-wrapper {
    padding: 0 var(--spacing-lg);
  }
}

/* Hero */
.blog-article-hero {
  margin-bottom: var(--spacing-xl);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}

.blog-article-hero img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .blog-article-hero img {
    max-height: 420px;
  }
}

/* Article header */
.blog-article-header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--gray-200);
}

.blog-article-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin: 0 0 0.25rem 0;
}

.blog-article-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0;
}

.blog-article-actions {
  margin-top: 0.5rem;
}

/* Content wrapper – resets only */
.blog-article-content {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
}

/* Section: solid white card with 3D effect */
.blog-section {
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem 0.5rem 0.875rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--primary);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.blog-section__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 0.2rem 0;
  padding: 0;
  border: none;
}

.blog-section__subtitle {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  margin: 0 0 0.35rem 0;
  padding: 0;
}

.blog-section__image {
  margin: 0.35rem 0;
}

.blog-section__body {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.blog-section__body p,
.blog-article-content .blog-section__body p {
  margin: 0 0 0.25rem 0;
  padding: 0;
}

.blog-section__body p:last-child,
.blog-article-content .blog-section__body p:last-child {
  margin-bottom: 0;
}

.blog-section__body > *:first-child {
  margin-top: 0;
}

.blog-section__body > *:last-child {
  margin-bottom: 0;
}

.blog-section__block {
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--gray-200);
}

.blog-section__block-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.blog-section__block ul {
  margin: 0;
  padding-left: 1.25rem;
}

.blog-section__block li {
  margin-bottom: 0.15rem;
}

/* Override Trix/post-content defaults inside section body */
.post-content .blog-section__body {
  white-space: normal;
}

/* Fallback when no sections (body only) */
.blog-article-content .post-body {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
}

.blog-article-content .post-body p {
  margin: 0 0 0.25rem 0;
}

.blog-article-content .post-body p:last-child {
  margin-bottom: 0;
}

/* Back link */
.blog-article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--spacing-lg);
  padding: 0.25rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.blog-article-back:hover {
  color: var(--primary-dark);
}

.blog-article-back-wrapper {
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .blog-article-back-wrapper {
    padding: 0 var(--spacing-lg);
  }
}

/* Divider before Top 5 */
.blog-article-divider {
  margin: var(--spacing-xl) 0 var(--spacing-lg);
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .blog-article-divider {
    padding: 0 var(--spacing-lg);
  }
}

.blog-article-divider hr {
  border: 0;
  height: 1px;
  background: var(--gray-200);
  margin: 0;
}

/* Top 5 Casinos (unchanged) */
.top-5-casinos-section {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-200);
}

.top-5-casinos-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-lg) 0;
  text-align: center;
  padding: 0 var(--spacing-lg);
}

.top-5-casinos-grid {
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .top-5-casinos-grid {
    padding: 0 var(--spacing-lg);
  }
}

.blog-article-page .top-5-casinos-section .casino-card {
  height: 100%;
}

.blog-article-page .top-5-casinos-section .card-body {
  padding: var(--spacing-lg);
}
/* Beautiful Star Rating System */
.rating-display {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 1.25rem;
  line-height: 1;
}

.stars .star {
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
  transition: transform var(--transition-fast);
}

.stars .star.empty {
  color: var(--gray-300);
  text-shadow: none;
}

.stars .star.half {
  background: linear-gradient(90deg, var(--accent) 50%, var(--gray-300) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-left: var(--spacing-xs);
}

/* Modern Rating Badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rating-badge .stars {
  font-size: 0.875rem;
}

/* Large Rating Display */
.rating-large {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.rating-large .stars {
  font-size: 1.75rem;
  gap: 4px;
}

.rating-large .rating-value {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Review Rating */
.review-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.review-rating .stars {
  font-size: 1rem;
}

/* Admin Score Badge - ApexCharts Circular Progress */
.admin-score-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.admin-score-badge {
  width: 140px;
  height: 140px;
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
}

.admin-score-badge:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

/* Rating Progress Bar */
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.rating-breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
}

.rating-breakdown-item .stars {
  font-size: 0.875rem;
  min-width: 60px;
}

.rating-breakdown-item .progress {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.rating-breakdown-item .progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width var(--transition-base);
}

/* Admin score badge (circle out of 10) */
.score-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
  background: var(--gray-500);
  gap: 2px;
  letter-spacing: -0.01em;
}

.score-badge .score-value {
  font-size: 1.2rem;
  line-height: 1;
}

.score-badge .score-suffix {
  font-size: 0.8rem;
  opacity: 0.9;
}

.score-badge--green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
}

.score-badge--orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25);
}

.score-badge--red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

/* Modern Form Styles */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  margin-left: var(--spacing-xs);
  color: var(--text-secondary);
}

/* Post section reorder: drag handle and dragging state */
.post-section-drag-handle {
  cursor: grab;
  user-select: none;
  font-size: 1rem;
  line-height: 1;
}

.post-section-card.dragging {
  opacity: 0.6;
  cursor: grabbing;
}

.post-section-card.dragging .post-section-drag-handle {
  cursor: grabbing;
}
/* Alert Styles */
.flash-messages-wrapper {
  position: relative;
  z-index: 100;
}

.alert {
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: var(--casino-green);
  color: #1b5e20;
}

.alert-danger {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-color: var(--casino-red);
  color: #b71c1c;
}

.alert-warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-color: var(--casino-gold);
  color: #e65100;
}

.alert-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: var(--casino-gray);
  color: #0d47a1;
}

.alert-dismissible .btn-close {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.8;
  padding: 0.5rem;
  transition: opacity var(--transition-fast);
}

.alert-dismissible .btn-close:hover {
  opacity: 1;
}

/* Table Styles */
.table {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-primary);
  margin-bottom: 0;
}

.table thead {
  background: linear-gradient(135deg, var(--casino-dark) 0%, var(--casino-darker) 100%);
  border-bottom: 2px solid var(--border-gold);
}

.table thead th {
  color: var(--casino-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  padding: 1rem;
  border-bottom: 2px solid var(--border-gold);
}

.table tbody tr {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.table tbody td {
  padding: 1rem;
  color: var(--text-primary);
  vertical-align: middle;
}

.table tbody tr:last-child {
  border-bottom: none;
}

/* Striped Table */
.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(212, 175, 55, 0.03);
}

.table-striped tbody tr:nth-of-type(odd):hover {
  background: rgba(212, 175, 55, 0.08);
}

/* Bordered Table */
.table-bordered {
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Modern Footer */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

footer h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-sm);
}

footer hr {
  border-color: var(--border-color);
  margin: var(--spacing-xl) 0 var(--spacing-lg);
}

footer .text-center {
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer .form-control {
  border-color: var(--border-color);
}

footer .form-control:focus {
  border-color: var(--primary);
}
/* Custom Utilities and Overrides */

/* Body background */
body {
  background: var(--bg-secondary) !important;
}

/* Text utilities */
.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

/* Background utilities */
.bg-light {
  background: var(--bg-secondary) !important;
}

/* Modern spacing */
.mb-4 {
  margin-bottom: var(--spacing-lg) !important;
}

.mt-4 {
  margin-top: var(--spacing-lg) !important;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

/* Auth pages */
.auth-page {
  min-height: 60vh;
}

.auth-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.auth-card .card-title {
  margin-bottom: var(--spacing-sm);
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}
/* Responsive Design for Mobile and Tablet Devices */

/* ============================================
   Mobile First Approach - Base Styles
   ============================================ */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  h4, h5, h6 {
    font-size: 1.1rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }

  /* Container and Spacing */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Cards */
  .card {
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 1rem !important;
  }

  .card-header {
    padding: 0.75rem 1rem !important;
  }

  .card-title {
    font-size: 1.1rem !important;
  }

  /* Buttons */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
  }

  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Forms */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.625rem 0.875rem;
  }

  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  /* Tables */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
  }

  /* Navbar - specific mobile adjustments only */
  .navbar-brand {
    font-size: 1.25rem !important;
  }

  /* Footer */
  footer {
    padding: 2rem 0 1rem !important;
  }

  footer .row > div {
    margin-bottom: 1.5rem;
  }

  footer .d-flex {
    flex-direction: column !important;
  }

  footer .form-control {
    margin-bottom: 0.5rem;
    margin-right: 0 !important;
  }

  footer .btn {
    width: 100%;
  }

  /* Utilities */
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }

  .d-flex.justify-content-between.align-items-center {
    align-items: flex-start !important;
  }

  /* Chat Interface */
  .chat-container {
    height: 400px !important;
  }

  .chat-messages {
    min-height: 300px !important;
    max-height: 300px !important;
    padding: 0.75rem !important;
  }

  .message {
    margin-bottom: 0.75rem !important;
  }

  .message .d-inline-block {
    max-width: 90% !important;
    padding: 0.75rem !important;
  }

  /* Admin Views */
  .admin-score-wrapper {
    margin-top: 0.5rem;
  }

  /* Casino Cards */
  .casino-card .card-header-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .casino-card .admin-score-wrapper {
    align-self: flex-start;
  }

  /* Ranking Badge */
  .ranking-badge {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }

  /* Chatbot Promo Card */
  .chatbot-promo-card .card-body {
    padding: 1.5rem !important;
  }

  .chatbot-icon {
    font-size: 2rem !important;
  }

  .feature-badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0.5rem;
  }

  /* Post Sections */
  .post-content .card {
    margin-bottom: 1rem;
  }

  /* Review Sections */
  .review-section-card {
    margin-bottom: 1rem !important;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  /* Container */
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Cards */
  .card-body {
    padding: 1.25rem !important;
  }

  /* Chat Interface */
  .chat-container {
    height: 450px !important;
  }

  .chat-messages {
    min-height: 350px !important;
    max-height: 350px !important;
  }

  /* Footer */
  footer .d-flex {
    flex-direction: row !important;
  }

  footer .form-control {
    margin-bottom: 0;
    margin-right: 0.5rem !important;
  }

  footer .btn {
    width: auto;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  h1 {
    font-size: 2.25rem !important;
  }

  h2 {
    font-size: 1.875rem !important;
  }

  /* Container */
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* Cards - 2 columns on medium screens */
  .col-md-6 {
    margin-bottom: 1.5rem;
  }

  /* Tables */
  .table th,
  .table td {
    padding: 0.75rem 1rem !important;
  }

  /* Chat Interface */
  .chat-container {
    height: 500px !important;
  }

  .chat-messages {
    min-height: 400px !important;
    max-height: 400px !important;
  }

  /* Admin Dashboard */
  .col-md-6.col-lg-3 {
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   Common Mobile Improvements
   ============================================ */

/* Touch-friendly targets */
@media (max-width: 991.98px) {
  /* Increase touch target sizes */
  .btn,
  .nav-link,
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Better spacing for stacked elements */
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }

  .mt-4 {
    margin-top: 1.5rem !important;
  }

  .mb-3 {
    margin-bottom: 1rem !important;
  }

  /* Form improvements */
  .input-group {
    flex-wrap: wrap;
  }

  .input-group .form-control {
    flex: 1 1 100%;
    margin-bottom: 0.5rem;
  }

  .input-group .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Better button groups */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
  }

  .btn-group .btn:last-child {
    margin-bottom: 0;
  }

  /* Alert improvements */
  .alert {
    padding: 1rem !important;
    font-size: 0.9375rem;
  }

  /* Badge improvements */
  .badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
  }

  /* Dropdown improvements */
  .dropdown-menu {
    width: 100%;
    max-width: 100%;
  }

  /* Modal improvements */
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .modal-content {
    border-radius: 0.5rem;
  }

  /* Image responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Text alignment */
  .text-center-mobile {
    text-align: center;
  }

  /* Hide/show utilities */
  .d-none-mobile {
    display: none !important;
  }

  .d-block-mobile {
    display: block !important;
  }
}

/* ============================================
   Specific Component Improvements
   ============================================ */

/* Navbar mobile improvements - handled in navbar.css to avoid conflicts */

/* Footer mobile improvements */
@media (max-width: 767.98px) {
  footer .row {
    flex-direction: column;
  }

  footer .col-md-6 {
    width: 100%;
    margin-bottom: 2rem;
  }

  footer .col-md-6:last-child {
    margin-bottom: 0;
  }

  footer .d-flex {
    flex-direction: column;
  }

  footer .form-control {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 0.75rem;
  }

  footer .btn {
    width: 100%;
  }
}

/* Table mobile improvements */
@media (max-width: 767.98px) {
  .table-responsive {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 600px; /* Force horizontal scroll on very small screens */
  }

  /* Alternative: Stack table on very small screens */
  .table-stacked {
    display: block;
  }

  .table-stacked thead {
    display: none;
  }

  .table-stacked tbody,
  .table-stacked tr,
  .table-stacked td {
    display: block;
    width: 100%;
  }

  .table-stacked tr {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-card);
  }

  .table-stacked td {
    border: none;
    padding: 0.5rem 0;
    text-align: left;
  }

  .table-stacked td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
    min-width: 120px;
  }
}

/* Form mobile improvements */
@media (max-width: 767.98px) {
  /* Better form spacing */
  .mb-3 {
    margin-bottom: 1.25rem !important;
  }

  /* Full width inputs on mobile */
  .form-control,
  .form-select,
  textarea {
    width: 100%;
  }

  /* Better checkbox/radio spacing */
  .form-check {
    margin-bottom: 0.75rem;
  }

  /* Rich text editor improvements */
  trix-editor {
    min-height: 200px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* File input improvements */
  .form-control[type="file"] {
    padding: 0.5rem;
  }
}

/* Card grid improvements */
@media (max-width: 575.98px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Single column on very small screens */
  .col-md-6,
  .col-lg-4 {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* 2 columns on small screens */
  .col-md-6 {
    width: 50%;
  }

  .col-lg-4 {
    width: 50%;
  }
}

/* Admin dashboard mobile improvements */
@media (max-width: 991.98px) {
  .admin-dashboard .row {
    margin-bottom: 1rem;
  }

  .admin-dashboard .col-md-6.col-lg-3 {
    width: 100%;
    margin-bottom: 1rem;
  }

  .admin-dashboard .card {
    margin-bottom: 1rem;
  }
}

/* Chat interface mobile improvements */
@media (max-width: 767.98px) {
  .chat-container {
    height: calc(100vh - 300px) !important;
    min-height: 400px;
    max-height: 600px;
  }

  .chat-messages {
    min-height: calc(100% - 80px) !important;
    max-height: calc(100% - 80px) !important;
  }

  .chat-input {
    padding-top: 0.75rem;
  }

  .chat-input .input-group {
    flex-wrap: nowrap;
  }

  .chat-input .form-control {
    flex: 1;
    margin-bottom: 0;
  }

  .chat-input .btn {
    flex: 0 0 auto;
    width: auto;
    padding: 0.5rem 1rem;
  }
}

/* Casino show page mobile improvements */
@media (max-width: 767.98px) {
  .casino-show-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .casino-show-header .admin-score-wrapper {
    margin-top: 1rem;
    align-self: flex-start;
  }

  .review-section {
    margin-bottom: 1.5rem;
  }

  .review-section .card-body {
    padding: 1rem !important;
  }
}

/* Blog post mobile improvements */
@media (max-width: 767.98px) {
  .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
  }

  .post-content .card {
    margin-bottom: 1.5rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .dropdown,
  .chat-container {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}

/* Forum Styles */
.forum-posts .card {
  transition: box-shadow 0.2s ease;
  overflow: visible; /* Allow reply form to extend beyond card-body */
}

.forum-posts .card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.forum-post-card .card-body {
  position: relative;
  overflow: visible; /* Allow reply form to extend beyond */
}

/* Chat-style input at bottom */
.forum-chat-input-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  /* Safe area for mobile devices */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.forum-chat-input-form {
  max-width: 1200px;
  margin: 0 auto;
}

.forum-chat-error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #991b1b;
}

.forum-chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 8px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forum-chat-input-wrapper:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: white;
}

.forum-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  padding: 8px 4px;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  min-height: 24px;
}

.forum-chat-input:focus {
  outline: none;
  box-shadow: none;
}

.forum-chat-send-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #6366f1;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.forum-chat-send-btn:hover {
  background-color: #4f46e5;
  transform: scale(1.05);
}

.forum-chat-send-btn:active {
  transform: scale(0.95);
}

.forum-chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.forum-chat-signin-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fef3c7;
  border-top: 1px solid #fcd34d;
  padding: 12px 16px;
  text-align: center;
  z-index: 1000;
  font-size: 0.875rem;
  color: #92400e;
}

.forum-chat-signin-prompt .btn {
  margin-left: 8px;
}

/* Comment/Reply functionality */
.forum-comment-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.forum-comment-btn.active {
  background-color: #6366f1;
  border-color: #6366f1;
  color: white;
}

.forum-comment-btn svg {
  flex-shrink: 0;
}

.forum-comment-count {
  background-color: #6366f1;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  display: inline-block;
}

.forum-comment-btn.active .forum-comment-count {
  background-color: white;
  color: #6366f1;
}

.forum-reply-btn {
  margin-left: auto;
}

.forum-reply-form {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
  /* Break out of card-body padding (Bootstrap default is 1rem = 16px) to match card width */
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: -16px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 16px;
  width: calc(100% + 32px);
  box-sizing: border-box;
  display: block;
}

.forum-reply-form form {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.forum-reply-form-inner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.forum-reply-form .d-flex {
  width: 100% !important;
  max-width: 100% !important;
}

.forum-reply-input {
  flex: 1 1 auto;
  resize: none;
  font-size: 0.9375rem;
  min-width: 0; /* Allows flex item to shrink below content size */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.forum-reply-submit,
.forum-reply-cancel {
  flex-shrink: 0;
  padding: 8px 12px;
  height: auto;
}

.forum-reply-submit {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.forum-replies {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  width: 100%;
}

.forum-reply-card {
  margin-bottom: 12px;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.forum-reply-card:last-child {
  margin-bottom: 0;
}

.forum-reply-indicator {
  width: 4px;
  height: 100%;
  background-color: #6366f1;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .forum-chat-input-container {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  
  .forum-chat-input-wrapper {
    padding: 6px 10px;
  }
  
  .forum-chat-send-btn {
    width: 36px;
    height: 36px;
  }
  
  .forum-chat-send-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .forum-posts {
    padding-bottom: 90px !important;
  }
  
  .forum-replies {
    margin-left: 0;
    padding-left: 0;
  }
  
  .forum-reply-form {
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: -12px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
    width: calc(100% + 24px);
  }
  
  .forum-reply-form-inner {
    width: 100%;
    /* Keep horizontal layout on all screen sizes */
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .forum-reply-input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  
  .forum-reply-submit {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    min-width: 40px;
  }
  
  .forum-reply-cancel {
    flex-shrink: 0;
    padding: 8px 12px;
    white-space: nowrap;
    /* Hide cancel button on very small screens to save space */
    display: none;
  }
  
  /* On very small screens, make submit button slightly smaller */
  @media (max-width: 480px) {
    .forum-reply-submit {
      width: 36px;
      height: 36px;
      min-width: 36px;
    }
    
    .forum-reply-submit svg {
      width: 16px;
      height: 16px;
    }
  }
}

.post-content {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-content a {
  color: #6366f1;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-author-name {
  font-size: 1rem;
  color: #1f2937;
  font-weight: 600;
  display: inline-block;
}

/* Emoji Reactions */
.reactions-container {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.emoji-reaction-btn {
  padding: 0.5rem 0.75rem;
  min-width: auto;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.emoji-reaction-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.emoji-reaction-btn.btn-primary {
  background-color: #6366f1;
  border-color: #6366f1;
  color: white;
}

.emoji-reaction-btn.btn-outline-primary {
  border-color: #6366f1;
  color: #6366f1;
}

.emoji-reaction-btn.btn-outline-primary:hover {
  background-color: #6366f1;
  color: white;
}

.emoji-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
}

.emoji-reaction-btn .reaction-count {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 1.25rem;
  text-align: center;
}

.emoji-add-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.emoji-picker-dropdown {
  min-width: 320px;
  max-width: 380px;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  overflow: hidden;
  position: absolute;
  z-index: 1050;
  margin-top: 8px;
  background: white !important;
  max-height: calc(100vh - 20px);
}

.emoji-picker-dropdown.dropdown-menu-top {
  margin-top: 0;
  margin-bottom: 8px;
}

.dropdown.show .emoji-picker-dropdown,
.dropdown-menu.show {
  display: block !important;
}

.emoji-picker-body {
  padding: 12px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  background-color: white;
}

/* On smaller screens, reduce max height */
@media (max-height: 600px) {
  .emoji-picker-body {
    max-height: calc(100vh - 120px);
  }
}

.emoji-picker-body::-webkit-scrollbar {
  width: 8px;
}

.emoji-picker-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.emoji-picker-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.emoji-picker-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.emoji-picker-item {
  padding: 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  background: white;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
}

.emoji-picker-item:hover {
  background-color: #f3f4f6;
  border-color: #6366f1;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.emoji-picker-item:active {
  transform: scale(1.05);
  background-color: #eef2ff;
}

.emoji-picker-emoji {
  font-size: 2.25rem;
  line-height: 1;
  display: inline-block;
  user-select: none;
  pointer-events: none;
}

/* Ensure dropdown is visible when shown */
.dropdown-menu.emoji-picker-dropdown.show,
.dropdown.show .emoji-picker-dropdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.reaction-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.reaction-badge .emoji-icon {
  font-size: 1.1rem;
}

/* Mention Suggestions */
.mention-suggestions {
  position: absolute;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  min-width: 200px;
  display: none;
}

.mention-suggestion {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.mention-suggestion:last-child {
  border-bottom: none;
}

.mention-suggestion:hover,
.mention-suggestion.selected {
  background-color: #f3f4f6;
}

.mention-suggestion:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.mention-suggestion:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Floating Notification Button */
.notification-button-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  cursor: move;
  user-select: none;
}

.notification-button-container.dragging {
  cursor: grabbing;
  z-index: 1060;
}

.notification-button-container.dragging .notification-button {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
}

.notification-button {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
  transition: all 0.3s ease;
  padding: 0;
  cursor: pointer;
}

.notification-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.notification-button:active:not(.dragging) {
  transform: scale(0.95);
}

.notification-drag-handle {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  pointer-events: auto;
  user-select: none;
  font-weight: bold;
  letter-spacing: -2px;
  cursor: grab;
  transition: color 0.2s ease;
  width: 20px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.notification-button-container:hover .notification-drag-handle {
  color: rgba(255, 255, 255, 0.9);
}

.notification-button-container.dragging .notification-drag-handle {
  color: rgba(255, 255, 255, 1);
  cursor: grabbing;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
  min-width: 20px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  max-height: 600px;
  overflow: hidden;
  transition: bottom 0.3s ease, top 0.3s ease;
}

.notification-dropdown.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-dropdown-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.notification-dropdown-header h6 {
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.notification-dropdown-content {
  overflow-y: auto;
  flex: 1;
  max-height: 400px;
}

.notification-dropdown-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

/* Notification List */
.notification-list {
  padding: 0.5rem 0;
}

.notification-item-wrapper {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

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

.notification-item-wrapper:hover {
  background-color: #f8f9fa;
}

.notification-item-wrapper.notification-item-unread {
  background-color: #f0f7ff;
}

.notification-item-wrapper.notification-item-unread:hover {
  background-color: #e6f2ff;
}

.notification-item {
  display: block;
  padding: 1rem 1.25rem;
  padding-right: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  text-decoration: none;
  color: inherit;
}

.notification-delete-btn {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  color: #6c757d;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.notification-item-wrapper:hover .notification-delete-btn {
  opacity: 1;
}

.notification-delete-btn:hover {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.notification-delete-btn:active {
  background-color: rgba(220, 53, 69, 0.2);
}

.notification-item-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background-color: #0d6efd;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
  animation: pulse 2s infinite;
}

.notification-item-text {
  flex: 1;
  min-width: 0;
}

.notification-message {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #212529;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.notification-time {
  font-size: 0.75rem;
  display: block;
}

.notification-empty {
  padding: 2rem 1.25rem;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification-button-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .notification-button {
    width: 52px;
    height: 52px;
  }

  .notification-dropdown {
    width: calc(100vw - 2rem);
    max-width: 380px;
    bottom: 65px;
  }
}

@media (max-width: 480px) {
  .notification-button-container {
    bottom: 1rem;
    right: 1rem;
  }

  .notification-dropdown {
    right: -0.5rem;
    width: calc(100vw - 1rem);
  }
}

/* Scrollbar styling for notification dropdown */
.notification-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notification-dropdown-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.notification-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/*
















 */
