/* 
 * FIBA Quiz App - Common Components
 * Shared styles used across multiple pages
 * Consolidated and optimized CSS structure
 */

/* ==========================================================================
   0. CSS CUSTOM PROPERTIES (CSS VARIABLES) FOR THEME SYSTEM
   ========================================================================== */

  
:root {
  /* Light theme colors */
  --bg-primary: #fff;
  --bg-secondary: #fef8f3;
  --bg-gradient: linear-gradient(135deg, #fff 0%, #fef8f3 100%);
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --border-color: #ddd;
  --border-light: #e1e5e9;
  --border-hover: #bbb;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --card-bg: #fff;
  --header-bg: #fff;
  --dropdown-bg: #fff;
  --dropdown-hover: #ffe6cc;
  --loading-bg: linear-gradient(135deg, #fff 0%, #fef8f3 100%);
  --spinner-bg: #f3f3f3;
  --error-bg: #f8d7da;
  --error-text: #721c24;
  --error-border: #f5c6cb;
  --success-bg: #d4edda;
  --success-text: #155724;
  --success-border: #c3e6cb;
  --hover-bg: #f5f5f5;
  --input-bg: #fff;
  --input-border: #ddd;
  
  /* Brand Colors */
  --brand-primary: #ff6600;
  --brand-primary-hover: #e55a00;
  --brand-primary-dark: #cc4f00;
  --brand-secondary: #ff8533;
  
  /* Semantic Colors */
  --color-success: #28a745;
  --color-success-dark: #20a83a;
  --color-danger: #dc3545;
  --color-danger-dark: #c82333;
  --color-warning: #ffc107;
  --color-warning-dark: #e0a800;
  --color-info: #17a2b8;
  --color-info-dark: #138496;
}

[data-theme="dark"] {
  /* Dark theme colors */
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-muted: #888;
  --border-color: #404040;
  --border-light: #363636;
  --border-hover: #555;
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --card-bg: #2d2d2d;
  --header-bg: #2d2d2d;
  --dropdown-bg: #2d2d2d;
  --dropdown-hover: #3d3d3d;
  --loading-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  --spinner-bg: #404040;
  --error-bg: #4a2c2a;
  --error-text: #ff6b6b;
  --error-border: #654545;
  --success-bg: #2d4a2a;
  --success-text: #90ee90;
  --success-border: #456545;
  --hover-bg: #3d3d3d;
  --input-bg: #3d3d3d;
  --input-border: #555;
}

/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 20px;
  padding-top: 80px; /* Space for fixed header */
  transition: background 0.3s ease, color 0.3s ease;
}

/* Utility alert classes (centralized) */
.alert-inline { display:none; padding:10px 14px; border:1px solid var(--error-border); background:var(--error-bg); color:var(--error-text); border-radius:6px; font-size:0.9rem; font-weight:600; line-height:1.3; }
.alert-inline.success { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.alert-inline.info { background: var(--color-info); color:#fff; border-color: var(--color-info-dark); }
.alert-inline.warning { background: var(--color-warning); color:#000; border-color: var(--color-warning-dark); }

/* Global font consistency rules */
h1, h2, h3, h4, h5, h6 {
  font-family: "itc-avant-garde-gothic-pro", sans-serif !important;
  font-weight: 600;
  font-style: normal;
  line-height: 1.3;
}

h1 { font-weight: 600; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }
h4 { font-weight: 500; }
h5 { font-weight: 500; }
h6 { font-weight: 500; }

p, span, div {
  font-family: "nunito", sans-serif;
  font-weight: 300;
  font-style: normal;
}

button {
  font-family: "nunito", sans-serif !important;
  font-weight: 700;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (Used across all pages)
   ========================================================================== */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--header-bg);
  border-bottom: 2px solid #ff6600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow-light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

/* Logo Dropdown */
.logo-dropdown {
  position: relative;
  display: inline-block;
}

.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.logo-container:hover {
  background-color: var(--hover-bg);
}

.logo {
  height: 40px;
  width: auto;
  margin-right: 8px;
}

.dropdown-arrow {
  color: #ff6600;
  font-size: 12px;
  transition: transform 0.3s;
}

.logo-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dropdown-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 8px var(--shadow-light);
  min-width: 160px;
  display: none;
  z-index: 1001;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
  border-bottom: 1px solid var(--border-light);
}

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

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

/* Logout Button */
.logout-btn {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  margin-left: 10px;
}

.logout-btn:hover {
  background-color: #e55a00;
  transform: translateY(-1px);
}

/* Dark Mode Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  margin-right: 10px;
  color: var(--text-primary);
}

.theme-toggle:hover {
  border-color: #ff6600;
  transform: scale(1.1);
  box-shadow: 0 2px 8px var(--shadow-light);
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Theme toggle icons */
.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

/* User Welcome Component */
.user-welcome-container {
  margin-right: 15px;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 6px 12px;
}

.user-welcome-container:hover {
  background-color: rgba(255, 102, 0, 0.1);
  transform: translateY(-1px);
}

.welcome-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.welcome-avatar-container {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--brand-primary);
  flex-shrink: 0;
}

.welcome-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.welcome-avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.welcome-greeting {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.welcome-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Legacy user welcome (for backwards compatibility) */
.user-welcome {
  color: var(--text-primary);
  font-weight: 700;
  margin-right: 15px;
  font-size: 14px;
  transition: color 0.3s ease;
}

/* ==========================================================================
   3. LOADING SCREENS (Used across multiple pages)
   ========================================================================== */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--loading-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: background 0.3s ease;
}

.loading-content {
  text-align: center;
  color: var(--text-primary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--spinner-bg);
  border-top: 4px solid #ff6600;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-content h2 {
  margin-bottom: 10px;
  color: #ff6600;
}

.loading-content p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==========================================================================
   4. COMMON BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 140px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: "nunito", sans-serif;
  border: 2px solid transparent;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(-1px) scale(1.01);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  pointer-events: none;
}

.btn:disabled::before {
  display: none;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-color) 100%);
  border-color: var(--text-secondary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.btn-success {
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-success-dark) 0%, var(--color-success) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-danger) 0%, var(--color-danger-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-danger-dark) 0%, var(--color-danger) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
  color: #212529;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-warning-dark) 0%, var(--color-warning) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-info {
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-info-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-info:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-info-dark) 0%, var(--color-info) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  min-width: 100px;
  border-radius: 8px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
  min-width: 180px;
  border-radius: 16px;
}

