@import 'tailwindcss';
@import '../../../vendor/livewire/flux/dist/flux.css';

@source '../../views';
@source '../../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../../vendor/livewire/flux-pro/stubs/**/*.blade.php';
@source '../../../vendor/livewire/flux/stubs/**/*.blade.php';

@custom-variant dark (&:where(.dark, .dark *));

/* @theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';

    --color-zinc-50: #fafafa;
    --color-zinc-100: #f5f5f5;
    --color-zinc-200: #e5e5e5;
    --color-zinc-300: #d4d4d4;
    --color-zinc-400: #a3a3a3;
    --color-zinc-500: #737373;
    --color-zinc-600: #525252;
    --color-zinc-700: #404040;
    --color-zinc-800: #262626;
    --color-zinc-900: #171717;
    --color-zinc-950: #0a0a0a;

    --color-accent: var(--color-neutral-800);
    --color-accent-content: var(--color-neutral-800);
    --color-accent-foreground: var(--color-white);
} */

@layer theme {
    .dark {
        --color-accent: var(--color-white);
        --color-accent-content: var(--color-white);
        --color-accent-foreground: var(--color-neutral-800);
    }
}

@layer base {

    *,
    ::after,
    ::before,
    ::backdrop,
    ::file-selector-button {
        border-color: var(--color-gray-200, currentColor);
    }
}

[data-flux-field]:not(ui-radio) {
    @apply grid gap-2;
}

[data-flux-label] {
    @apply  !mb-0 !leading-tight;
}

input:focus[data-flux-control],
textarea:focus[data-flux-control],
select:focus[data-flux-control] {
    @apply outline-hidden ring-2 ring-accent ring-offset-2 ring-offset-accent-foreground;
}

/* \[:where(&)\]:size-4 {
    @apply size-4;
} */


[x-cloak] {
    display: none !important
}

@keyframes glowFloat1 {
0%, 100% { transform: translate(0, 0); }
50% { transform: translate(20px, -20px); }
}
@keyframes glowFloat2 {
0%, 100% { transform: translate(0, 0); }
50% { transform: translate(-20px, 20px); }
}
@keyframes glowFloat3 {
0%, 100% { transform: translate(0, 0); }
50% { transform: translate(15px, 15px); }
}

.animate-glow1 {
animation: glowFloat1 10s ease-in-out infinite alternate;
}
.animate-glow2 {
animation: glowFloat2 14s ease-in-out infinite alternate;
}
.animate-glow3 {
animation: glowFloat3 12s ease-in-out infinite alternate;
}

