/* ============================================================================
   🌟 SMM AutoBot Pro - Modern Dark Glassmorphism Stylesheet
   ============================================================================ */

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Sidebar Tab Buttons */
.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.15s ease-in-out;
}

.sidebar-tab:hover {
  background-color: rgba(30, 41, 59, 0.6);
  color: #f8fafc;
}

.sidebar-tab.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.05));
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

/* Stat Cards */
.stat-card {
  padding: 1.25rem;
  border-radius: 1rem;
  background-color: #0f172a;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #334155;
}

/* Timeframe Buttons */
.timeframe-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.15s;
}

.timeframe-btn:hover {
  color: #ffffff;
}

.timeframe-btn.active {
  background-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Category Filter Buttons */
.category-btn {
  transition: all 0.15s ease-in-out;
}

.category-btn:hover {
  background-color: rgba(30, 41, 59, 0.8);
  border-color: #475569;
}

.category-btn.active {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

/* Form Inputs */
.input-field {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  background-color: #0b1120;
  border: 1px solid #1e293b;
  color: #f8fafc;
  font-size: 0.8125rem;
  transition: all 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Toggle Checkbox */
.toggle-checkbox {
  appearance: none;
  width: 2.75rem;
  height: 1.5rem;
  background-color: #334155;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s;
}

.toggle-checkbox::before {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.2s;
}

.toggle-checkbox:checked {
  background-color: #10b981;
}

.toggle-checkbox:checked::before {
  transform: translateX(1.25rem);
}

/* Platform Select Buttons */
.platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  background-color: #0b1120;
  color: #94a3b8;
  font-weight: 600;
  transition: all 0.2s;
}

.platform-btn:hover {
  background-color: #1e293b;
  color: white;
}

.platform-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-card {
  background-color: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.92) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ============================================================================
   ✨ Toast Notification Floating System (Executive Glassmorphism)
   ============================================================================ */
#toastContainer {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100vw - 2.5rem);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px -2px rgba(16, 185, 129, 0.15);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.toast-item.toast-leave {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-item.success {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.2);
}

.toast-item.error {
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(244, 63, 94, 0.2);
}

.toast-item.warning {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(251, 191, 36, 0.2);
}

.toast-item.info {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: left;
  animation: toastProgress linear forwards;
}

.toast-item.success .toast-progress { background: linear-gradient(90deg, #10b981, #34d399); }
.toast-item.error .toast-progress { background: linear-gradient(90deg, #ef4444, #f43f5e); }
.toast-item.warning .toast-progress { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.toast-item.info .toast-progress { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }

@keyframes toastSlideIn {
  0% { transform: translateX(100%) scale(0.9); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastSlideOut {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(100%) scale(0.9); opacity: 0; }
}

@keyframes toastProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}
