/* Controls Tools - Dark Cyber Core Design System Styles */

:root {
  --color-bg: #0A0B1E;
  --color-surface: #10123A;
  --color-container: #14163F;
  --color-container-high: #1B1E4A;
  --color-card-dark: #12153B;
  --color-border: #33355C;
  --color-border-light: #6A6D99;
  --color-glow-primary: #6C63FF;
  --color-glow-secondary: #3B2FA6;
  --color-accent-purple: #7B2FF7;
  --color-accent-blue: #1877F2;
  --color-accent-green: #25D366;
  --color-accent-cyan: #29B6F6;
  --color-text-primary: #ECEAFF;
  --color-text-body: #E6E7F5;
  --color-text-muted: #A8ACC6;
  --color-text-dim: #B7B9D6;
  --color-section-alt: #0C0E28;
  --color-footer: #080918;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0A0B1E;
  color: #E6E7F5;
  font-family: 'Cairo', sans-serif;
  overflow-x: hidden;
  direction: rtl;
}

.sharp-box,
.btn-sharp,
.card-sharp,
.input-sharp,
.table-sharp {
  border-radius: 0px !important;
}

.chevron-pattern {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, #2A2C52 10px, #2A2C52 11px);
}

.cyber-card {
  background-color: #10123A;
  border: 2px solid #33355C;
  border-radius: 0px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card:hover {
  border-color: #6C63FF;
  box-shadow: 0 0 24px -4px rgba(108, 99, 255, 0.4);
}

.cyber-card-active {
  border-color: #6C63FF !important;
  box-shadow: 0 0 24px -4px rgba(108, 99, 255, 0.45) !important;
}

.neon-text-glow {
  text-shadow: 0 0 12px rgba(123, 47, 247, 0.6), 0 0 24px rgba(108, 99, 255, 0.3);
}

/* Universal Form Input Text Visibility & Styling */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="image"]),
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
textarea,
select,
.cyber-input {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background-color: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.cyber-input:focus {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  background-color: #FFFFFF !important;
  border-color: #6C63FF !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25) !important;
}

input::placeholder,
textarea::placeholder,
.cyber-input::placeholder {
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
  opacity: 1 !important;
  font-weight: normal !important;
}

select option {
  color: #000000 !important;
  background-color: #FFFFFF !important;
}

input:disabled,
textarea:disabled,
select:disabled {
  background-color: #F1F5F9 !important;
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
  cursor: not-allowed;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #000000 !important;
  -webkit-box-shadow: 0 0 0px 1000px #FFFFFF inset !important;
  box-shadow: 0 0 0px 1000px #FFFFFF inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.btn-primary {
  background: linear-gradient(to left, #6C63FF, #7B2FF7);
  border: 2px solid #6C63FF;
  color: #FFFFFF;
  font-weight: 800;
  border-radius: 0px;
  box-shadow: 0 4px 20px -2px rgba(108, 99, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 24px 0px rgba(123, 47, 247, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: #10123A;
  border: 2px solid #33355C;
  color: #ECEAFF;
  border-radius: 0px;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background-color: #14163F;
  border-color: #6C63FF;
  color: #FFFFFF;
}

.btn-danger {
  background-color: transparent;
  border: 2px solid #DC2626;
  color: #EF4444;
  border-radius: 0px;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background-color: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.4);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0A0B1E;
  border-left: 1px solid #33355C;
}

::-webkit-scrollbar-thumb {
  background: #33355C;
  border: 1px solid #14163F;
}

::-webkit-scrollbar-thumb:hover {
  background: #6C63FF;
}

::selection {
  background: #6C63FF;
  color: #FFFFFF;
}

#toast-container {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.cyber-toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  border-radius: 0px;
  border: 2px solid #33355C;
  background-color: #10123A;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
