/* Additional custom styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.ui-input-container {
    width: 100%;
}

/* Enhanced input field */
.enhanced-input {
    border: 2px solid #e5e7eb;
    background-color: #f9fafb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
    height: 3.2rem;
    transition: all 0.3s ease;
}

.enhanced-input:focus {
    border-color: #65a30d;
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.25);
    background-color: white;
    transform: translateY(-2px);
}

.enhanced-input:hover {
    border-color: #84cc16;
    transform: translateY(-1px);
}

/* Enhanced button */
.enhanced-button {
    display: block;
    width: 100%;
    background-color: #65a30d;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(101, 163, 13, 0.2), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.enhanced-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4d7c0f;
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.enhanced-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(101, 163, 13, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.enhanced-button:hover::after {
    transform: scaleY(1);
}

.enhanced-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(101, 163, 13, 0.2);
}

.enhanced-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.3), 0 4px 6px rgba(101, 163, 13, 0.2);
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ui-spinner {
    animation: spin 1s linear infinite;
}

/* Animation for valid result */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#valid-result:not(.hidden),
#invalid-result:not(.hidden) {
    animation: fadeIn 0.5s ease-in-out;
}

/* Success icon pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#valid-result .fa-check-circle {
    animation: pulse 2s infinite;
}

/* Header styling */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    position: relative;
    border-bottom: 1px solid rgba(101, 163, 13, 0.2);
}

/* Footer styling */
footer {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.original-text {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }

    header h2 {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .ui-card-body {
        padding: 0.75rem;
    }

    .enhanced-button {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }
}

@media (max-width: 420px) {
    .c-br {
        display: block;
    }
}


/* Custom card styling */
.ui-card {
    border-radius: 1rem;
    overflow: hidden;
}

/* Input field enhancements */
.ui-input-container {
    transition: all 0.2s;
}

.ui-input-container:hover {
    transform: translateY(-1px);
}

input::placeholder {
    color: #9CA3AF;
    /* Tailwind gray-400 */
}

/* Button focus ring customization */
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5);
}