@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.5);
    --accent: #d946ef;
    --bg-dark: #09090b;
    --bg-card-dark: rgba(24, 24, 27, 0.7);
    --border-dark: rgba(255, 255, 255, 0.1);
    --text-dark: #fafafa;
    --text-muted-dark: #a1a1aa;
    --bg-light: #f8fafc;
    --bg-card-light: rgba(255, 255, 255, 0.7);
    --border-light: rgba(15, 23, 42, 0.08);
    /* Sophisticated slate border */
    --text-light: #0f172a;
    /* Slate 900 */
    --text-muted-light: #64748b;
    /* Slate 500 */

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Theme Classes */
.dark body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

body:not(.dark) {
    background-color: var(--bg-light);
    color: var(--text-light);
}

/* Glassmorphism */
.glass {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.dark) .glass {
    background: rgba(255, 255, 255, 0.85);
    /* Increased opacity for readability */
    border: 1px solid rgba(15, 23, 42, 0.1);
    /* Slate border for definition */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

.glass-premium {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(24, 24, 27, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .glass-premium {
    background: rgba(255, 255, 255, 0.75);
    /* Balance between glass and readability */
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.08);
}

/* Neon Glow */
.glow-primary {
    box-shadow: 0 0 20px var(--primary-glow);
}

.text-glow {
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    #loading-overlay.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loader-brand {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 15px var(--primary-glow));
    }
}

/* Sidebar Animations */
.sidebar {
    transition: width 0.3s ease;
}

    .sidebar.collapsed {
        width: 80px;
    }

        .sidebar.collapsed .sidebar-text {
            display: none;
        }

/* Micro-interactions */
.hover-lift {
    transition: var(--transition);
}

    .hover-lift:hover {
        transform: translateY(-4px);
    }

.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

    .btn-premium::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--accent), var(--primary));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .btn-premium:hover::after {
        opacity: 1;
    }

    .btn-premium:hover {
        box-shadow: 0 0 20px var(--primary-glow);
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Inputs */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: inherit;
    transition: var(--transition);
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 10px var(--primary-glow);
    }

body.light .form-input {
    background: white;
    border: 1px solid var(--border-light);
}

/* Page Transitions */
.page-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Visibility Fixes */
#footer-container {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    clear: both !important;
}

footer {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ================================================ */
/* NUTRITION PAGE                                   */
/* Beslenme programı sayfasının ana stilleri         */
/* ================================================ */

/* Üst bilgi kartı — Danışan adı, program başlığı, tarih */
.nutrition-info-card {
    position: relative;
    overflow: hidden;
}

    .nutrition-info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6, #d946ef);
        border-radius: 2rem 2rem 0 0;
    }

/* Alan grubu — label+input sarmalayıcısı */
.nutrition-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Etiket stili */
.nutrition-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717a;
}

.dark .nutrition-label {
    color: #a1a1aa;
}

/* Input stili — form alanları */
.nutrition-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    color: #18181b;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .nutrition-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fafafa;
}

.nutrition-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.dark .nutrition-input:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.nutrition-input::placeholder {
    color: #a1a1aa;
}

.dark .nutrition-input::placeholder {
    color: #52525b;
}

/* ================================================ */
/* NUTRITION TABLE                                  */
/* Haftalık beslenme tablosu — 7 gün x 4 öğün      */
/* ================================================ */

/* Tablo sarmalayıcı — mobilde yatay kaydırma sağlar */
.nutrition-table-wrapper {
    position: relative;
    overflow: hidden;
}

.nutrition-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

    .nutrition-table-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .nutrition-table-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .nutrition-table-scroll::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 10px;
    }

/* Ana tablo yapısı */
.nutrition-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* Tablo başlık hücreleri (th) — gün isimleri */
.nutrition-th {
    padding: 1rem 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #71717a;
    border-bottom: 1px solid #e4e4e7;
    position: relative;
    white-space: nowrap;
}

