/**
 * MNS AutoFill - Styles
 *
 * @author MNS -> Lucas Vasconcelos
 * @version 1.0.0
 */

/* Loading indicator */
.mns-autofill-loading {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #84c529;
    font-size: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.mns-autofill-loading .fa-spinner {
    margin-right: 5px;
}

/* Search button */
.mns-autofill-btn {
    background-color: #f5f5f5;
    border-color: #e3e3e3;
    color: #333;
    transition: all 0.2s ease;
}

.mns-autofill-btn:hover,
.mns-autofill-btn:focus {
    background-color: #84c529;
    border-color: #84c529;
    color: #fff;
}

.mns-autofill-btn:active {
    background-color: #6ba821;
    border-color: #6ba821;
}

.mns-autofill-btn .fa {
    font-size: 14px;
}

/* Input group adjustments */
.form-group .input-group .mns-autofill-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Highlight filled fields */
.mns-autofill-filled {
    animation: mns-autofill-highlight 1s ease;
}

@keyframes mns-autofill-highlight {
    0% {
        background-color: #d4edda;
        border-color: #c3e6cb;
    }
    100% {
        background-color: #fff;
        border-color: #e3e3e3;
    }
}

/* Settings page */
.mns-autofill-settings .well {
    background-color: #fafafa;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.mns-autofill-settings .well h6 {
    margin-bottom: 10px;
    color: #333;
}

.mns-autofill-settings .well .fa {
    margin-right: 8px;
    color: #84c529;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mns-autofill-loading {
        position: static;
        transform: none;
        display: block;
        margin-top: 5px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mns-autofill-loading {
        background: rgba(0, 0, 0, 0.8);
        color: #84c529;
    }
}