.animate-fade-in-down {
    animation: fadeInDown 1.2s ease-out both
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

.animate-glow-left {
    animation: glowLeft 12s ease-in-out infinite alternate
}

.animate-glow-right {
    animation: glowRight 10s ease-in-out infinite alternate
}

@keyframes glowLeft {
    0% {
        transform: translate(0, 0);
        opacity: .2
    }

    100% {
        transform: translate(30px, 20px);
        opacity: .35
    }
}

@keyframes glowRight {
    0% {
        transform: translate(0, 0);
        opacity: .2
    }

    100% {
        transform: translate(-40px, -25px);
        opacity: .4
    }
}
.slide-left {
transform: translateX(-90vw);
opacity: 0;
}

.slide-right {
transform: translateX(90vw);
opacity: 0;
}

.transition-slide {
transition: all 1.5s ease-in-out;
}


.typing-text {
border-right: .15em solid #777;
white-space: nowrap;
overflow: hidden;
animation: typing 2s steps(20, end), blink .75s step-end infinite;
}

@keyframes typing {
from { width: 0 }
to { width: 11ch }
}

@keyframes blink {
from, to { border-color: transparent }
50% { border-color: #777 }
50% { opacity: 0; }
}


.animate-pulse-fast {
    animation: blink 1s step-start infinite;
}

@keyframes buttonEntry {
0% {
opacity: 0;
transform: translateY(40px) scale(0.95);
}
60% {
transform: translateY(-5px) scale(1.02);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}


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


.neon-btn {
position: relative;
display: inline-block;
padding: 0.75rem 2.5rem;
font-size: 1.125rem;
font-weight: 600;
border-radius: 0.75rem;
color: white;
text-align: center;
text-decoration: none;
background-color: transparent;
border: 2px solid currentColor;
overflow: hidden;
z-index: 0;
transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.neon-btn:hover {
transform: scale(1.05);
box-shadow: 0 0 20px currentColor;
}

.neon-btn:active {
transform: scale(0.95);
}

.neon-btn .btn-text {
position: relative;
z-index: 1;
}

.neon-btn .glow {
position: absolute;
inset: -2px;
border-radius: inherit;
background: conic-gradient(from 0deg,
var(--neon-color) 0%,
transparent 30%,
var(--neon-color) 60%,
transparent 100%
);
animation: borderPulse 2s linear infinite;
z-index: 0;
filter: blur(8px);
opacity: 0.6;
}

/* Custom Themes */
.neon-blue {
color: #3b82f6;
--neon-color: #3b82f6;
}

.neon-green {
color: #48eca8;
--neon-color: #48ec8f;
}

.neon-purple {
    color: #a855f7;
    border-color: #a855f7;
}

.neon-purple:hover {
    background-color: #a855f7;
    color: white;
}


.neon-info {
    position: relative;
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: white;
    background-color: #3b82f6; /* blue-500 */
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: background 0.3s ease-in-out;
}

.neon-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #93c5fd, transparent);
    transition: all 0.4s ease-in-out;
    z-index: 0;
    opacity: 0.7;
}

.neon-info:hover::before {
    left: 0;
}

.neon-info .glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6, 0 0 30px #60a5fa;
    opacity: 0.6;
    z-index: -1;
    transition: opacity 0.3s ease-in-out;
}

.neon-info:hover .glow {
    opacity: 1;
}

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



@layer utilities {
    @keyframes pulseOnce {
      0%, 100% { transform: scale(1); }
      50%      { transform: scale(1.15); }
    }

    .animate-\[pulseOnce_400ms_ease-in-out\] {
      animation: pulseOnce 400ms ease-in-out;
    }
  }


  @keyframes glowCursor {
    0%, 100% {
      text-shadow: 0 0 4px #818cf8, 0 0 8px #6366f1;
    }
    50% {
      text-shadow: 0 0 10px #818cf8, 0 0 20px #6366f1;
    }
  }
  .animate-glow-cursor {
    animation: glowCursor 1.2s ease-in-out infinite;
  }

  @keyframes pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.animate-pop {
    animation: pop 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    50%      { transform: translateX(5px); }
    75%      { transform: translateX(-3px); }
}

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


.otp-input {
    width: 30px;
    height: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #1e293b;
    border: none;
    border-radius: 6px;
    background: #f1f5f9;
    box-shadow:
        inset 1.5px 1.5px 3px #d1d5db,
        inset -1.5px -1.5px 3px #ffffff,
        0 0 0 1px transparent;
    transition: all 0.6s ease-in-out;
}


.otp-input:focus {
    background: #292a2a;
    box-shadow:
        inset 1.5px 1.5px 3px #bae6fd,
        inset -1.5px -1.5px 3px #4f4c4c,
        0 0 6px rgba(56, 189, 248, 0.4);
    outline: none;
    transform: scale(1.05);
    color: #ffffff;
    animation: glowPulse 1.2s infinite, pulseBorder 0.8s ease;
}


/* حواف داخلية لما المستخدم يكتب */
.pop {
    animation: pop 0.25s ease-in-out;
}
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* هزة عند الكود الخطأ */
.shake {
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* تنسيق عام للمجموعة */
#otp-container {
    display: flex;
    justify-content: center;
    gap: 6px; /* بدل 10px */
    padding: 8px;

    margin: 0 auto;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    }
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(127, 133, 143, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@media (max-width: 480px) {
    .otp-input {
        width: 24px;
        height: 28px;
        font-size: 12px;
    }
}


/* ✨ تأثير فخم للمربعات عند الخطأ */
.otp-input.error-effect {
    background-color: #fee2e2; /* وردي */
    color: #b91c1c; /* خط أحمر */
    border: 1px solid #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes bounceGlow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }
    25% {
        transform: scale(1.1);
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(0.95);
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    }
    75% {
        transform: scale(1.05);
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes neon-flicker {
    0%, 100% {
        box-shadow: 0 0 10px #6366f1, 0 0 20px #6366f1, 0 0 30px #9333ea, 0 0 40px #9333ea;
    }
    50% {
        box-shadow: 0 0 15px #22d3ee, 0 0 25px #22d3ee, 0 0 35px #818cf8, 0 0 50px #818cf8;
    }
}

.animate-neon-glow {
    animation: neon-flicker 2.5s ease-in-out infinite;
    transition: all 0.3s ease-in-out;
}



@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.animate-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, #3b82f6, #5293fb, #60a5fa);
  opacity: 0.6;
  animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -2;
}



@keyframes pulse-step {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(99, 102, 241, 0);
    }
}

.animate-pulse-step {
    animation: pulse-step 1.5s infinite;
}