.dark .nutrition-th {
    color: #a1a1aa;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Sol üst köşe hücresi */
.nutrition-th-corner {
    text-align: left;
    width: 140px;
    min-width: 140px;
}

/* Gün kısaltma rozeti */
.nutrition-day-badge {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tablo veri hücreleri (td) */
.nutrition-td {
    padding: 0.4rem;
    border-bottom: 1px solid #f4f4f5;
    vertical-align: top;
    transition: background-color 0.25s ease;
    position: relative;
}

.dark .nutrition-td {
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

/* Hücre hover efekti — fare üzerine gelince arka plan değişir */
.nutrition-td:hover {
    background-color: rgba(124, 58, 237, 0.03);
}

.dark .nutrition-td:hover {
    background-color: rgba(124, 58, 237, 0.06);
}

/* Öğün isim sütunu — sol taraftaki etiketler */
.nutrition-meal-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #3f3f46;
    min-height: 100px;
    padding-left: 0.75rem !important;
    white-space: nowrap;
}

.dark .nutrition-meal-label {
    color: #d4d4d8;
}

/* Öğün ikonu — her öğünün kendine özgü rengi var */
.nutrition-meal-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--meal-color) 12%, transparent);
    color: var(--meal-color);
    transition: transform 0.25s ease;
}

.nutrition-meal-label:hover .nutrition-meal-icon {
    transform: scale(1.1);
}

/* Son satırda alt kenarlık olmasın */
.nutrition-table tbody tr:last-child .nutrition-td {
    border-bottom: none;
}

/* ================================================ */
/* TEXTAREA STYLES                                  */
/* Beslenme tablosu textarea stilleri               */
/* Eğitmen bu alanlara yiyecek bilgilerini yazar    */
/* ================================================ */

.nutrition-textarea {
    width: 100%;
    min-height: 90px;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.5;
    font-family: 'Outfit', sans-serif;
    resize: none;
    overflow: hidden;
    color: #18181b;
    background: #fafafa;
    border: 1.5px solid #e4e4e7;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .nutrition-textarea {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e4e4e7;
}

/* Focus efekti — aktif hücre mor renk ile parlıyor */
.nutrition-textarea:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 4px 12px -2px rgba(124, 58, 237, 0.08);
}

.dark .nutrition-textarea:focus {
    background: rgba(124, 58, 237, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), 0 4px 16px -4px rgba(124, 58, 237, 0.15);
}

.nutrition-textarea::placeholder {
    color: #c4c4cc;
    font-style: italic;
    font-size: 0.78rem;
}

.dark .nutrition-textarea::placeholder {
    color: #3f3f46;
}

/* Aktif (focus olan) hücrenin satırını vurgula */
.nutrition-td.nutrition-td-active {
    background-color: rgba(124, 58, 237, 0.04);
}

.dark .nutrition-td.nutrition-td-active {
    background-color: rgba(124, 58, 237, 0.08);
}

/* ================================================ */
/* BUTTON STYLES                                    */
/* Kaydet ve Temizle butonları                      */
/* ================================================ */

.nutrition-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nutrition-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Kaydet butonu — gradient arka plan ile premium görünüm */
.nutrition-btn-save {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px -3px rgba(16, 185, 129, 0.4);
}

    .nutrition-btn-save:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.5);
    }

    .nutrition-btn-save:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.4);
    }

    /* Kaydet butonuna parlama efekti */
    .nutrition-btn-save::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
        transform: translateX(-100%) rotate(0deg);
        transition: transform 0.6s ease;
    }

    .nutrition-btn-save:hover::after {
        transform: translateX(100%) rotate(0deg);
    }

/* Temizle butonu — nötr ve zarif */
.nutrition-btn-clear {
    background: #f4f4f5;
    color: #71717a;
    border: 1px solid #e4e4e7;
}

.dark .nutrition-btn-clear {
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    border-color: rgba(255, 255, 255, 0.08);
}

.nutrition-btn-clear:hover {
    background: #fecaca;
    color: #dc2626;
    border-color: #fca5a5;
    transform: translateY(-2px);
}

.dark .nutrition-btn-clear:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.nutrition-btn-clear:active {
    transform: translateY(0);
}

/* Kaydetme başarılı animasyon sınıfı */
.nutrition-btn-success {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    animation: nutritionPulseSuccess 0.5s ease;
}

