/* DYTSOFT Diyetisyen - Tailwind CDN'e ek ozel stiller */

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* RTL (Arapca) icin form hizalamalarini duzelt */
[dir="rtl"] input,
[dir="rtl"] label {
    text-align: right;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 8px;
}

/* Danisan detay sayfasi sekme butonlari */
.tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tab-btn.active-tab {
    color: #047857;
    border-bottom-color: #047857;
    font-weight: 600;
}

/* Sol menu (sidebar) linkleri */
.nav-link {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.nav-link svg { flex-shrink: 0; opacity: 0.75; }
.nav-link span { line-height: 1.2; }
.nav-link:hover {
    background-color: #f3f4f6;
    color: #111827;
}
.nav-link.nav-link-active {
    background-color: #ecfdf5;
    color: #047857;
    font-weight: 600;
}

/* Duzenle/Sil ikon butonlari (liste satirlarinda) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #6b7280;
}
.icon-btn:hover {
    background-color: #f3f4f6;
    color: #111827;
}
.icon-btn.icon-btn-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* Randevular sayfasi gorunum sekmeleri (Liste/Takvim/Cizelge) */
.view-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
    border-radius: 0.4rem;
    color: #6b7280;
    font-weight: 500;
}
.view-btn.active-view {
    background-color: #fff;
    color: #047857;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* Takvim gun hucreleri */
.takvim-gun {
    min-height: 64px;
    border: 1px solid #f1f5f9;
    border-radius: 0.4rem;
    padding: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}
.takvim-gun:hover { background-color: #f9fafb; }
.takvim-gun.secili { background-color: #ecfdf5; border-color: #059669; }
.takvim-gun.disi-ay { opacity: 0.35; }
.takvim-gun.bugun .gun-no { color: #047857; font-weight: 700; }

/* Musait slot butonlari */
.slot-btn {
    font-size: 0.75rem;
    padding: 0.35rem;
    border-radius: 0.4rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    cursor: pointer;
}
.slot-btn.musait { background-color: #f0fdf4; border-color: #bbf7d0; color: #047857; }
.slot-btn.musait:hover { background-color: #dcfce7; }
.slot-btn.dolu { background-color: #f9fafb; color: #d1d5db; cursor: not-allowed; }
.slot-btn.secili { background-color: #059669; border-color: #059669; color: #fff; }

/* Randevu liste hizli filtre butonlari */
.filtre-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background: #fff;
    flex-shrink: 0;
}
.filtre-btn.aktif-filtre {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
}

/* Hatirlatma hizli aksiyon ikonlari (WhatsApp/SMS/Mail) */
.hatirlatma-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.8rem;
}
.hatirlatma-ikon.whatsapp { background-color: #dcfce7; color: #16a34a; }
.hatirlatma-ikon.whatsapp:hover { background-color: #bbf7d0; }
.hatirlatma-ikon.sms { background-color: #dbeafe; color: #2563eb; }
.hatirlatma-ikon.sms:hover { background-color: #bfdbfe; }
.hatirlatma-ikon.mail { background-color: #fef3c7; color: #b45309; }
.hatirlatma-ikon.mail:hover { background-color: #fde68a; }

/* Dashboard: yatay bar grafik (paket satis dagilimi) */
.yatay-bar-track {
    width: 100%;
    height: 10px;
    background-color: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}
.yatay-bar-dolgu {
    height: 100%;
    background-color: #059669;
    border-radius: 999px;
}

/* Dashboard: gunun randevulari - saat/isim slot kartlari */
.gun-slot {
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gun-slot .saat { font-weight: 700; }
.gun-slot .isim { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gun-slot.bos { background-color: #f0fdf4; color: #047857; }
.gun-slot.planlandi { background-color: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.gun-slot.geldi { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.gun-slot.gelmedi { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* -------------------------------------------------------------------
   Danisan borc ikonu (danisan listesi satirlarinda, bakiye > 0 iken)
   ------------------------------------------------------------------- */
.dempro-borc-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background-color: #fee2e2;
    color: #dc2626;
    cursor: default;
    position: relative;
    flex-shrink: 0;
}
.dempro-borc-ikon svg { width: 12px; height: 12px; }

/* Basit CSS-only tooltip: title yerine, hover'da bakiye tutarini gosterir. */
.dempro-borc-ikon[data-tutar]::after {
    content: attr(data-tutar);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 30;
}
.dempro-borc-ikon[data-tutar]::before {
    content: '';
    position: absolute;
    bottom: 118%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111827;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 30;
}
.dempro-borc-ikon[data-tutar]:hover::after,
.dempro-borc-ikon[data-tutar]:hover::before {
    opacity: 1;
}

/* -------------------------------------------------------------------
   "Dil Sec" acilir menusu (bayrak + dil adi) - topbar ve giris/kayit
   sayfalarinda [data-lang-switcher] konteynerine JS ile render edilir.
   ------------------------------------------------------------------- */
.dempro-lang-select {
    position: relative;
}
.dempro-lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}
.dempro-lang-trigger:hover { background-color: #f3f4f6; }
.dempro-lang-flag { font-size: 1rem; line-height: 1; }
.dempro-lang-current-name { display: none; }
@media (min-width: 640px) {
    .dempro-lang-current-name { display: inline; }
}
.dempro-lang-menu {
    position: absolute;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    min-width: 170px;
    padding: 4px;
    z-index: 40;
}
[dir="rtl"] .dempro-lang-menu { right: auto; left: 0; }
.dempro-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.8125rem;
    color: #374151;
    text-decoration: none;
}
.dempro-lang-item:hover { background-color: #f3f4f6; }
.dempro-lang-item.active {
    background-color: #ecfdf5;
    color: #047857;
    font-weight: 600;
}

/* -------------------------------------------------------------------
   PDF indirme butonlari (liste/detay sayfalarinda ortak gorunum)
   ------------------------------------------------------------------- */
.btn-pdf-indir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #b91c1c;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}
.btn-pdf-indir:hover { background-color: #fee2e2; }
.btn-pdf-indir svg { width: 14px; height: 14px; flex-shrink: 0; }
