/* Custom styles beyond Tailwind */

/* Font settings */
body {
    font-family: 'Inter', sans-serif;
}

/* Smooth transitions */
.transition-all {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom focus styles */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid #000;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.375rem;
    background-color: #1a1a1a;
    color: white;
    z-index: 50;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease-in-out;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background-color: #dc2626;
}

.toast.success {
    background-color: #059669;
}

/* Case status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-in-progress {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.status-completed {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-on-hold {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-archived {
    background-color: #E5E7EB;
    color: #374151;
}

/* Message indicators */
.unread-indicator {
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Modal animations */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-1rem); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

.clinic-name {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Message thread styling */
.message-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.message.sent .message-bubble {
    background-color: #2563eb;
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message.received .message-bubble {
    background-color: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 0.25rem;
}

.message-timestamp {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    align-self: flex-end;
}

.message.sent .message-timestamp {
    color: #93c5fd;
}

.message.received .message-timestamp {
    color: #9ca3af;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.message-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message-group .message-bubble {
    margin-bottom: 0.125rem;
}

.message-group .message-bubble:last-child {
    margin-bottom: 0;
} 