/* MyDealz Dashboard - Modern Design */

/* ==================== FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600&display=swap');

:root {
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
  background-color: #f8f9fa;
  font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
}

/* Font Weight Overrides für Manrope */
h1, h2, h3, h4, h5, h6,
.fw-bold, .font-weight-bold,
.navbar-brand, .nav-link.active,
.btn, .card-title, .deal-title,
.product-title, .account-info h6,
.badge, .step-number {
  font-weight: 600 !important;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 10px;
  margin-top: 10px;
}

/* Falls Bootstrap sticky-top verwendet wird, etwas Abstand lassen */
.navbar.sticky-top {
  top: 10px !important;
}

.navbar .nav-link {
  border: none !important;
  background: none !important;
  color: rgba(255,255,255,0.8) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover {
  color: white !important;
  background-color: rgba(255,255,255,0.1) !important;
}

.navbar .nav-link.active {
  color: white !important;
  background-color: rgba(255,255,255,0.2) !important;
  font-weight: 600;
}

/* Page Management */
.page {
  animation: fadeIn 0.3s ease-in-out;
}

.page.d-none {
  display: none !important;
}

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

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
}

.card-header h5, .card-header h6 {
  margin: 0;
  font-weight: 600;
}

/* Step Container */
.step-container {
  position: relative;
  border-left: 3px solid #e9ecef;
  padding-left: 1.5rem;
  margin-left: 1.5rem;
}

.step-container.active {
  border-left-color: var(--primary);
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, 0);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.step-container.completed .step-number {
  background: var(--success);
}

.step-container.completed .step-number::after {
  content: '✓';
  position: absolute;
}

/* Product Preview */
.product-preview {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  background: white;
}

.product-image {
  max-width: 120px;
  height: auto;
  border-radius: 0.5rem;
}

.product-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--success);
}

.product-price .btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.product-price .btn:hover {
  background-color: #e9ecef;
  border-color: #6c757d;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Account Selection */
.account-item {
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.account-item:hover {
  border-color: var(--primary);
  background-color: #f8f9ff;
}

.account-item.selected {
  border-color: var(--primary);
  background-color: #e3f2fd;
}

.account-info h6 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.account-info small {
  color: var(--secondary);
}

.account-status {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.status-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 0.575rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.status-badge.bg-success {
  background-color: #02ad7a !important;
  color: white;
}

.status-badge.bg-danger {
  background-color: #dc3545 !important;
  color: white;
}

.status-badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529;
}
.status-badge.bg-upvoting {
  background-color: #006448 !important;
  opacity: 0.95;
  color: #ffffff;
}

.status-badge.bg-primary {
  background-color: #0d6efd !important;
  color: white;
}

.status-badge.bg-secondary {
  background-color: #6c757d !important;
  color: white;
}

.status-badge.bg-dark {
  background-color: #212529 !important;
  color: white;
}

/* Active Deals */
.deal-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.deal-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.deal-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  background: #f8f9fa;
}

.deal-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Geändert von 'cover' zu 'contain' */
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* Bild-Container mit Overlay-Badge */
.upvoting-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  border-radius: 0.7rem;
  border: 1px solid #00d79a;
  max-height: 4.5em; /* 3 lines */
  overflow: hidden;
}

.deal-title {
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.deal-description {
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.deal-description.collapsed {
  max-height: 1.5em; /* 1 line */
  overflow: hidden;
  position: relative;
}

.deal-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  margin: 1rem 0;
  gap: 0.5rem;
}

.deal-stat {
  text-align: center;
}

.deal-stat-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--dark);
}

.deal-stat-label {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
}

.temperature {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  color: white;
  background: var(--secondary); /* Fallback */
}

.temperature.hot {
  background-color: #e74c3c; /* Solid Red */
}

.temperature.warm {
  background-color: #f1c40f; /* Solid Yellow */
}

.temperature.cold {
  background-color: #3498db; /* Solid Blue */
}

.temperature.neutral {
  background-color: #95a5a6; /* Solid Gray */
}

.deal-account-info {
  background-color: #f8f9fa;
  padding: 0.75rem;
  margin: 1rem 0;
}

.deal-account-info h6 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--dark);
}

