/**
 * Custom Styles for CarePlan Readout
 */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
}

header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.card-header {
    border-bottom: 2px solid #dee2e6;
}

/* CarePlan List Styles */
.careplan-item {
    cursor: pointer;
    transition: background-color 0.2s;
    border: 2px solid transparent;
}

.careplan-item:hover {
    background-color: #f8f9fa;
}

.careplan-item.selected {
    background-color: #e7f3ff;
    border-color: #0d6efd;
}

.careplan-item input[type="radio"] {
    cursor: pointer;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* CSV Preview Table */
#csv-preview-table {
    font-size: 0.875rem;
}

#csv-preview-table th {
    white-space: nowrap;
    font-weight: 600;
    background-color: #f8f9fa;
}

#csv-preview-table td {
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status Badge */
#status-badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Message Alerts */
#message-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    #csv-preview-table {
        font-size: 0.75rem;
    }
    
    #message-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}





















