/* Genel sayfa stili */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
}

/* Konteynerin genel stilini düzenleme */
.container {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    margin: 10px auto;
}

/* Başlık ve metin */
h2 {
    color: #333;
    font-size: 20px;/* orj:24 */
    margin-bottom: 2px;/* orj:20 */
}

p {
    font-size: 6px;/* orj:16 */
    color: #555;
}

/* Başarı ve hata mesajları */
.success {
    color: green;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
}

.error {
    color: red;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
}

/* Form stilini düzenleme */
form {
    margin-top: 3px;
}

form input[type="text"] {
    padding: 3px;
    margin-right: 1px;
    border: 1px solid #ccc;
    border-radius: 1px;
    width: 200px;
}

form button {
    padding: 3px 2px; /*editlendi orj.10px 20px*/
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049;
}

/* Görev listesi */
ul {
    padding: 0;
    list-style: none;
}

li {
    background-color: #f9f9f9;
    margin: 1px 0;
    padding: 1px;
    border-radius: 1px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Çıkış linki */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
/* Progress bar container */
.progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    margin-top: 1px;
    height: 20px;
    overflow: hidden;
}

/* Progress bar itself */
.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    text-align: center;
    line-height: 20px;
    color: white;
    border-radius: 5px;
}
/* Progress bar stili */
.progress-bar-container {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 10px;
    height: 20px;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 10px;
}

.progress-bar span {
    font-weight: bold;
    color: #333;
}
/* Alt görevlerin yan yana sıralanması için Flexbox */
.alt-gorevler {
    display: flex;               /* Flexbox kullanımı */
    flex-wrap: wrap;             /* Taşan öğelerin bir alt satıra geçmesi için */
    gap: 1px; /*15*/                  /* Alt görevler arasındaki boşluk */
    margin-top: 1px;/*10*/
    padding: 0;
}

/* Alt görevlerin sıralanması */
.alt-gorevler {
    display: flex;             /* Flexbox ile öğeleri yan yana sıralar */
    flex-wrap: wrap;           /* Taşan öğeleri bir alt satıra geçirir */
    gap: 15px;                 /* Alt görevler arasındaki boşluk */
    margin-top: 10px;/*20*/
}

/* Alt görev başlığı (Yeşil kutu) kaldırıldı, normal metin olarak düzenlendi */
.alt-gorev-baslik {
    font-size: 10px;
    color: #333;
    background-color: #4CAF50; /* Başlık rengi */
    color: white;
    padding: 3px 5px;/* 5-10 */
    border-radius: 1px;/* 3 */
    flex-grow: 1;  /* Başlık alanını genişletir */
    margin-left: 1px; /* Checkbox ile başlık arasındaki mesafe */
    display: inline-block;
}

/* Alt görevlerin checkbox'ları için düzenleme */
.tamamlandi-checkbox {
    cursor: pointer;
    margin-right: 1px; /* Checkbox ile başlık arasındaki mesafe */
    display: inline-block; /* Yan yana sıralanması için */
}

/* Alt görev silme butonu (X) */
.sil-alt-gorev {
    background-color: transparent; /* Çerçeve yok */
    color: red; /* Kırmızı metin */
    border: none; /* Çerçeve kaldırıldı */
    padding: 2px 5px; /* Küçük boyut */
    font-size: 10px; /* Font boyutu küçültüldü */
    cursor: pointer;
    border-radius: 50%; /* Yuvarlak şekil */
    transition: background-color 0.3s ease; /* Hover efektini yumuşat */
}

/* Hover durumunda arka plan değişimi */
.sil-alt-gorev:hover {
    background-color: rgba(255, 0, 0, 0.1); /* Hafif kırmızı bir arka plan */
}
