
/* Text Sorter Specific Styles */
.sorting-buttons .btn {
    margin-bottom: 0.5rem;
    text-align: left;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sorting-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.processing-options {
    padding: 0.5rem 0;
}

.processing-options .form-check {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.processing-options .form-check-input {
    border-radius: 4px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.processing-options .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.processing-options .form-check-label {
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: color 0.3s ease;
}

.processing-options .form-check-label:hover {
    color: #007bff;
}

.stats-info {
    font-size: 0.9rem;
}

.stats-info strong {
    color: #007bff;
    font-weight: 600;
}

/* Textarea styles */
#inputText, #outputText {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
    resize: vertical;
}

#inputText:focus, #outputText:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#outputText {
    background-color: #f8f9fa;
}

/* Card improvements */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.125);
    font-weight: 600;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.card-header.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%) !important;
}

/* Button improvements */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Custom alert positioning */
.custom-alert {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .sorting-buttons .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .processing-options .form-check-label {
        font-size: 0.875rem;
    }
    
    .stats-info {
        font-size: 0.875rem;
    }
    
    .custom-alert {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Loading state (if needed) */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
