/* Estilos avançados para inputs modernos */

/* Input com efeito de onda */
.input-wave {
    position: relative;
    overflow: hidden;
}

.input-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.input-wave:focus::after {
    width: 300px;
    height: 300px;
}

/* Input com gradiente animado */
.input-gradient {
    background: linear-gradient(45deg, #f0f0f0, #ffffff, #f0f0f0);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Input com efeito de neumorfismo */
.input-neumorphism {
    background: #f0f0f0;
    border: none;
    box-shadow: 
        8px 8px 16px #d1d9e6,
        -8px -8px 16px #ffffff;
    transition: all 0.3s ease;
}

.input-neumorphism:focus {
    box-shadow: 
        inset 8px 8px 16px #d1d9e6,
        inset -8px -8px 16px #ffffff;
}

/* Input com borda animada */
.input-animated-border {
    position: relative;
    background: transparent;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.input-animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Input com ícone flutuante */
.input-floating-icon {
    position: relative;
}

.input-floating-icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 3;
}

.input-floating-icon .form-control {
    padding-left: 3rem;
}

.input-floating-icon:focus-within .icon {
    color: #5a67d8;
    transform: translateY(-50%) scale(1.1);
}

/* Input com contador de caracteres */
.input-counter {
    position: relative;
}

.input-counter .counter {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.input-counter .counter.warning {
    color: #f59e0b;
}

.input-counter .counter.danger {
    color: #ef4444;
}

/* Input com sugestões */
.input-suggestions {
    position: relative;
}

.input-suggestions .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.input-suggestions .suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.input-suggestions .suggestion-item:hover {
    background-color: #f8fafc;
}

.input-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

/* Input com validação em tempo real */
.input-validation {
    position: relative;
}

.input-validation .validation-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.input-validation.is-valid .validation-icon {
    color: #10b981;
    opacity: 1;
}

.input-validation.is-invalid .validation-icon {
    color: #ef4444;
    opacity: 1;
}

/* Input com efeito de digitação */
.input-typing {
    position: relative;
}

.input-typing::after {
    content: '|';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsividade para inputs */
@media (max-width: 768px) {
    .input-group-text {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .form-control {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .input-floating-icon .form-control {
        padding-left: 2.5rem;
    }
    
    .input-floating-icon .icon {
        left: 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .input-group-text {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .input-floating-icon .form-control {
        padding-left: 2.25rem;
    }
    
    .input-floating-icon .icon {
        left: 0.5rem;
        font-size: 0.9rem;
    }
}