@keyframes nutritionPulseSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Bildirim (toast) stili */
.nutrition-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    z-index: 10000;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 40px -8px rgba(0, 0, 0, 0.3);
}

    .nutrition-toast.nutrition-toast-show {
        transform: translateY(0);
        opacity: 1;
    }

.nutrition-toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.nutrition-toast-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.nutrition-toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* ================================================ */
/* NUTRITION PAGE - SLEEP TIMES                     */
/* Uyku saatleri satırı stilleri                     */
/* Eğitmen burada günlük yatış/kalkış saatlerini    */
/* girer. Her hücrede iki time input bulunur.        */
/* ================================================ */

/* Uyku satırı — hafif üst kenarlık ile diğer öğünlerden ayırma */
.nutrition-sleep-row .nutrition-td {
    border-top: 2px solid #e4e4e7;
}

.dark .nutrition-sleep-row .nutrition-td {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Uyku hücre düzeni — dikey yığın (Yatış + Kalkış) */
.nutrition-sleep-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.35rem;
}

/* Uyku input grubu — label + input çifti */
.nutrition-sleep-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Uyku etiketi — Yatış / Kalkış yazıları */
.nutrition-sleep-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a1a1aa;
    white-space: nowrap;
}

.dark .nutrition-sleep-label {
    color: #71717a;
}

/* Uyku saat input'u — admin panel stiliyle uyumlu */
.nutrition-sleep-input {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    color: #18181b;
    background: #fafafa;
    border: 1.5px solid #e4e4e7;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.dark .nutrition-sleep-input {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e4e4e7;
}

/* Focus efekti — aktif uyku input'u indigo ile parlıyor */
.nutrition-sleep-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.dark .nutrition-sleep-input:focus {
    background: rgba(99, 102, 241, 0.06);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Hover efekti — hücreye fare geldiğinde */
.nutrition-sleep-input:hover:not(:focus) {
    border-color: #c7c7cc;
}

.dark .nutrition-sleep-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.12);
}

/* ================================================ */
/* RESPONSIVE                                       */
/* Farklı ekran boyutları için uyarlamalar           */
/* ================================================ */

/* Tablet — 1024px altı */
@media (max-width: 1024px) {
    .nutrition-table-wrapper {
        padding: 0.75rem;
    }

    .nutrition-textarea {
        min-height: 80px;
        padding: 0.5rem 0.6rem;
        font-size: 0.78rem;
    }

    .nutrition-th {
        padding: 0.75rem 0.5rem;
        font-size: 0.72rem;
    }

    .nutrition-td {
        padding: 0.3rem;
    }

    .nutrition-meal-label {
        font-size: 0.78rem;
        gap: 0.5rem;
    }

    .nutrition-meal-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .nutrition-th-corner {
        width: 120px;
        min-width: 120px;
    }

    /* Uyku inputları tablet boyutunda küçült */
    .nutrition-sleep-input {
        padding: 0.35rem 0.4rem;
        font-size: 0.75rem;
    }

    .nutrition-sleep-cell {
        gap: 0.4rem;
        padding: 0.25rem;
    }

    .nutrition-sleep-label {
        font-size: 0.6rem;
    }
}

/* Mobil — 768px altı */
@media (max-width: 768px) {

    /* Mobilde tablo yatay kaydırılabilir */
    .nutrition-table {
        min-width: 800px;
    }

    .nutrition-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .nutrition-btn {
        width: 100%;
        justify-content: center;
    }

    .nutrition-info-card {
        padding: 1rem;
    }

    .nutrition-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    /* Uyku inputları mobilde taşmayı önle */
    .nutrition-sleep-input {
        padding: 0.35rem 0.3rem;
        font-size: 0.72rem;
        min-width: 0;
    }

    .nutrition-sleep-cell {
        gap: 0.35rem;
        padding: 0.2rem;
    }

    .nutrition-sleep-label {
        font-size: 0.58rem;
        gap: 0.2rem;
    }
}

