/* Hash Generator Specific Styles */

/* Text input area custom height */
#text_input,
#validate_text {
    min-height: 120px;
    resize: vertical;
}

/* Loading state for buttons */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message notifications positioning */
#hash_message {
    border-radius: 0.5rem;
}

/* Validation result icons */
#validation_result .bi-check-circle-fill {
    color: #198754;
}

#validation_result .bi-x-circle-fill {
    color: #dc3545;
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    .col-lg-6:last-child {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    #hash_message {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        min-width: auto !important;
        width: auto !important;
    }
}

@media (max-width: 576px) {
    #text_input,
    #validate_text {
        min-height: 100px;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}