/**
 * Orders & Pre-Authorization Styling
 * Enhances the display of clinical orders and pre-auth tracking
 */

.orders-preauth-container {
    max-width: 1200px;
    margin: 0 auto;
}

.order-category {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-category h6 {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.order-category .list-group-item {
    border-left: 4px solid #0d6efd;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.order-category .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.preauth-item {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107 !important;
    transition: all 0.2s ease;
}

.preauth-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preauth-item h6 {
    color: #856404;
    font-weight: 600;
}

.preauth-item .badge {
    font-size: 0.85rem;
    padding: 5px 10px;
}

/* Copy button styling */
.btn-outline-primary:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Toast notifications */
.alert.position-fixed {
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

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

/* High-cost warning badge */
.badge.bg-warning.text-dark {
    font-weight: 600;
    padding: 5px 10px;
}

/* Category-specific colors */
.text-primary { color: #0d6efd !important; }
.text-info { color: #0dcaf0 !important; }
.text-warning { color: #ffc107 !important; }
.text-secondary { color: #6c757d !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .preauth-item .col-md-4 {
        margin-top: 15px;
    }
    
    .preauth-item .text-end {
        text-align: left !important;
    }
    
    .preauth-item .btn {
        width: 100% !important;
        margin-bottom: 5px;
    }
}

/* Card enhancements */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.card-header {
    font-weight: 600;
    border-bottom: 3px solid rgba(255,255,255,0.2);
}

/* List group enhancements */
.list-group-item {
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 6px !important;
}

.list-group-item strong {
    color: #212529;
}

.list-group-item small {
    color: #6c757d;
}

/* Button group styling */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.alert-danger {
    border-left-color: #dc3545;
}
