body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f4f4f9;
            flex-direction: column;
        }
        .container {
            position: relative;
            text-align: center;
        }
        .canvas-container {
            position: relative;
            width: 100%;
            max-width: 500px;
            height: auto;
            overflow: hidden;
        }
        canvas {
            border: 1px solid #000;
            display: block;
            margin: 0 auto;
            width: 100%;
            height: auto;
            background-color: #fff;
        }
        .color-buttons {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 10px;
        }
        .color-buttons button {
            padding: 15px;
            font-size: 16px;
            cursor: pointer;
            min-width: 120px;
            border-radius: 5px;
            border: 2px solid transparent;
            color: #fff;
            transition: all 0.3s ease;
        }
        .color-buttons button:nth-child(1) {
            background-color: #FFD700; /* Sarı */
            border-color: #FFC107;
        }
        .color-buttons button:nth-child(2) {
            background-color: #007BFF; /* Mavi */
            border-color: #0056b3;
        }
        .color-buttons button:nth-child(3) {
            background-color: #28A745; /* Yeşil */
            border-color: #1e7e34;
        }
        .color-buttons button:hover {
            filter: brightness(1.2);
            transform: scale(1.05);
        }
        .color-buttons button:active {
            filter: brightness(0.9);
            transform: scale(0.95);
        }
        /* Görsel seçme butonları */
        .image-selection {
            margin: 20px;
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        .image-selection img {
            width: 100px;
            height: auto;
            cursor: pointer;
            border: 2px solid transparent;
        }
        .image-selection img.selected {
            border-color: #007bff;
        }

/* Modal genel tasarımı */
#assessmentModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 80%; /* Desktop için genişlik */
    max-width: 800px;
    border-radius: 10px;
    overflow-y: auto; /* İçerik taşarsa kaydırma sağlar */
    height: auto;
    max-height: 90vh; /* Çok uzun olmasını engeller */
}

/* Modal başlık tasarımı */
#assessmentModal h3 {
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

/* Sütunlar arasındaki düzen */
#assessmentModal .modal-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Sol ve sağ sütun tasarımı */
#assessmentModal .modal-content > div {
    flex: 1;
}

/* Gönder butonu merkezi */
#assessmentModal .modal-footer {
    margin-top: 20px;
    text-align: center;
}

/* Mobil cihazlar için medya sorgusu */
@media (max-width: 768px) {
    #assessmentModal {
        width: 95%; /* Modal genişliği mobilde daha küçük */
        max-width: 95%; /* Tam ekrana yakın */
        padding: 15px;
        border-radius: 8px;
    }

    #assessmentModal .modal-content {
        flex-direction: column; /* Sütunları alt alta yerleştir */
        gap: 15px;
    }

    #assessmentModal h3 {
        font-size: 18px; /* Başlık boyutu küçülür */
    }

    #assessmentModal label {
        font-size: 14px; /* Label boyutu küçülür */
    }

    #assessmentModal select,
    #assessmentModal input {
        font-size: 14px; /* Giriş elemanları boyutu küçülür */
        padding: 6px;
    }
}

/* Yükleniyor Spinner */

@keyframes rotateGlow {
    from { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.9; filter: drop-shadow(0px 0px 10px rgba(55, 228, 233, 0.6)); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.05); opacity: 1; filter: drop-shadow(0px 0px 15px rgba(55, 228, 233, 0.9)); }
    to { transform: translate(-50%, -50%) rotate(360deg) scale(1); opacity: 0.9; filter: drop-shadow(0px 0px 10px rgba(55, 228, 233, 0.6)); }
}

#loadingSpinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: 90px;
    height: 90px;
    background: url('https://physiotherapy-ai.com/wp-content/uploads/2025/02/Photoroom_20250201_182758.png') no-repeat center center;
    background-size: contain;
    animation: rotateGlow 2.5s cubic-bezier(0.23, 1, 0.32, 1) infinite; /* Daha akıcı bir dönüş */
}

.progress-card{
  position:sticky;top:0;z-index:50;background:#fff;
  border:1px solid #e9eef5;border-radius:12px;
  padding:12px 14px;margin:8px 0 12px;
  box-shadow:0 4px 14px rgba(30,50,80,.06)
}
.p-title{font-weight:700;margin-bottom:6px}
.p-list{list-style:none;margin:0;padding:0}
.p-list li{display:flex;justify-content:space-between;
  padding:6px 0;border-top:1px dashed #eef2f7}
.p-list li:first-child{border-top:none}
.p-done{color:#1ea97c;font-weight:700}
.p-todo{color:#a0aec0;font-weight:700}
.progress-msg{text-align:center;margin:10px 0;font-weight:600;font-size:14px}

/* ——— MOBILE COMPACT TUNING ——— */
.p-done { color: #16a34a; }   /* ✓ yeşil  */
.p-todo { color: #9ca3af; }   /* — gri   */

#progressMsg {
  position: sticky; top: 0; z-index: 5;
  margin: 8px 0; padding: 8px 10px;
  font-size: 14px; border-radius: 8px;
  background: #f8fafc; color: #1ea97c; display: none;
}

/* Küçük ekran düzeni */
@media (max-width: 640px) {
  /* İlerleme kutusu daha kompakt */
  .progress-card { padding: 12px; border-radius: 12px; }
  .progress-card .p-title { font-size: 16px; margin-bottom: 6px; }
  .progress-card .p-list {
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px; margin: 8px 0 0; padding: 0; list-style: none;
  }
  .progress-card .p-list li {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; padding: 8px 10px; border-radius: 10px;
    border: 1px solid #eef2f7;
  }
  .progress-card .p-list li + li { border-top: 0; } /* eski çizgileri iptal */

  /* Başlık biraz küçülsün */
  h3 { font-size: 18px; margin: 14px 0 10px; }

  /* Çizim görsel seçimi satırı */
  .image-selection { display: flex; gap: 8px; justify-content: space-between; }
  .image-selection img { width: 32%; height: auto; }

  /* Renk butonları daha küçük ve yan yana */
  .color-buttons { display: flex; gap: 8px; margin: 8px 0; }
  .color-buttons button {
    flex: 1; padding: 10px 8px; font-size: 14px; border-radius: 10px;
  }

  /* Canvas alanı tam genişlik */
  .canvas-container { margin-top: 8px; }
  #canvas { width: 100%; height: auto; }
}
/* Chip satırı tutarlı yükseklik ve hizalama */
.progress-card .p-list li {
  min-height: 40px;
  gap: 8px;
}
.progress-card .p-list b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 6px;
  font-weight: 700; line-height: 1;
}
.p-done { background:#e8f7ef; color:#16a34a; }
.p-todo { background:#f3f4f6; color:#9ca3af; }
