/* --- GENEL SIFIRLAMA --- */
* {
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif !important; 
}

body {
    background-color: rgb(87, 155, 207);
    padding: 20px; 
}

.container {
    width: 80%;
    height: auto;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- ADMİN PANEL DÜZENİ --- */
.admin-container { 
    display: flex; 
    gap: 20px;
    max-width: 1000px; 
    margin: 0 auto; 
}

.sidebar { 
    width: 35%; 
    background: #fff; 
    padding: 15px; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.sidebar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 15px; 
    border-bottom: 2px solid #eee;
    padding-bottom: 8px; 
}

.btn-add-new { 
    background: #28a745; 
    color: white; 
    text-decoration: none; 
    padding: 6px 12px; 
    border-radius: 4px; 
    font-size: 13px; 
    font-weight: bold; 
}

.btn-add-new:hover { 
    background: #218838; 
}

.patient-list { 
    list-style: none; 
    max-height: 450px; 
    overflow-y: auto; 
}

.patient-item { 
    margin-bottom: 8px; 
}

.patient-link { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 12px; 
    background: #f8f9fa; 
    text-decoration: none; 
    color: #333; 
    border-radius: 6px; 
    border: 1px solid #ddd; 
    transition: 0.2s;
}

.patient-link:hover, 
.patient-link.active { 
    background: #007bff; 
    color: white; 
    border-color: #007bff; 
}

.delete-btn { 
    color: #dc3545; 
    text-decoration: none; 
    font-size: 12px; 
    font-weight: bold; 
    margin-left: 5px; 
}

.patient-link.active .delete-btn { 
    color: #fff; 
}

.content { 
    width: 65%; 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.content h3 { 
    margin-bottom: 15px; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 8px; 
    color: #333; 
}

/* --- TABLO VE FORM ELEMANLARI --- */
table { 
    width: 100%; 
    border-collapse: collapse; 
}

td { 
    padding: 10px 0; 
}

.txt { 
    width: 100%; 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
}

textarea.txt { 
    height: 100px; 
    resize: vertical; 
}

.button-submit { 
    background: #007bff; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px; 
}

.button-submit.add { 
    background: #28a745; 
}

.button-submit:hover { 
    opacity: 0.9; 
}

.alert { 
    padding: 10px; 
    background: #d4edda; 
    color: #155724; 
    border-radius: 4px; 
    margin-bottom: 15px; 
}

/* --- HASTA BİLGİ VE SİMÜLASYON ALANI --- */
.header-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.photo-box {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 10px;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-box h2 {
    font-size: 25px;
    font-weight: bold;
    color: #000;
}

.info-box p {
    font-size: 19px;
    font-weight: bold;
    color: #000;
}

.talk-box {
    width: 100%;
    min-height: 200px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    line-height: 1.6;
    white-space: pre-wrap;
}

.no-patient {
    color: #2c3e50;
    text-align: center;
    padding: 40px;
    font-weight: bold;
}

/* --- OYUNLAŞTIRMA VE SORU / TEŞHİS BUTONLARI --- */
.section-title {
    margin: 20px 0 15px 0;
    color: #2c3e50;
    font-weight: 700;
    font-size: 18px;
}

.questions-flex {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diagnosis-container {
    display: none;
    margin-top: 25px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.option-btn {
    padding: 15px;
    border: 1px solid gray;
    border-radius: 5px;
    background: #f0f0f0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.option-btn:hover {
    background: #e0e0e0;
}

.result-msg {
    margin-top: 20px;
    padding: 15px;
    font-weight: bold;
    text-align: center;
    display: none;
    border-radius: 5px;
}

/* --- MOBİL UYUMLULUK (RESPONSIVE) --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    .admin-container {
        flex-direction: column;
        gap: 15px;
    }

    .sidebar {
        width: 100%;
    }

    .patient-list {
        max-height: 200px;
    }

    .content {
        width: 100%;
    }

    table, tr, td {
        display: block;
        width: 100%;
    }

    td {
        padding: 5px 0;
    }

    td:first-child {
        font-weight: bold;
        padding-top: 10px;
    }

    .button-submit {
        width: 100%;
        margin-top: 10px;
    }

    .photo-box {
        width: 100px;
        height: 100px;
    }

    .info-box h2 {
        font-size: 20px;
    }

    .info-box p {
        font-size: 14px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

.result-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    position: relative; /* Transform/Shake animasyonunun çalışması için şart */
    display: none;
}

/* Yanlış teşhiste kutunun sallanma efekti */
@keyframes shakeAnimation {
    0% { transform: translateX(0); }
    20% { transform: translateX(-12px); }
    40% { transform: translateX(12px); }
    60% { transform: translateX(-12px); }
    80% { transform: translateX(12px); }
    100% { transform: translateX(0); }
}

.shake-effect {
    animation: shakeAnimation 0.4s ease-in-out !important;
}

/* Yanlış şıkka tıklandığında butonun anlık kırmızı olması */
.wrong-btn-effect {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
    transform: scale(0.95);
    transition: all 0.15s ease;
}