/* Modern CSS Design System for TF2 Store DB */
:root {
  --primary-color: #1e40af;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --btn-border-radius: 0.375rem;
}

/* Base styles */
* {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  min-height: 100vh;
  color: var(--text-primary);
}

/* Add padding to body for fixed navbar */
body {
  padding-top: 80px;
}

/* Consistent button styling */
.btn {
  border-radius: var(--btn-border-radius) !important;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

/* Global Search in Navbar */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1050;
}

.search-section {
  border-bottom: 1px solid var(--border-color);
}

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

.search-section-title {
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--background-color);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: var(--background-color);
}

.search-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Steam Auth Link - matches navbar style */
.steam-auth-link {
  display: inline-flex !important;
  align-items: center;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  text-decoration: none;
}

.steam-auth-link svg {
  opacity: 0.7;
}

.steam-auth-link:hover {
  color: var(--primary-color) !important;
}

.steam-auth-link:hover svg {
  opacity: 1;
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile-btn:hover {
  background: var(--background-color);
  border-color: var(--primary-color);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-menu {
  min-width: 200px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.dropdown-item:hover {
  background: var(--background-color);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #6b7280;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.status-badge.status-online {
  background: #10b981;
}

.status-badge.status-degraded {
  background: #f59e0b;
}

.status-badge.status-offline {
  background: #dc2626;
}

.status-badge.status-loading {
  background: #6b7280;
}

.status-badge:hover {
  transform: scale(1.05);
}

.status-badge.status-online:hover {
  background: #059669;
  color: white;
}

.status-badge.status-degraded:hover {
  background: #d97706;
  color: white;
}

.status-badge.status-offline:hover {
  background: #b91c1c;
  color: white;
}

.status-badge.status-loading:hover {
  background: #4b5563;
  color: white;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

/* Hero Section */
.hero-section {
  padding: 2rem 0;
  text-align: center;
  margin-top: 56px; /* Account for fixed navbar */
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Error Page Styles */
.error-section {
  padding: 2rem 0;
  text-align: center;
}

.error-title {
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-subtitle {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

/* Ensure emojis in buttons maintain their natural colors */
.btn-primary::before,
.btn-outline-primary::before,
.btn::before {
  color: initial;
}

.btn span[style*='color'],
.btn-primary span[style*='color'],
.btn-outline-primary span[style*='color'] {
  color: initial !important;
}

/* Emoji specific styling to override button color inheritance */
.btn-primary,
.btn-outline-primary {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Noto Color Emoji';
}

/* Force emoji color preservation in buttons */
.btn *,
.btn-primary *,
.btn-outline-primary * {
  color: inherit;
}

/* But preserve emoji colors specifically */
.btn:not(.btn-link) {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Noto Color Emoji';
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}

/* Emoji class to preserve natural colors in buttons */
.emoji {
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased;
  filter: none !important;
  background: none !important;
}

/* Force emoji colors in buttons - most direct approach */
.btn .emoji,
.btn-primary .emoji,
.btn-outline-primary .emoji,
h1 .emoji,
h2 .emoji,
h3 .emoji,
h4 .emoji,
h5 .emoji,
h6 .emoji,
.hero-title .emoji {
  color: unset !important;
  -webkit-text-fill-color: unset !important;
  background: unset !important;
  text-shadow: unset !important;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji',
    'Segoe UI Symbol', sans-serif !important;
  font-size: inherit !important;
  line-height: inherit !important;
  filter: unset !important;
  font-style: normal !important;
  font-weight: normal !important;
  text-decoration: none !important;
}

/* Additional emoji preservation rules to override Bootstrap */
span.emoji {
  color: initial !important;
  background: none !important;
  text-shadow: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  font-variant-emoji: emoji !important;
}

/* Ensure emoji font rendering */
.emoji,
span.emoji {
  font-family:
    'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Android Emoji', 'EmojiSymbols',
    'EmojiOne Mozilla', 'Twemoji Mozilla', 'Segoe UI Symbol', 'Noto Emoji' !important;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

/* Feature Cards */
.feature-card {
  background: var(--surface-color);
  border: none;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

/* Chart Container */
.chart-container {
  background: var(--surface-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.chart-frame {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 0.5rem;
  background: var(--background-color);
}

/* API Documentation Styles */
.api-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 3rem;
  margin-top: -80px;
  padding-top: calc(2rem + 80px);
}

.api-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.api-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.api-section {
  background: var(--surface-color);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.api-section h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.endpoint {
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.endpoint h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.method-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-get {
  background: #10b981;
  color: white;
}

.method-post {
  background: #f59e0b;
  color: white;
}

.endpoint-path {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Code and Pre */
code,
pre {
  background: var(--background-color);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  border: 1px solid var(--border-color);
}

pre {
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

/* Tables */
table {
  border-collapse: collapse;
  margin-top: 1rem;
  width: 100%;
  background: var(--surface-color);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th,
td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  background: var(--background-color);
  font-weight: 600;
  color: var(--text-primary);
}

/* Footer */
.footer {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Discord Button in Footer */
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-width: 2px;
}

.discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.discord-btn svg {
  transition: transform 0.2s ease;
}

.discord-btn:hover svg {
  transform: scale(1.1);
}

/* Legacy styles for compatibility */
.item-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-align: center;
}

.item-sku {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.random-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.random-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.fullwidth-btn {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  box-sizing: border-box;
  text-align: left;
  padding: 1rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  border: none;
  box-shadow: var(--shadow-md);
}

.fullwidth-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .error-title {
    font-size: 4rem;
  }

  .api-title {
    font-size: 2rem;
  }

  .hero-section,
  .error-section {
    padding: 1rem 0;
  }

  .api-header {
    margin-top: -70px;
    padding-top: calc(2rem + 70px);
  }

  .chart-frame {
    height: 300px;
  }

  .api-section,
  .endpoint,
  .feature-card {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  .endpoint {
    padding: 1rem 0.5rem;
  }

  .chart-frame {
    width: 98vw;
    height: 220px;
  }
}

@media (max-width: 800px) {
  .chart-frame {
    width: 98vw;
    height: 220px;
  }
}

/* ========================================
   Inventory Viewer Specific Styles
   ======================================== */

/* Inventory Card Styles */
.inventory-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition: all 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.inventory-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Stack badge for inventory items */
.inventory-card .stack-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #0d6efd;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
}

/* Stack overlay for inventory items */
.inventory-card .stack-overlay {
  position: absolute;
  top: 100%;
  left: -2px;
  right: -2px;
  background: white;
  border: 2px solid #0d6efd;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.inventory-card .stack-overlay.show {
  display: block;
}

/* Stack item styles */
.inventory-card .stack-item {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: background-color 0.2s;
}

.inventory-card .stack-item:last-child {
  border-bottom: none;
}

.inventory-card .stack-item:hover {
  background-color: #f8f9fa;
}

.inventory-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #f0f0f0;
  flex-shrink: 0;
}

.inventory-card .p-2 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Custom column for 8 items per row on xl screens */
@media (min-width: 1200px) {
  .col-xl-15 {
    flex: 0 0 auto;
    width: 12.5%;
  }
}

/* Quality Border Colors */
.quality-unique { border-left: 4px solid #ffd700; }
.quality-strange { border-left: 4px solid #cf6a32; }
.quality-unusual { border-left: 4px solid #8650ac; }
.quality-vintage { border-left: 4px solid #476291; }
.quality-genuine { border-left: 4px solid #4d7455; }
.quality-haunted { border-left: 4px solid #38f3ab; }
.quality-collectors { border-left: 4px solid #aa0000; }
.quality-decorated { border-left: 4px solid #fafafa; }
.quality-decorated.weapon { border-left: 4px solid #fafafa; }

/* Price Box Styling */
.price-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
  border-radius: 6px;
  padding: 8px;
  margin-top: 8px;
  font-size: 0.75rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}

.price-row.buy-price {
  color: #10b981;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 5px;
  margin-bottom: 3px;
}

.price-row.sell-price {
  color: #ef4444;
}

.price-label {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
}

/* Stat Card Design */
.stat-card-new {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  transition: transform 0.2s ease;
}

.stat-card-new:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.stat-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.stat-label {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 5px;
}

.stats-detail-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.mini-stat-value.unusual {
  color: #8650ac;
}

.mini-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.filter-section {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
}

.login-section {
  background: var(--surface-color);
  padding: 3rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.steam-login-btn {
  background: linear-gradient(135deg, #171a21, #1b2838);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid #66c0f4;
}

.steam-login-btn:hover {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 192, 244, 0.3);
  color: white;
}

#itemDetailModal .modal-dialog {
  max-width: 600px;
}

.item-detail-img {
  max-width: 200px;
  margin: 0 auto;
  display: block;
}

.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(0,0,0,.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #171a21, #1b2838);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid #66c0f4;
  font-size: 0.875rem;
}

.inspect-btn:hover {
  background: linear-gradient(135deg, #1b2838, #2a475e);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 192, 244, 0.3);
  color: white;
}

/* Unified Button Group Styles */
.unified-button-group {
  position: relative;
  display: flex !important;
  box-shadow: 0 0 0 1px var(--border-color);
  border-radius: 0.25rem;
  overflow: hidden;
}

.unified-button-group .btn {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  position: relative;
  background-color: transparent;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* Vertical dividers between buttons */
.unified-button-group .btn:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background-color: var(--border-color);
}

/* Hover effect - slight background change */
.unified-button-group .btn:hover {
  background-color: rgba(var(--bs-secondary-rgb), 0.1);
}

/* Active/focus states */
.unified-button-group .btn:active,
.unified-button-group .btn:focus {
  background-color: rgba(var(--bs-secondary-rgb), 0.15);
  box-shadow: none;
}

.unified-button-group .btn svg,
.unified-button-group .btn img {
  flex-shrink: 0;
}

.unified-button-group .btn span {
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .unified-button-group .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .unified-button-group .btn img,
  .unified-button-group .btn svg {
    width: 14px;
    height: 14px;
  }

  .unified-button-group .btn span {
    font-size: 0.7rem;
  }
}

/* Admin/Moderator Role Indicators */
.user-card.role-owner,
.store-card.role-owner,
.profile-container.role-owner {
  position: relative;
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.3), 0 0 40px rgba(231, 76, 60, 0.1) !important;
  border: 2px solid rgba(231, 76, 60, 0.5) !important;
}

.user-card.role-admin,
.store-card.role-admin,
.profile-container.role-admin {
  position: relative;
  box-shadow: 0 0 20px rgba(230, 126, 34, 0.3), 0 0 40px rgba(230, 126, 34, 0.1) !important;
  border: 2px solid rgba(230, 126, 34, 0.5) !important;
}

.user-card.role-moderator,
.store-card.role-moderator,
.profile-container.role-moderator {
  position: relative;
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.3), 0 0 40px rgba(52, 152, 219, 0.1) !important;
  border: 2px solid rgba(52, 152, 219, 0.5) !important;
}

/* Role badge styles */
.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge.role-owner {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.role-badge.role-admin {
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: white;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.role-badge.role-moderator {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Pulse animation for role indicators */
@keyframes role-pulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--glow-color-1), 0 0 40px var(--glow-color-2);
  }
  50% {
    box-shadow: 0 0 30px var(--glow-color-1), 0 0 60px var(--glow-color-2);
  }
}

.user-card.role-owner,
.store-card.role-owner,
.profile-container.role-owner {
  --glow-color-1: rgba(231, 76, 60, 0.4);
  --glow-color-2: rgba(231, 76, 60, 0.15);
  animation: role-pulse 3s ease-in-out infinite;
}

.user-card.role-admin,
.store-card.role-admin,
.profile-container.role-admin {
  --glow-color-1: rgba(230, 126, 34, 0.4);
  --glow-color-2: rgba(230, 126, 34, 0.15);
  animation: role-pulse 3s ease-in-out infinite;
}

.user-card.role-moderator,
.store-card.role-moderator,
.profile-container.role-moderator {
  --glow-color-1: rgba(52, 152, 219, 0.4);
  --glow-color-2: rgba(52, 152, 219, 0.15);
  animation: role-pulse 3s ease-in-out infinite;
}

