/* Enhanced Dashboard Styles */

/* Smooth Animations */
* {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Enhanced Cards */
.enhanced-card {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.98) 100%);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card:hover {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 10px 30px -10px rgba(147, 51, 234, 0.3);
  transform: translateY(-2px);
}

/* Enhanced Buttons */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover::before {
  width: 300px;
  height: 300px;
}

.btn-enhanced:active {
  transform: scale(0.95);
}

.btn-primary-enhanced {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.btn-primary-enhanced:hover {
  box-shadow: 0 6px 25px rgba(147, 51, 234, 0.6);
  transform: translateY(-2px);
}

.btn-danger-enhanced {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger-enhanced:hover {
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
  transform: translateY(-2px);
}

.btn-success-enhanced {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success-enhanced:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.btn-secondary-enhanced {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.btn-secondary-enhanced:hover {
  box-shadow: 0 6px 25px rgba(107, 114, 128, 0.6);
  transform: translateY(-2px);
}

/* Enhanced Inputs */
.input-enhanced {
  background: rgba(31, 41, 55, 0.8);
  border: 2px solid rgba(107, 114, 128, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: white;
  transition: all 0.3s ease;
}

.input-enhanced:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
  background: rgba(31, 41, 55, 0.95);
}

.input-enhanced::placeholder {
  color: rgba(156, 163, 175, 0.6);
}

/* Enhanced Select */
.select-enhanced {
  background: rgba(31, 41, 55, 0.8);
  border: 2px solid rgba(107, 114, 128, 0.3);
  border-radius: 8px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  color: white;
  appearance: none;
  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='%239ca3af' 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;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-enhanced:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
  background-color: rgba(31, 41, 55, 0.95);
}

/* Enhanced Stat Card */
.stat-card-enhanced {
  position: relative;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(107, 114, 128, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #9333ea 0%, #7e22ce 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-enhanced:hover::before {
  opacity: 1;
}

.stat-card-enhanced:hover {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 0 10px 40px -15px rgba(147, 51, 234, 0.4);
  transform: translateY(-4px);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.3);
  transition: all 0.3s ease;
}

.stat-card-enhanced:hover .stat-icon {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.5);
  transform: scale(1.1) rotate(5deg);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Table */
.table-enhanced {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(31, 41, 55, 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.table-enhanced thead {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(126, 34, 206, 0.1) 100%);
}

.table-enhanced th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(147, 51, 234, 0.3);
}

.table-enhanced td {
  padding: 1rem;
  color: #d1d5db;
  border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.table-enhanced tbody tr {
  transition: all 0.2s ease;
}

.table-enhanced tbody tr:hover {
  background: rgba(147, 51, 234, 0.05);
  transform: scale(1.01);
}

.table-enhanced tbody tr:last-child td {
  border-bottom: none;
}

/* Enhanced Badge */
.badge-enhanced {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-purple {
  background: rgba(147, 51, 234, 0.2);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Enhanced Progress Bar */
.progress-enhanced {
  width: 100%;
  height: 8px;
  background: rgba(31, 41, 55, 0.8);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-enhanced {
  height: 100%;
  background: linear-gradient(90deg, #9333ea 0%, #7e22ce 100%);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar-enhanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 50px 50px;
  animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Enhanced Toggle Switch */
.toggle-enhanced {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-enhanced input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(75, 85, 99, 0.6);
  transition: 0.4s;
  border-radius: 34px;
  border: 2px solid rgba(107, 114, 128, 0.3);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-enhanced input:checked + .toggle-slider {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  border-color: rgba(147, 51, 234, 0.5);
}

.toggle-enhanced input:focus + .toggle-slider {
  box-shadow: 0 0 1px rgba(147, 51, 234, 0.5);
}

.toggle-enhanced input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Loading Spinner */
.spinner-enhanced {
  border: 3px solid rgba(147, 51, 234, 0.2);
  border-radius: 50%;
  border-top: 3px solid #9333ea;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Section Header */
.section-header-enhanced {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(107, 114, 128, 0.2);
  margin-bottom: 1.5rem;
}

.section-header-enhanced h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.section-header-enhanced .icon {
  width: 2rem;
  height: 2rem;
  color: #9333ea;
}

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .enhanced-card {
    padding: 1rem;
  }

  .btn-enhanced {
    padding: 0.625rem 1.25rem;
    font-size: 0.813rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .section-header-enhanced h2 {
    font-size: 1.25rem;
  }
}

/* Notification Enhancement */
.notification-enhanced {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Tooltip Enhancement */
.tooltip-enhanced {
  position: relative;
  display: inline-block;
}

.tooltip-enhanced .tooltip-text {
  visibility: hidden;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  font-size: 0.875rem;
  border: 1px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(10px);
}

.tooltip-enhanced:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Alert */
.alert-enhanced {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-enhanced.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.alert-enhanced.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.alert-enhanced.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.alert-enhanced.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
/* Tab Bypass Banner Styles */
.tab-bypass-banner {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
  border: 2px solid rgba(251, 191, 36, 0.6);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

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

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

.tab-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.25rem;
  color: #92400e;
  flex-shrink: 0;
}

.tab-banner-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-admin,
.badge-beta {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-admin {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.badge-beta {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.tab-banner-message {
  font-size: 0.875rem;
  color: #92400e;
  font-weight: 500;
  line-height: 1.5;
}

.tab-banner-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 6px;
  color: #92400e;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  flex-shrink: 0;
}

.tab-banner-close:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.tab-banner-close:active {
  transform: scale(0.95);
}