/* Special Button Styles */
.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-primary);
  box-shadow: none;
  padding: 12px 20px;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--hover-bg);
  transform: translateY(-1px);
}

/* OAuth Buttons */
.oauth-btn {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  font-family: "nunito", sans-serif;
  margin-bottom: 12px;
}

.oauth-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--border-hover);
}

.oauth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.oauth-icon {
  flex-shrink: 0;
}

/* OAuth Button Variants */
.google-btn {
  border-color: #dadce0;
  background: #fff;
  color: #3c4043;
}

.google-btn:hover:not(:disabled) {
  border-color: #d2d4d7;
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.facebook-btn {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
}

.facebook-btn:hover:not(:disabled) {
  border-color: #166fe5;
  background: #166fe5;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.discord-btn {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
}

.discord-btn:hover:not(:disabled) {
  border-color: #4752c4;
  background: #4752c4;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

/* Apple Sign-In */
.apple-btn {
  border-color: #000;
  background: #000;
  color: #fff;
}

.apple-btn:hover:not(:disabled) {
  border-color: #111;
  background: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Dark theme OAuth adjustments */
[data-theme="dark"] .google-btn {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .google-btn:hover:not(:disabled) {
  background: var(--hover-bg);
  border-color: var(--border-hover);
}

/* ==========================================================================
   5. COMMON LAYOUT COMPONENTS
   ========================================================================== */

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

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px var(--shadow-light);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-light);
}

.card-title {
  color: #ff6600;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

/* ==========================================================================
   6. ERROR & SUCCESS STATES
   ========================================================================== */

.error-message {
  background-color: var(--error-bg);
  color: var(--error-text);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.error-message h3 {
  margin-bottom: 10px;
  color: var(--error-text);
}

.success-message {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.success-message h3 {
  margin-bottom: 10px;
  color: var(--success-text);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (Mobile-first approach)
   ========================================================================== */

/* Tablet styles */
@media (max-width: 768px) {
  body {
    padding: 15px;
    padding-top: 70px;
  }

  .top-header {
    height: 60px;
    padding: 0 15px;
  }

  .logo {
    height: 35px;
  }

  .container {
    padding: 0 15px;
  }

  .card {
    padding: 20px;
    border-radius: 8px;
  }

  .dropdown-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  
  /* User welcome responsive */
  .welcome-avatar-container {
    width: 28px;
    height: 28px;
  }
  
  .welcome-name {
    max-width: 80px;
    font-size: 13px;
  }
  
  .welcome-greeting {
    font-size: 10px;
  }

  .app-badges {
    justify-content: center;
    width: 100%;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  body {
    padding: 10px;
    padding-top: 65px;
  }

  .top-header {
    height: 55px;
    padding: 0 10px;
  }

  .logo {
    height: 30px;
  }

  .card {
    padding: 15px;
    margin-bottom: 15px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 100px;
  }

  .loading-content h2 {
    font-size: 18px;
  }

  .loading-content p {
    font-size: 12px;
  }
  
  /* User welcome mobile */
  .welcome-content {
    gap: 6px;
  }
  
  .welcome-avatar-container {
    width: 24px;
    height: 24px;
  }
  
  .welcome-text {
    display: none; /* Hide text on very small screens, show only avatar */
  }
  
  .user-welcome-container {
    margin-right: 8px;
    padding: 4px 8px;
  }
}

/* ==========================================================================
   12. ALERT & TOAST SYSTEM
   ========================================================================== */

/* Toast Container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

/* Toast Base Styles */
.toast {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--shadow-medium);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  overflow: hidden;
  max-width: 400px;
  backdrop-filter: blur(10px);
}

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

.toast.hide {
  opacity: 0;
  transform: translateX(100%);
}

/* Toast Header */
.toast-header {
  padding: 16px 20px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.toast-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.alert-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.alert-close:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

/* Toast Body */
.toast-body {
  padding: 12px 20px 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Toast Types */
.toast-success {
  border-left: 4px solid #28a745;
}

.toast-success .toast-header {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.toast-info {
  border-left: 4px solid #17a2b8;
}

.toast-info .toast-header {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
}

.toast-warning {
  border-left: 4px solid #ffc107;
}

.toast-warning .toast-header {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
}

.toast-error,
.toast-danger {
  border-left: 4px solid #dc3545;
}

.toast-error .toast-header,
.toast-danger .toast-header {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

/* Inline Alerts */
.alert {
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  backdrop-filter: blur(10px);
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.alert-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Alert Types */
.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.alert-info {
  background: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.alert-warning {
  background: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.alert-error,
.alert-danger {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

/* Dark theme adjustments */
[data-theme="dark"] .toast {
  background: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .toast-header {
  background: var(--bg-secondary);
}

[data-theme="dark"] .alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.3);
  color: #4caf50;
}

[data-theme="dark"] .alert-info {
  background: rgba(23, 162, 184, 0.1);
  border-color: rgba(23, 162, 184, 0.3);
  color: #29b6f6;
}

[data-theme="dark"] .alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
  color: #ffca28;
}

[data-theme="dark"] .alert-error,
[data-theme="dark"] .alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .toast {
    max-width: none;
  }
  
  .toast-header {
    padding: 12px 16px 6px;
  }
  
  .toast-body {
    padding: 8px 16px 12px;
  }
  
  .alert {
    padding: 12px 16px;
  }
}
