/* Yüzen Asistan (Floating Widget) ve Buzlu Cam Efekti */
#asya-floating-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 10px 20px;
    cursor: grab;
    transition: all 0.3s ease;
}

#asya-floating-widget:active { cursor: grabbing; }

/* MD3 Ses Dalgaları (Canvas yerine Pure CSS) */
.md3-visualizer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
}
.md3-bar {
    width: 6px;
    background-color: #3182ce;
    border-radius: 10px;
    height: 10px;
    transition: height 0.05s ease;
}

/* WhatsApp Tarzı Diarization Balonları */
.chat-container { display: flex; flex-direction: column; gap: 10px; margin-top:15px; }
.chat-bubble { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-hekim { align-self: flex-end; background-color: #dcf8c6; border-bottom-right-radius: 4px; }
.chat-hasta { align-self: flex-start; background-color: #ffffff; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }

/* İnteraktif Akıllı Çipler (Smart Chips) */
.asya-chip {
    display: inline-block;
    background: #edf2f7;
    border: 1px solid #cbd5e0;
    padding: 6px 12px;
    border-radius: 16px;
    margin: 4px;
    font-size: 13px;
    color: #2d3748;
    transition: all 0.2s ease;
}
.asya-chip[contenteditable="true"]:focus {
    background: #fff;
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 2px rgba(49,130,206,0.2);
}
.chip-delete-btn {
    color: #e53e3e;
    cursor: pointer;
    font-weight: bold;
    margin-left: 8px;
}

/* Medikolegal Kırmızı/Turuncu Kartlar */
.alert-card { padding: 15px; border-radius: 8px; margin-bottom: 10px; animation: pulse-soft 2s infinite; }
.alert-critical { background: #fff5f5; border-left: 4px solid #e53e3e; color: #c53030; }
.alert-warning { background: #fffff0; border-left: 4px solid #d69e2e; color: #b7791f; }

@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(229,62,62, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(229,62,62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229,62,62, 0); }
}

/* Snackbar (Geri Al Bildirimi) */
#asya-snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#asya-snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 4.5s;
}

/* Yazdırma (Print) Kuralları */
@media print {
    body * { visibility: hidden; }
    #print-prescription-template, #print-prescription-template * { visibility: visible; }
    #print-prescription-template {
        position: absolute;
        left: 0; top: 0; width: 100%;
    }
    .chip-delete-btn, #asya-floating-widget { display: none !important; }
}