/* Küçük mobil — 480px altı */
@media (max-width: 480px) {
    .nutrition-table {
        min-width: 750px;
    }

    .nutrition-textarea {
        min-height: 70px;
        font-size: 0.75rem;
    }

    .nutrition-th-corner {
        width: 100px;
        min-width: 100px;
    }

    /* Uyku inputları küçük mobilde daha kompakt */
    .nutrition-sleep-input {
        padding: 0.3rem 0.25rem;
        font-size: 0.7rem;
        border-radius: 0.4rem;
    }

    .nutrition-sleep-label {
        font-size: 0.55rem;
    }
}

/* ================================================ */
/* WORKOUT PAGE                                     */
/* Antrenman programı oluşturma ana stilleri        */
/* ================================================ */

/* Üst Bilgi Kartı */
.workout-info-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

    .workout-info-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, var(--primary), var(--accent));
        opacity: 0.6;
    }

.workout-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.workout-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .workout-label {
    color: var(--text-muted-dark);
}

.workout-input {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.dark .workout-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-dark);
    color: white;
}

.workout-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Antrenman Kartları Grid - Her gün bir satır (User Request) */
.workout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* WORKOUT CARD */
.workout-day-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    min-height: 200px;
    position: relative;
}

.dark .workout-day-card {
    border-color: var(--border-dark);
}

.workout-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
}

.workout-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.workout-day-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .workout-day-title {
    background: linear-gradient(135deg, white, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
}

.workout-day-badge {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* EXERCISE ITEM */
.exercise-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.exercise-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideInUp 0.3s ease-out forwards;
    transition: var(--transition);
}

.dark .exercise-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-dark);
}

.exercise-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.exercise-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exercise-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-remove-exercise {
    color: #ef4444;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    opacity: 0.5;
}

    .btn-remove-exercise:hover {
        opacity: 1;
        background: rgba(239, 68, 68, 0.1);
    }

.exercise-controls {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.25rem;
}

.dark .exercise-controls {
    border-top-color: var(--border-dark);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .control-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.control-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted-light);
    letter-spacing: 0.05em;
}

.dark .control-label {
    color: var(--text-muted-dark);
}

.control-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 0.6rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    outline: none;
}

.dark .control-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-dark);
    color: white;
}

.control-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* ADD BUTTON */
.add-exercise-btn {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--border-light);
    border-radius: 1rem;
    color: var(--text-muted-light);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    background: transparent;
}

.dark .add-exercise-btn {
    border-color: var(--border-dark);
    color: var(--text-muted-dark);
}

.add-exercise-btn:hover {
    border-style: solid;
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

/* EXERCISE SELECTOR MODAL */
.exercise-selector-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.exercise-selector-panel {
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.selector-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.dark .selector-header {
    border-color: var(--border-dark);
}

.close-selector {
    color: var(--text-muted-light);
    transition: var(--transition);
}

    .close-selector:hover {
        color: #ef4444;
    }

.selector-search {
    padding: 1rem 1.5rem;
}

.search-input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.dark .search-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-dark);
    color: white;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.exercise-options {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1.5rem;
}

.exercise-option {
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

    .exercise-option:hover {
        background: rgba(124, 58, 237, 0.1);
        color: var(--primary);
    }

.selector-footer {
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-light);
}

.dark .selector-footer {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-dark);
}

/* BUTTONS */
.workout-btn-clear {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .workout-btn-clear:hover {
        background: #ef4444;
        color: white;
    }

/* ANIMATIONS */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hidden {
    display: none;
}

/* Custom Scrollbar for Selector */
.exercise-options::-webkit-scrollbar {
    width: 6px;
}

.exercise-options::-webkit-scrollbar-track {
    background: transparent;
}

.exercise-options::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}

.dark .exercise-options::-webkit-scrollbar-thumb {
    background: var(--border-dark);
}


/* ================================================ */
/* BLOG PAGE                                        */
/* Blog yönetimi sayfasının ana stilleri             */
/* ================================================ */

.blog-management-container {
    padding-bottom: 2rem;
}

.view-hidden {
    display: none !important;
}

