/**
 * WhatsApp OTP Verification Styles
 * Clean, modern design matching Botble theme
 */

.whatsapp-otp-verification {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e3e6f0;
    margin-top: 10px;
}

.whatsapp-otp-verification .otp-wrapper {
    position: relative;
}

.whatsapp-otp-verification .otp-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.whatsapp-otp-verification .otp-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.25);
}

.whatsapp-otp-verification .otp-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.whatsapp-otp-verification .otp-input-section {
    animation: slideDown 0.3s ease;
}

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

.whatsapp-otp-verification #otpInput {
    font-size: 18px;
    letter-spacing: 8px;
    text-align: center;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.whatsapp-otp-verification #otpInput:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

.whatsapp-otp-verification .otp-verify-btn {
    white-space: nowrap;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-otp-verification .otp-timer {
    color: #6c757d;
    font-size: 13px;
    display: inline-block;
}

.whatsapp-otp-verification .otp-resend-btn {
    font-size: 13px;
    text-decoration: none;
    padding: 4px 12px;
}

.whatsapp-otp-verification .otp-resend-btn:hover {
    text-decoration: underline;
}

.whatsapp-otp-verification .otp-status {
    margin-top: 12px;
}

.whatsapp-otp-verification .alert {
    margin-bottom: 0;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.whatsapp-otp-verification .alert i {
    font-size: 16px;
    margin-right: 8px;
}

.whatsapp-otp-verification .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.whatsapp-otp-verification .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Make verified phone input look locked */
.whatsapp-otp-verification input[readonly].is-valid {
    background-color: #e9f7ef;
    border-color: #28a745;
    cursor: not-allowed;
}

.whatsapp-otp-verification input[readonly].is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Spinner animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .whatsapp-otp-verification {
        padding: 12px;
    }

    .whatsapp-otp-verification .otp-send-btn,
    .whatsapp-otp-verification .otp-verify-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .whatsapp-otp-verification #otpInput {
        font-size: 16px;
        letter-spacing: 6px;
    }
}

/* Dark mode support (if Botble theme has dark mode) */
@media (prefers-color-scheme: dark) {
    .whatsapp-otp-verification {
        background: #2d3748;
        border-color: #4a5568;
    }

    .whatsapp-otp-verification .text-muted {
        color: #a0aec0 !important;
    }

    .whatsapp-otp-verification .otp-timer {
        color: #a0aec0;
    }
}
