/* Additional styles for Libya Kids website */

/* Base transitions */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.cloud-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* OTP Autofill Animation */
@keyframes otpPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Autofilled OTP input styling */
.pin-input.autofilled {
    background-color: #f8f4e5;
    border: 2px solid #4caf50 !important;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    animation: otpPulse 1.5s infinite;
}

/* Device icons hover effects */
.device-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.device-icon:hover {
    transform: translateY(-5px) !important;
    filter: brightness(1.2);
}

/* Background patterns */
.dots-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(#40E0D0 1px, transparent 1px),
                      radial-gradient(#FF69B4 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Form focus effects */
#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
    border-color: #40E0D0;
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

/* Button hover effects */
button[type="submit"] {
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(64, 224, 208, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .device-icons-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .dots-pattern {
        background-size: 15px 15px;
    }
}

/* Print styles */
@media print {
    .cloud-animation,
    .device-icons-container,
    .dots-pattern {
        display: none;
    }
}

/* Disabled button styles */
button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Countdown timer styles */
#resendCountdown {
    font-size: 0.9rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}

#countdownTimer {
    font-weight: bold;
    color: #40E0D0;
}

/* Modal styles */
#shortcodeModal {
    animation: fadeIn 0.3s ease-in-out;
}

#shortcodeModal .bg-white {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Error message styling */
.pin-error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-left: 4px solid #c62828;
}