/* Sayfa geçiş animasyonu */
.view-transition {
    animation: slideUpFade 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================ */
/* BLOG CARD                                        */
/* Blog listesi için modern kart tasarımı            */
/* ================================================ */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dark .blog-card {
    background: var(--bg-card-dark);
    border-color: var(--border-dark);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.dark .blog-card:hover {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .blog-card-title {
    color: var(--text-dark);
}

.blog-card-preview {
    font-size: 0.9rem;
    color: var(--text-muted-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .blog-card-preview {
    color: var(--text-muted-dark);
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag-pill {
    padding: 0.25rem 0.75rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark .blog-card-footer {
    border-top-color: var(--border-dark);
}

.blog-card-date {
    font-size: 0.75rem;
    color: var(--text-muted-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dark .blog-card-date {
    color: var(--text-muted-dark);
}

.blog-card-actions {
    display: flex;
    gap: 0.5rem;
}

.blog-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .blog-action-btn {
    border-color: var(--border-dark);
    color: var(--text-muted-dark);
}

.blog-action-btn:hover {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: var(--primary);
}

.blog-action-btn.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

/* ================================================ */
/* BLOG EDITOR                                      */
/* Blog oluşturma arayüzü stilleri                  */
/* ================================================ */

.blog-editor-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-editor-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.blog-title-input {
    font-size: 2rem;
    font-weight: 800;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    padding: 0.5rem 1.5rem;
    outline: none;
    color: var(--text-light);
    width: 100%;
    transition: all 0.3s ease;
}

.dark .blog-title-input {
    color: var(--text-dark);
}

.blog-title-input:focus {
    border-left-color: var(--primary);
    background: rgba(124, 58, 237, 0.03);
}

.blog-content-area {
    min-height: 400px;
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.dark .blog-content-area {
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.blog-content-area:focus {
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(124, 58, 237, 0.1);
}

/* ================================================ */
/* TAG SELECTOR                                     */
/* Çoklu etiket seçme bileşeni                       */
/* ================================================ */

.tag-selector-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
}

.dark .tag-selector-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-dark);
}

.tag-option {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dark .tag-option {
    border-color: var(--border-dark);
    color: var(--text-muted-dark);
}

.tag-option:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tag-option.selected {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ================================================ */
/* ACTION BUTTONS                                   */
/* Alt kısımdaki aksiyon butonları                  */
/* ================================================ */

.blog-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.dark .blog-footer-actions {
    border-top-color: var(--border-dark);
}

.btn-add-blog-main {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .btn-add-blog-main:hover {
        transform: scale(1.02) translateY(-4px);
        box-shadow: 0 15px 35px -5px var(--primary-glow);
    }

    .btn-add-blog-main:active {
        transform: scale(0.98);
    }

.indicator-badge {
    padding: 0.4rem 0.8rem;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ================================================ */
/* FORM PAGE STYLES                                 */
/* Modern, clean, and professional admin panel forms */
/* ================================================ */

/* Page Header */
.form-header {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

    .form-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 2px;
    }

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* FORM SECTIONS */
.form-section {
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.dark .form-section {
    background: var(--bg-card-dark);
    border-color: var(--border-dark);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

    .form-section-title i {
        width: 20px;
        height: 20px;
    }

/* GRID SYSTEM */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* INPUT STYLES */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.8;
}

    .form-label .required {
        color: #ef4444;
    }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: var(--text-light);
    outline: none;
    transition: all 0.2s ease;
}

.dark .form-control {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background: #fff;
}

.dark .form-control:focus {
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* TEXTAREA */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.textarea-large {
    min-height: 200px;
}

/* CUSTOM MULTI-SELECT/TAGS */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    min-height: 46px;
}

.dark .tag-input-container {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tag-remove {
    cursor: pointer;
    font-weight: bold;
}

/* BUTTONS */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
}

.dark .form-actions {
    background: var(--bg-card-dark);
    border-color: var(--border-dark);
}

.btn-form {
    padding: 0.85rem 1.75rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

    .btn-save:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
    }

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.dark .btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.dark .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
    margin-right: auto;
}

.dark .btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.btn-delete:hover {
    background: #fecaca;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .form-actions {
        flex-direction: column-reverse;
        position: relative;
        bottom: 0;
        gap: 0.75rem;
    }

    .btn-form {
        width: 100%;
        justify-content: center;
    }

    .btn-delete {
        margin-right: 0;
    }
}