/* Chat-Style Interface for NutriChat AI */

/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
    overflow: hidden;
}

/* Container principale */
.chat-container {
    display: flex;
    height: 100vh;
    background: #ffffff;
    min-height: 0; /* Importante per flexbox */
}

/* === SIDEBAR === */
.sidebar {
    width: 320px;
    background: #f7fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: none;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Upload compatto */
.file-upload-area-compact {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.file-upload-area-compact:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.file-upload-area-compact i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
    color: #667eea;
}

.file-upload-area-compact span {
    font-size: 0.9rem;
}

.btn-compact {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn-compact:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-compact:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.existing-files-compact {
    max-height: 200px;
    overflow-y: auto;
}

.file-item-compact {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    position: relative;
}

.file-item-compact .file-name {
    font-weight: 500;
    color: #2d3748;
    display: block;
    margin-bottom: 4px;
}

.file-item-compact .file-size {
    color: #718096;
    font-size: 0.75rem;
}

.file-item-compact .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #fed7d7;
    color: #c53030;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

.config-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.config-link:hover {
    background: #edf2f7;
}

/* === CHAT MAIN === */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0; /* Importante per flexbox */
    overflow: hidden;
}

/* Header chat */
.chat-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 80px;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: #4a5568;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
    display: none;
}

.sidebar-toggle-btn:hover {
    background: #edf2f7;
}

.chat-title {
    flex: 1;
}

.chat-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.chat-title p {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* === CHAT MESSAGES === */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: #f8fafc;
    scroll-behavior: smooth;
    min-height: 0; /* Importante per flexbox */
    max-height: calc(100vh - 160px); /* Adatta in base all'header e input */
}

/* Messaggio di benvenuto */
.welcome-message {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.message-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1;
    position: relative;
}

