/* Custom styles for Website Scanner Platform */

/* Loading spinner animation */
.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

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

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

.loading-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Form enhancements */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button hover effects */
.btn-primary {
  background-color: #2563eb;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Card hover effects */
.card-hover {
  transition: all 0.2s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Status indicators */
.status-success {
  color: #10b981;
  background-color: #d1fae5;
  border-color: #a7f3d0;
}

.status-error {
  color: #ef4444;
  background-color: #fee2e2;
  border-color: #fecaca;
}

.status-warning {
  color: #f59e0b;
  background-color: #fef3c7;
  border-color: #fde68a;
}

.status-info {
  color: #3b82f6;
  background-color: #e0f7fa;
  border-color: #b2ebf2;
}

/* Responsive table */
.table-responsive {
  overflow-x: auto;
}

.table-responsive table {
  min-width: 600px;
}

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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

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

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

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

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

.pulse {
  animation: pulse 2s infinite;
}

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

.bounce {
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

/* Enhanced component styling */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #10b981);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.card-elevated {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.card-elevated:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced button styles */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.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-glow {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

/* Enhanced form styling */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-input-floating {
  width: 100%;
  padding: 1rem 0.75rem 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: transparent;
  transition: all 0.3s ease;
}

.form-input-floating:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label-floating {
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  color: #6b7280;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 0.25rem;
}

.form-input-floating:focus + .form-label-floating,
.form-input-floating:not(:placeholder-shown) + .form-label-floating {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.75rem;
  color: #2563eb;
}

/* Enhanced table styling */
.table-modern {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-modern th {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.table-modern tr {
  transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  transform: scale(1.01);
}

/* Status indicators with animations */
.status-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-indicator::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

.status-success::before {
  background: #10b981;
}

.status-error::before {
  background: #ef4444;
}

.status-warning::before {
  background: #f59e0b;
}

.status-info::before {
  background: #3b82f6;
}

/* Enhanced loading states */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.loading-dots::after {
  content: "";
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    color: rgba(0, 0, 0, 0);
    text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0);
  }
  40% {
    color: black;
    text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0);
  }
  60% {
    text-shadow: 0.25em 0 0 black, 0.5em 0 0 rgba(0, 0, 0, 0);
  }
  80%,
  100% {
    text-shadow: 0.25em 0 0 black, 0.5em 0 0 black;
  }
}

/* Enhanced modal styling */
.modal-backdrop {
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  animation: slideInUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Enhanced responsive design */
@media (max-width: 640px) {
  .mobile-stack > * {
    width: 100% !important;
    margin-bottom: 0.5rem;
  }

  .mobile-hide {
    display: none !important;
  }

  .mobile-center {
    text-align: center !important;
  }

  .mobile-full-width {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .table-responsive th,
  .table-responsive td {
    padding: 0.5rem !important;
  }
}

@media (max-width: 768px) {
  .tablet-stack {
    flex-direction: column !important;
  }

  .tablet-hide {
    display: none !important;
  }
}

/* Enhanced accessibility features */
.focus-visible:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced utility classes */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #667eea, #764ba2) border-box;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.shadow-glow-green {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.shadow-glow-red {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Enhanced progress indicators */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 9999px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced notification styles */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: 24rem;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.3s ease;
}

.notification-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.notification-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.notification-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.notification-info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

/* Enhanced chart and data visualization */
.chart-container {
  position: relative;
  height: 300px;
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.metric-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #10b981);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #2563eb, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced dark mode support */
@media (prefers-color-scheme: dark) {
  .dark-mode-auto {
    background: #1f2937;
    color: #f9fafb;
  }

  .dark-mode-auto .bg-white {
    background: #374151 !important;
  }

  .dark-mode-auto .text-gray-900 {
    color: #f9fafb !important;
  }

  .dark-mode-auto .text-gray-700 {
    color: #d1d5db !important;
  }

  .dark-mode-auto .border-gray-200 {
    border-color: #4b5563 !important;
  }
}

/* Enhanced print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .print-break {
    page-break-before: always;
  }

  .print-avoid-break {
    page-break-inside: avoid;
  }

  .shadow-sm,
  .shadow,
  .shadow-lg {
    box-shadow: none !important;
  }

  .bg-gradient-to-r,
  .bg-gradient-to-br {
    background: white !important;
  }
}

/* Enhanced performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Enhanced component-specific styles */
.scan-result-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.scan-result-card.success {
  border-left-color: #10b981;
}

.scan-result-card.error {
  border-left-color: #ef4444;
}

.scan-result-card.warning {
  border-left-color: #f59e0b;
}

.scan-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card {
  position: relative;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pricing-card.featured {
  border-color: #2563eb;
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.admin-sidebar {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-nav-item {
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  margin: 0.25rem 0;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.admin-nav-item.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Enhanced error and success states */
.error-shake {
  animation: shake 0.5s ease-in-out;
}

.success-bounce {
  animation: bounce 0.6s ease-in-out;
}

.loading-pulse {
  animation: pulse 2s infinite;
}

/* Final responsive and accessibility enhancements */
@media (max-width: 480px) {
  .text-4xl {
    font-size: 2rem !important;
  }

  .text-3xl {
    font-size: 1.5rem !important;
  }

  .px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid #000;
  }

  .card-hover {
    border: 1px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* CyberScanner - Cyberpunk Theme Styles */

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ff41, #00d4ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00d4ff, #ff006e);
}

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

.loading-content {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid #00ff41;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    font-family: 'Courier New', monospace;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 65, 0.3);
    border-top: 3px solid #00ff41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Cyberpunk text effects */
.cyber-text {
    text-shadow: 0 0 10px currentColor;
    animation: cyber-glow 2s ease-in-out infinite alternate;
}

@keyframes cyber-glow {
    from {
        text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
    }
    to {
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* Matrix rain effect */
.matrix-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Glitch effect */
.glitch {
    position: relative;
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Terminal typing effect */
.terminal-type {
    overflow: hidden;
    border-right: 2px solid #00ff41;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff41; }
}

/* Hover effects */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Neon border animation */
.neon-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #00ff41, #00d4ff, #ff006e) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41, 0 0 15px #00ff41;
    }
    100% {
        box-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    }
}

/* Status indicators */
.status-online {
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.status-warning {
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700;
}

.status-error {
    background: #ff006e;
    box-shadow: 0 0 10px #ff006e;
}

/* Cyberpunk buttons */
.cyber-button {
    position: relative;
    background: linear-gradient(45deg, #00ff41, #00d4ff);
    border: none;
    color: white;
    padding: 12px 24px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-button::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;
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.3);
}

/* Data table styling */
.cyber-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.cyber-table th {
    background: linear-gradient(45deg, rgba(0, 255, 65, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    color: #00ff41;
}

.cyber-table td {
    border: 1px solid rgba(0, 255, 65, 0.1);
    padding: 12px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.cyber-table tr:hover td {
    background: rgba(0, 255, 65, 0.05);
    border-color: rgba(0, 255, 65, 0.3);
}

/* Form styling */
.cyber-input {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    background: rgba(26, 26, 26, 0.9);
}

/* Card styling */
.cyber-card {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cyber-card:hover {
    border-color: #00ff41;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
}

/* Alert styling */
.cyber-alert {
    border: 2px solid;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin: 16px 0;
}

.cyber-alert.success {
    border-color: #00ff41;
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
}

.cyber-alert.warning {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.cyber-alert.error {
    border-color: #ff006e;
    background: rgba(255, 0, 110, 0.1);
    color: #ff006e;
}

/* Responsive design */
@media (max-width: 768px) {
    .cyber-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cyber-table {
        font-size: 12px;
    }
    
    .cyber-table th,
    .cyber-table td {
        padding: 8px;
    }
}

/* Dark mode enhancements */
.dark .cyber-card {
    background: rgba(10, 10, 10, 0.9);
}

.dark .cyber-input {
    background: rgba(10, 10, 10, 0.8);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.2px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic Font Improvements */
[dir="rtl"] .font-mono {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Courier New', 'Consolas', 'Monaco', monospace;
    font-weight: 500;
}

[dir="rtl"] .font-cyber {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Orbitron', sans-serif;
    font-weight: 600;
}

/* Arabic Text Rendering */
[dir="rtl"] * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic Input Fields */
[dir="rtl"] input, [dir="rtl"] textarea {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-size: 16px; /* Prevents zoom on mobile */
    text-align: right;
    font-weight: 400;
}

/* Arabic Button Text */
[dir="rtl"] button {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
}

/* Arabic Navigation Text */
[dir="rtl"] nav a, [dir="rtl"] .nav-link {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
}

/* Arabic Headings */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Orbitron', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

/* Arabic Labels */
[dir="rtl"] label {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Arabic Text Improvements */
[dir="rtl"] p, [dir="rtl"] span, [dir="rtl"] div {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
}

/* Arabic Form Elements */
[dir="rtl"] .form-group, [dir="rtl"] .form-control {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* Arabic Alert Messages */
[dir="rtl"] .alert, [dir="rtl"] .message {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 400;
}

/* Arabic Table Text */
[dir="rtl"] table, [dir="rtl"] th, [dir="rtl"] td {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* Arabic Footer Text */
[dir="rtl"] footer {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* Arabic Button Improvements */
[dir="rtl"] .btn, [dir="rtl"] .cyber-button {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Arabic Card Text */
[dir="rtl"] .card, [dir="rtl"] .cyber-card {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

/* Arabic Modal Text */
[dir="rtl"] .modal, [dir="rtl"] .modal-content {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

[dir="rtl"] .space-x-4 > * + * {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .space-x-6 > * + * {
    margin-left: 0;
    margin-right: 1.5rem;
}

[dir="rtl"] .space-x-8 > * + * {
    margin-left: 0;
    margin-right: 2rem;
}

[dir="rtl"] .text-left {
    text-align: right;
}

[dir="rtl"] .text-right {
    text-align: left;
}

[dir="rtl"] .justify-start {
    justify-content: flex-end;
}

[dir="rtl"] .justify-end {
    justify-content: flex-start;
}

[dir="rtl"] .items-start {
    align-items: flex-end;
}

[dir="rtl"] .items-end {
    align-items: flex-start;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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