.deal-account-detail {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

/* Upvoting buttons in account info section */
.deal-account-info .btn-upvote,
.deal-account-info .btn-outline-info {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

/* Zentrierte Ausrichtung des Flex-Containers in Account Info */
.deal-account-info .d-flex {
  align-items: center !important;
}

.deal-account-info .btn-upvote {
  margin-bottom: 0.25rem;
  background-color: #9b59b6;
  border: 1px solid #8e44ad;
  color: white;
}
.deal-account-info .btn-upvote:hover {
  background-color: #8e44ad;
}

@media (max-width: 768px) {
  .deal-account-info .d-flex {
    flex-direction: column;
  }
  
  .deal-account-info .ms-3 {
    margin-left: 0 !important;
    margin-top: 0.75rem;
    text-align: center;
  }
}

.deal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.deal-actions .btn {
  flex: 1;
  min-width: 120px;
  border: 1px solid transparent;
}
.deal-actions .btn-primary {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
}
.deal-actions .btn-primary:hover {
  background-color: #2980b9;
}
.deal-actions .btn-warning {
  background-color: #f39c12;
  color: white;
  border-color: #e67e22;
}
.deal-actions .btn-warning:hover {
  background-color: #e67e22;
}
.deal-actions .btn-outline-secondary {
  /* EDIT */
  background-color: #ecf0f1;
  color: #34495e;
  border-color: #bdc3c7;
}
.deal-actions .btn-outline-secondary:hover {
  background-color: #bdc3c7;
  color: #2c3e50;
}
.deal-actions .btn-outline-primary {
  /* REFRESH */
  background-color: #ecf0f1;
  color: #3498db;
  border-color: #bdc3c7;
}
.deal-actions .btn-outline-primary:hover {
  background-color: #bdc3c7;
  color: #2980b9;
}
.deal-actions .btn-outline-success {
  /* FRESH SESSION */
  background-color: #1abc9c;
  color: white;
  border-color: #16a085;
}
.deal-actions .btn-outline-success:hover {
  background-color: #16a085;
}
.deal-actions .btn-outline-danger {
  /* DELETE */
  background-color: #e74c3c;
  color: white;
  border-color: #c0392b;
}
.deal-actions .btn-outline-danger:hover {
  background-color: #c0392b;
}

/* System Status */
.status-item {
  text-align: center;
  padding: 1rem;
}

.status-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.status-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #3498db;
  border-color: #2980b9;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #2ecc71;
  border-color: #27ae60;
}

.btn-success:hover {
  background-color: #27ae60;
  transform: translateY(-1px);
}

.btn-warning {
  background-color: #f1c40f;
  border-color: #f39c12;
}

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

.btn-danger {
  background-color: #e74c3c;
  border-color: #c0392b;
}

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

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

/* Form Controls */
.form-control, .form-select {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alerts */
.alert {
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

/* Loading */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }
  
  .step-container {
    margin-left: 0;
    padding-left: 1rem;
    border-left: none;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
  }
  
  .step-number {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 0.5rem;
    display: inline-flex;
  }
  
  .deal-actions {
    flex-direction: column;
  }
  
  .deal-actions .btn {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .card-body {
    padding: 1rem;
  }
  
  .deal-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .deal-stat {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
  }
  
  .deal-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Moderation warnings */
.moderation-warning {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.moderation-warning .alert {
  padding: 0.5rem 0.75rem;
}

/* Deal card status highlighting */
.deal-card[style*="border: 2px solid #dc3545"] {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.deal-card[style*="border: 2px solid #0d6efd"] {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ==================== IDEALO INTEGRATION STYLES ==================== */

.idealo-product-image {
  width: 100%;
  max-width: 80px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  padding: 3px;
}

.idealo-search-result {
  border: 2px solid #28a745;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.idealo-search-result:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(40, 167, 69, 0.2);
  transform: translateY(-2px);
}

.idealo-price {
  color: #28a745;
  font-weight: bold;
  font-size: 1.25rem;
}

.idealo-badge {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  border: none;
}

#idealoLoading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

.recent-searches .btn {
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

/* Idealo Step Animation */
#idealo-step2 {
  animation: slideInUp 0.5s ease-out;
}

/* Mobile Responsive for Idealo */
@media (max-width: 768px) {
  .idealo-product-image {
    max-width: 100px;
  }
  
  .idealo-price {
    font-size: 1.1rem;
  }
}

/* ASIN Idealo Integration Styles */
#step2-5 .card {
  border-left: 4px solid #17a2b8;
}

#step2-5 .spinner-border-sm {
  width: 1.2rem;
  height: 1.2rem;
}

.alert-sm {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.alert-sm small {
  font-size: 0.8rem;
}

/* ==================== ACCOUNT HIGHLIGHTING STYLES ==================== */

/* Account-Hervorhebung für Accounts mit Posts */
.account-with-posts {
  background-color: #e3f2fd !important;
  color: #1565c0 !important;
  font-weight: bold !important;
}

.account-with-posts-info {
  background-color: #f8f9fa;
  border: 2px solid #e3f2fd;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.post-stats-info {
  background-color: #e3f2fd;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.status-badge.posts {
  background-color: #1565c0;
  color: white;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
}

/* Hover-Effekte für Account-Auswahl */
select option.account-with-posts:hover {
  background-color: #bbdefb !important;
}

/* Verbesserte Sichtbarkeit für Account-Dropdowns */
#accountSelect option.account-with-posts {
  background-color: #e3f2fd !important;
  color: #1565c0 !important;
  font-weight: bold !important;
}

/* ==================== UPVOTING STYLES ==================== */

/* Upvoting Button Styles */
.btn-upvote {
  background-color: #9b59b6;
  border: 1px solid #8e44ad;
  color: white;
  transition: all 0.3s ease;
}

.btn-upvote:hover {
  background-color: #8e44ad;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(155, 89, 182, 0.3);
}

.btn-upvote:disabled {
  background: #bdc3c7;
  color: #7f8c8d;
  transform: none;
  box-shadow: none;
  border-color: #95a5a6;
}

/* Upvoting Status Badges */
.upvoting-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upvoting-status.pending {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.upvoting-status.running {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  animation: pulse-blue 2s infinite;
}

.upvoting-status.paused {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.upvoting-status.completed {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.upvoting-status.stopped {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.upvoting-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Upvoting Progress Bars */
.upvoting-progress {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e9ecef;
}

.upvoting-progress-bar {
  height: 100%;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #28a745, #20c997);
}

.upvoting-progress-bar.success {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.upvoting-progress-bar.warning {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.upvoting-progress-bar.danger {
  background: linear-gradient(90deg, #dc3545, #e83e8c);
}

/* Upvoting Cards */
.upvoting-session-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: white;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  padding: 1rem;
}

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

.upvoting-session-card.running {
  border-left: 4px solid #17a2b8;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.upvoting-session-card.completed {
  border-left: 4px solid #28a745;
}

.upvoting-session-card.error {
  border-left: 4px solid #dc3545;
}

.upvoting-session-card.paused {
  border-left: 4px solid #ffc107;
}

/* Upvoting Statistics */
.upvoting-stats {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}

.upvoting-stat {
  text-align: center;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  flex: 1;
}

.upvoting-stat-value {
  font-size: 1.25rem;
  font-weight: bold;
  display: block;
}

.upvoting-stat-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Animations für Upvoting */
@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(23, 162, 184, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 162, 184, 0);
  }
}

/* Upvoting Control Buttons */
.upvoting-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.upvoting-controls .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Time Estimation Display */
.time-estimate {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem 0;
}

.time-estimate .time-value {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}

.time-estimate .time-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Preview Section */
.upvoting-preview {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.upvoting-preview h6 {
  color: #495057;
  margin-bottom: 0.75rem;
}

.upvoting-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-point {
  background: #007bff;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Responsive Upvoting Styles */
@media (max-width: 768px) {
  .upvoting-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .upvoting-controls {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .upvoting-controls .btn {
    width: 100%;
  }
  
  .upvoting-timeline {
    flex-direction: column;
  }
}

/* Abstand zwischen Close- und Refresh-Button im Upvoting-Status-Modal */
.modal-header .btn-close {
  margin-right: 0.5rem;
}

/* Kommentar-Button Pastell-Lila */
.btn-comment {
  background-color: #1abc9c;
  border: 1px solid #16a085;
  color: white;
  transition: all 0.3s ease;
}

.btn-comment:hover {
  background-color: #16a085;
  transform: translateY(-1px);
  color: white;
  box-shadow: 0 4px 8px rgba(26, 188, 156, 0.3);
}

.btn-status {
  background-color: #34495e;
  color: white;
  border: 1px solid #2c3e50;
}

/* Button "Post on Website" - same height as status-badge */
.btn-post-website {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
}

/* ==================== Toast Alerts ==================== */
#alertContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060; /* Higher than modal z-index (1055) */
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-alert {
  pointer-events: auto;
  min-width: 260px;
  animation: slideInRight 0.4s ease-out, slideOutRight 0.4s ease-in 4s forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(120%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

/* Comment Section Styles */
.comment-card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  background-color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.comment-header {
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.comment-user {
  font-weight: 600;
  color: #0d6efd;
}

.comment-body {
  padding: 1rem;
}
.comment-body blockquote {
  border-left: 3px solid #ccc;
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
  color: #6c757d;
}

.comment-replies {
  margin: 0 1rem 0.75rem 1rem;
  padding-left: 1rem;
  border-left: 3px solid #e9ecef;
}

.replies-toggle {
  font-size: 0.9em;
  color: #6c757d;
  cursor: pointer;
}

.comment-reply {
  font-size: 0.9em;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}
.comment-reply span {
  opacity: 0.9;
}

.comment-footer {
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.comment-reactions {
  display: flex;
  gap: 0.5rem;
}

.reaction-btn {
  display: flex;
  align-items: center;
}

.reaction-account-selector {
  max-width: 200px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.75rem;
  object-fit: cover;
}

.comment-avatar-placeholder {
  font-size: 32px;
  color: #adb5bd;
  margin-right: 0.75rem;
}
.reaction-btn span {
  min-width: 12px;
  text-align: center;
  font-weight: 600;
}

.reaction-btn .reaction-text {
  margin: 0 0.4rem;
}
.reaction-btn .reaction-count {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.8em;
}

/* Specific Reaction Button Colors */
.reaction-btn-helpful {
  color: #2aaa8a;
  border: 1px solid #2aaa8a;
}
.reaction-btn-helpful:hover {
  background-color: #2aaa8a;
  color: white;
}

.reaction-btn-like {
  color: #e0d100; /* Darker yellow for text readability */
  border: 1px solid #e0d100;
}
.reaction-btn-like:hover {
  background-color: #ffea00;
  color: #333;
}

.reaction-btn-funny {
  color: #6495ed;
  border: 1px solid #6495ed;
}
.reaction-btn-funny:hover {
  background-color: #6495ed;
  color: white;
}

.comment-card-owner {
  border-color: #9b59b6;
  background-color: #f5f3f7;
}

.comment-card-owner .comment-header {
  background-color: #e8e2ed;
}

.owner-badge {
  background-color: #9b59b6;
  color: white;
  font-size: 0.75em;
  padding: 0.2em 0.6em;
  border-radius: 10px;
  font-weight: 600;
}

/* ==================== Tools Page Styles ==================== */
.tools-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tools-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
}

.tools-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.tool-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.tool-card-icon-wrapper {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, #f0f0f0, #cacaca);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  box-shadow: inset 2px 2px 5px #babecc, inset -5px -5px 10px #ffffff;
}

.tool-card-icon {
  font-size: 1.5rem;
  color: #333;
}

.tool-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
}

.tool-card-description {
  color: #555;
  line-height: 1.5;
  flex-grow: 1;
}

.tool-card-content {
  margin-top: 1rem;
}

.tool-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-tool {
  background: linear-gradient(145deg, #e6e6e6, #ffffff);
  border: none;
  border-radius: 10px;
  color: #333;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  width: 100%;
  box-shadow: 5px 5px 10px #d9d9d9, -5px -5px 10px #ffffff;
  transition: all 0.2s ease-in-out;
}

.btn-tool:hover {
  box-shadow: 2px 2px 5px #d9d9d9, -2px -2px 5px #ffffff;
  color: #0056b3;
}

.btn-tool:active {
  box-shadow: inset 2px 2px 5px #d9d9d9, inset -2px -2px 5px #ffffff;
}

.placeholder-card {
  background: rgba(240, 240, 240, 0.5);
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
}