.message-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.message-content h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.message-content p {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Message attachments indicator */
.message-attachments-indicator {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.message-attachments-indicator i {
    font-size: 0.7rem;
}

/* Esempi di casi */
.example-cases {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.example-cases h4 {
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 15px;
}

.example-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-chip {
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.example-chip:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Messaggi utente e AI */
.user-message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: flex-end;
    animation: fadeInUp 0.4s ease;
}

.user-message .message-content {
    background: #667eea;
    color: white;
    max-width: 70%;
}

.user-message .message-content::before {
    left: auto;
    right: -8px;
    border-left: 8px solid #667eea;
    border-right: none;
}

.ai-message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeInUp 0.4s ease;
}

.ai-message .message-content {
    max-width: 85%;
}

/* Loading message */
.loading-message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeInUp 0.4s ease;
}

.loading-message .message-content {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e0;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* === CHAT INPUT AREA === */
.chat-input-area {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    position: relative;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* === ATTACHMENTS AREA === */
.attachments-area {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    animation: slideDown 0.3s ease;
}

.attachments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.attachments-header h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-attachments-btn {
    background: #fed7d7;
    color: #c53030;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.clear-attachments-btn:hover {
    background: #feb2b2;
    transform: scale(1.1);
}

.attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    max-width: 200px;
    position: relative;
    transition: all 0.2s;
}

.attachment-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.attachment-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    flex-shrink: 0;
}

.attachment-icon.pdf {
    background: #e53e3e;
}

.attachment-icon.image {
    background: #48bb78;
}

.attachment-icon.doc {
    background: #3182ce;
}

.attachment-icon.excel {
    background: #38a169;
}

.attachment-icon.other {
    background: #718096;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-weight: 500;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-size {
    color: #718096;
    font-size: 0.75rem;
}

.attachment-remove {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.attachment-remove:hover {
    color: #e53e3e;
    background: #fed7d7;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
}

.input-container {
    flex: 1;
    display: flex;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-container:focus-within .input-toolbar {
    background: #edf2f7;
    border-color: rgba(102, 126, 234, 0.2);
}

/* === INPUT TOOLBAR === */
.input-toolbar {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-right: 1px solid #e2e8f0;
    background: #f7fafc;
    transition: all 0.3s ease;
    gap: 4px;
}

.toolbar-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toolbar-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.toolbar-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.toolbar-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Tooltips per i bottoni */
.toolbar-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.toolbar-btn:hover::after {
    opacity: 1;
}

.input-container textarea {
    flex: 1;
    border: none;
    background: none;
    padding: 15px 20px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    max-height: 120px;
    overflow-y: auto;
}

.input-container textarea::placeholder {
    color: #a0aec0;
}

.send-btn {
    background: #667eea;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    margin: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.send-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
}

.send-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* === DRAG AND DROP STYLES === */
.drag-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.1);
    border: 3px dashed #4a90e2;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.drag-drop-overlay.active {
    display: flex;
    animation: dragFadeIn 0.3s ease;
}

.drag-drop-content {
    text-align: center;
    color: #4a90e2;
    font-weight: 600;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.drag-drop-content i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    animation: dragBounce 0.6s infinite alternate;
}

.drag-drop-content p {
    margin: 0;
    font-size: 1.1rem;
}

.drag-drop-content .drag-hint {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
    max-width: 300px;
    line-height: 1.4;
}

.drag-drop-overlay.success .drag-drop-content i {
    animation: successPulse 0.6s ease;
}

.drag-drop-overlay.error .drag-drop-content i {
    animation: errorShake 0.6s ease;
}

@keyframes dragPulse {
    from { background: rgba(74, 144, 226, 0.1); }
    to { background: rgba(74, 144, 226, 0.2); }
}

@keyframes dragFadeIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Miglioramenti per l'accessibilità e UX del drag and drop */
.drag-drop-overlay {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.drag-drop-content {
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Stile per indicare i tipi di file supportati */
.drag-hint {
    max-width: 300px;
    line-height: 1.4;
}

/* Animazione più fluida per il counter dei file */
.drag-drop-content .file-count {
    font-weight: bold;
    color: #4a90e2;
    animation: countPulse 0.4s ease;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Migliore gestione degli stati per l'overlay */
.drag-drop-overlay.validating {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.drag-drop-overlay.validating .drag-drop-content {
    color: #fbbf24;
}

.drag-drop-overlay.validating .drag-drop-content i {
    animation: validatingSpin 1s linear infinite;
}

@keyframes validatingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Stile per il feedback durante l'elaborazione */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.processing-overlay.active {
    display: flex;
}

.processing-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.processing-content i {
    font-size: 2rem;
    color: #4a90e2;
    animation: processingPulse 1s infinite alternate;
}

@keyframes processingPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-toggle-btn {
        display: block;
    }

    .chat-main {
        width: 100%;
    }

    .user-message .message-content,
    .ai-message .message-content {
        max-width: 90%;
    }

    .chat-header {
        padding: 15px;
    }

    .chat-messages {
        padding: 15px;
    }

    .chat-input-area {
        padding: 15px;
    }
}

/* Mobile responsive per toolbar */
@media (max-width: 768px) {
    .toolbar-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .toolbar-btn::after {
        display: none; /* Nascondi tooltips su mobile */
    }
    
    .input-toolbar {
        padding: 6px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .example-buttons {
        flex-direction: column;
    }
    
    .example-chip {
        width: 100%;
        text-align: left;
        border-radius: 8px;
    }
    
    .chat-header h1 {
        font-size: 1.2rem;
    }
    
    .sidebar {
        width: 280px;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === LOADING OVERLAY === */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.toast.success {
    border-left-color: #38a169;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
}

.toast.error {
    border-left-color: #e53e3e;
    background: linear-gradient(135deg, #fed7d7 0%, #fbb6ce 100%);
}

.toast.warning {
    border-left-color: #dd6b20;
    background: linear-gradient(135deg, #fef5e7 0%, #fed7c7 100%);
}

.toast.info {
    border-left-color: #3182ce;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-content i {
    font-size: 1.1rem;
}

.toast.success .toast-content i {
    color: #38a169;
}

.toast.error .toast-content i {
    color: #e53e3e;
}

.toast.warning .toast-content i {
    color: #dd6b20;
}

.toast.info .toast-content i {
    color: #3182ce;
}

.toast-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2d3748;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsiveness for toasts */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 12px;
    }
    
    .toast-content span {
        font-size: 0.85rem;
    }
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* === MESSAGE CONTENT FORMATTING === */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4 {
    color: #2d3748;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.message-content h1:first-child,
.message-content h2:first-child,
.message-content h3:first-child,
.message-content h4:first-child {
    margin-top: 0;
}

.message-content ul,
.message-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.message-content strong {
    color: #2d3748;
    font-weight: 600;
}

.message-content em {
    color: #4a5568;
    font-style: italic;
}

.message-content code {
    background: #edf2f7;
    color: #2d3748;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

/* File list styles for sidebar */
.file-list {
    margin-top: 10px;
}

.file-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item .file-info {
    flex: 1;
}

.file-item .file-name {
    font-weight: 500;
    color: #2d3748;
    display: block;
    margin-bottom: 2px;
}

.file-item .file-size {
    color: #718096;
    font-size: 0.75rem;
}

.file-item .remove-btn {
    background: #fed7d7;
    color: #c53030;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.file-item .remove-btn:hover {
    background: #feb2b2;
}

/* === ADDITIONAL INTERACTIVE STATES === */

/* Drag and Drop States */
.file-upload-area-compact.dragover {
    border-color: #667eea;
    background: #edf2f7;
    transform: scale(1.02);
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #718096;
    font-size: 0.9rem;
}

.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Button hover states */
.btn-compact:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* File item hover states */
.file-item-compact:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.file-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Remove button hover states */
.remove-btn:hover {
    background: #feb2b2;
    transform: scale(1.1);
}

/* Focus states for better accessibility */
.input-container textarea:focus {
    outline: none;
}

.btn-compact:focus,
.send-btn:focus,
.btn-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Disabled states */
.send-btn:disabled {
    opacity: 0.6;
}

.btn-compact:disabled {
    opacity: 0.6;
}

/* === COPY BUTTON STYLES === */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.message-content:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.copy-btn.copied {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

/* === CONNECTION STATUS INDICATOR === */
.connection-status {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 9999;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.connection-status.online {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.connection-status.offline {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.connection-status .status-content::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.connection-status.online .status-content::before {
    background: #48bb78;
    animation: pulse 2s infinite;
}

.connection-status.offline .status-content::before {
    background: #f56565;
}

/* Custom prompt status indicator */
.prompt-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #2d3748;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prompt-status i {
    color: #667eea;
}

.prompt-edit-btn-mini {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #667eea;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.7rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.prompt-edit-btn-mini:hover {
    background: #f7fafc;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* === ERROR MESSAGE STYLES === */
.error-message {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #742a22;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.4s ease;
}

.error-message i {
    color: #f56565;
    font-size: 1.1rem;
}

.error-message .error-content {
    flex: 1;
}

.error-message .error-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.error-message .error-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === RETRY BUTTON STYLES === */
.retry-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(252, 129, 129, 0.3);
    display: flex;
    gap: 10px;
    align-items: center;
}

.retry-btn {
    background: #f56565;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.retry-btn:hover:not(:disabled) {
    background: #e53e3e;
    transform: translateY(-1px);
}

.retry-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.dismiss-btn {
    background: transparent;
    color: #742a2a;
    border: 1px solid rgba(116, 42, 42, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dismiss-btn:hover {
    background: rgba(116, 42, 42, 0.1);
}

/* === NETWORK ERROR STYLES === */
.network-error-message {
    background: #fef5e7;
    border: 1px solid #f6ad55;
    color: #744210;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.network-error-message h4 {
    color: #744210;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.network-error-message p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.network-error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.network-error-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.network-error-actions .btn-primary {
    background: #667eea;
    color: white;
}

.network-error-actions .btn-primary:hover {
    background: #5a67d8;
}

.network-error-actions .btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.network-error-actions .btn-secondary:hover {
    background: #e2e8f0;
}

/* === MESSAGE TIMESTAMP STYLES === */
.message-timestamp {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 8px;
    text-align: right;
}

.user-message .message-timestamp {
    color: rgba(255, 255, 255, 0.7);
}

/* === TYPING INDICATOR ENHANCED === */
.typing-text {
    color: #718096;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* === FILE UPLOAD PROGRESS === */
.upload-progress {
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #667eea;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 5px;
    text-align: center;
}

/* === HOVER EFFECTS FOR INTERACTIVE ELEMENTS === */
.message-content {
    transition: all 0.2s;
}

.ai-message:hover .message-content {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === DARK MODE COMPATIBILITY === */
@media (prefers-color-scheme: dark) {
    .connection-status.online {
        background: #22543d;
        color: #c6f6d5;
        border-color: #2f855a;
    }
    
    .connection-status.offline {
        background: #742a2a;
        color: #fed7d7;
        border-color: #c53030;
    }
}

/* === MOBILE OPTIMIZATIONS FOR NEW ELEMENTS === */
@media (max-width: 768px) {
    .connection-status {
        top: 10px;
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .copy-btn {
        opacity: 1;
        position: relative;
        top: auto;
        right: auto;
        margin-top: 10px;
        display: inline-block;
    }
    
    .network-error-actions {
        flex-direction: column;
    }
    
    .network-error-actions button {
        width: 100%;
    }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
.copy-btn:focus,
.retry-btn:focus,
.dismiss-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* === ANIMATION PERFORMANCE === */
.copy-btn,
.connection-status,
.error-message {
    will-change: transform, opacity;
}

/* Ensure proper z-index stacking */
.toast-container {
    z-index: 10001;
}

.connection-status {
    z-index: 9999;
}

.loading-overlay {
    z-index: 10000;
}

/* === ENHANCED FILE MANAGEMENT === */

/* File Statistics Header */
.file-stats-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    margin: -15px -15px 15px -15px;
    border-radius: 8px 8px 0 0;
}

.stats-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-item i {
    opacity: 0.8;
}

.memory-warning {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.memory-warning i {
    color: #ffd700;
}

/* File Selection Controls */
.file-selection-controls {
    margin-top: 10px;
}

.selection-mode {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.8rem;
}

.selection-mode span {
    font-weight: 500;
}

.selection-mode select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.8rem;
    color: #2d3748;
}

/* Enhanced File Grid */
.files-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item-enhanced {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.file-item-enhanced:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.file-item-enhanced.recommended {
    border-color: #38a169;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
}

.file-item-enhanced.recommended::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #38a169;
    border-radius: 4px 0 0 4px;
}

/* File Icon with Category Colors */
.file-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.file-icon.small {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.file-icon.medium {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.file-icon.large {
    background: linear-gradient(135deg, #ed64a6, #d53f8c);
    color: white;
}

.file-icon.xl {
    background: linear-gradient(135deg, #fc8181, #e53e3e);
    color: white;
}

/* File Details */
.file-info {
    flex: 1;
    min-width: 0;
}

.file-details .file-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 0.85rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.file-size {
    color: #718096;
    font-size: 0.75rem;
}

.file-category {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-category.small {
    background: #c6f6d5;
    color: #22543d;
}

.file-category.medium {
    background: #fed7c7;
    color: #744210;
}

.file-category.large {
    background: #fed2e1;
    color: #702459;
}

.file-category.xl {
    background: #fed7d7;
    color: #742a2a;
}

/* File Actions */
.file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.recommended-icon {
    color: #38a169;
    font-size: 1rem;
}

.file-checkbox {
    position: relative;
    cursor: pointer;
}

.file-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.remove-btn {
    background: #fed7d7;
    color: #c53030;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #feb2b2;
    transform: scale(1.1);
}

/* Selection Recommendations */
.selection-recommendations {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.selection-recommendations h4 {
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-recommendations h4 i {
    color: #ed8936;
}

.recommendation-item {
    margin-bottom: 8px;
}

.recommendation-item strong {
    color: #2d3748;
    font-size: 0.85rem;
}

.recommendation-note {
    color: #718096;
    font-size: 0.8rem;
    margin-top: 4px;
    line-height: 1.4;
}

/* === CONTEXT INDICATOR STYLES === */
.context-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #48bb78;
    background: #f0fff4;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #c6f6d5;
    margin-top: 4px;
    animation: contextFadeIn 0.3s ease;
}

.context-indicator i {
    font-size: 0.7rem;
}

.chat-title p {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-header h3 {
    color: #2d3748;
    font-size: 1.2rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    color: #4a5568;
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
}

.modal-body textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-counter {
    text-align: right;
    margin-top: 8px;
    color: #718096;
    font-size: 0.8rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 16px;
        flex-direction: column;
    }
      .btn {
        width: 100%;
        justify-content: center;
    }
}

/* === STILI BOTTONE INFO E ISTRUZIONI COLLASSIBILI === */
.instructions-toggle {
    margin: 15px 0;
    text-align: center;
}

.info-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

.info-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

.info-btn.active {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.info-btn.active:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

.info-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.info-btn:hover i {
    transform: scale(1.1);
}

/* Animazioni per le istruzioni */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
}

/* Miglioramenti per le istruzioni paziente */
.patient-instructions {
    overflow: hidden;
    transition: all 0.3s ease;
}

.patient-instructions[style*="display: block"] {
    animation: slideDown 0.3s ease-out;
}

/* Miglioramenti per la welcome message */
.welcome-message {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive per il bottone info */
@media (max-width: 768px) {
    .info-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
        border-radius: 20px;
    }
    
    .patient-instructions {
        margin: 15px 0;
        padding: 15px;
    }
    
    .instruction-section {
        margin-bottom: 15px;
        padding: 10px;
    }
}
