/* =================================================-------------------------
   D-PILATES FRONTEND GRID & DİNAMİK KATMAN SİSTEMİ (PRICING-BOX-2 SÜRÜMÜ)
   ================================================================---------- */
   .dataTables_wrapper {
    width: 100% !important;
    overflow-x: auto !important; /* Sığmayan tabloları kendi içinde yatay kaydırır */
    -webkit-overflow-scrolling: touch !important; /* Mobilde pürüzsüz parmak kaydırması */
}
.dp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    padding: 20px 0;
}

/* 
   Kutu Kenarlık ve Taşma Kontrolü (12px pürüzsüz köşeler)
*/
.pricing-box-2 {
    border-radius: 12px !important; 
    overflow: hidden !important; 
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 
   1. ADIM: TEMANIN ALTTAN SIZAN TÜM KIRMIZI/MOR HOVER RENKLERİNİ SIFIRLIYORUZ
*/
.pricing-box-2 .rt-background-img::before,
.pricing-box-2 .rt-background-img::after,
.pricing-box-2:hover .rt-background-img::before,
.pricing-box-2:hover .rt-background-img::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* 
   2. ADIM: SABİT SİYAH FİLİGRAN (Normal Durumda %80 Koyu)
   (Dizayn güncellemesi: Gündüz/Gece yumuşak geçiş için transition eklendi)
*/
.pricing-box-2::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.80) !important; /* %80 SABİT KOYULUK */
    background-image: none !important;
    transition: background-color 0.4s ease, opacity 0.4s ease !important; /* Geçiş yumuşatıldı */
    z-index: 1 !important;
}

/* 
   Üzerine gelindiğinde (Hover) - Karanlık Maskeyi %20'ye düşürüyoruz! (Sihirli Kısım)
*/
.pricing-box-2:hover::before {
    background-color: rgba(0, 0, 0, 0.30) !important; /* KOYULUK %20'YE DÜŞTÜ */
}

/* 
   3. ADIM: DİNAMİK RENKLİ HOVER ÖRTÜSÜ (::after - Sadece üzerine gelince aktif olur)
*/
.pricing-box-2::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: var(--dp-overlay-color) !important; /* Bizim özel renk */
    background-image: none !important;
    opacity: 0 !important; /* Normalde görünmez */
    transition: opacity 0.4s ease !important;
    z-index: 1.5 !important;
}

/* Üzerine gelindiğinde özel rengimizi %55 transparanlıkla parlat */
.pricing-box-2:hover::after {
    opacity: 0.55 !important; /* Koyu zemin %20'ye düştüğü için bu renk mükemmel parlayacak */
}

/* 
   4. ADIM: Yazıların ve butonun her zaman en üst katmanda parlamasını sağlıyoruz
*/
.pricing-box-2 .item-content {
    position: relative !important;
    z-index: 2 !important; /* En üst katman */
}

.pricing-box-2 .rt-background-img {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 0 !important;
}

/* ==========================================================================
   ÜYE GİRİŞ & KAYIT SİSTEMİ STİLLERİ (YENİ SADE & CAM EFEKTLİ KART SÜRÜMÜ)
   ================================================================---------- */

/* Tam Ekran Arka Planlı Kapsayıcı (Bizim attığımız login-back.webp arka planı) */
.dp-auth-page-wrapper {
    /* Resmin üzerine doğrudan %55 siyah filigran (gradient) çaktık */
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('https://dpilates.com.tr/wp-content/uploads/2026/07/login-back.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
/* Siteye Geri Dön Linki Stili */
.dp-auth-back-link {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.dp-auth-back-link:hover {
    color: #ffffff !important;
}

/* Cam Efektli Tek Kart (Genişletilmiş ve Ferahlatılmış Sürüm) */
.dp-auth-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 380px !important; /* Genişliği doğrudan 480px'e kilitledik (büzüşmeyi önler) */
    max-width: 90vw !important; /* Mobilde ekrandan taşmaması için esneklik sınırı */
    padding: 45px !important; /* Kart içi boşluk */
    box-sizing: border-box !important;
    transition: 0.3s ease;
}

.dp-auth-title {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: bold !important;
    margin-bottom: 25px !important;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 15px !important;
}

.dp-auth-form-group {
    margin-bottom: 20px;
}

.dp-auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.dp-auth-form-group input {
    width: 100% !important;
    padding: 14px !important; /* Giriş kutuları dikeyde ferahlatıldı */
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    box-sizing: border-box;
    font-size: 14px;
    transition: 0.2s;
}

.dp-auth-form-group input:focus {
    border-color: var(--dp-accent-color) !important;
    outline: none;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Giriş/Kayıt Butonu */
.dp-auth-btn {
    width: 100% !important;
    background-color: var(--dp-accent-color) !important; /* Bizim mor renk */
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important; /* Dikey genişlik ferahlatıldı */
    border-radius: 8px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(74, 59, 214, 0.4) !important; /* Mor asil bir gölge (Belirginlik katar) */
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s !important;
    margin-top: 15px !important;
}

.dp-auth-btn:hover {
    opacity: 0.95 !important;
    transform: translateY(-1px) !important; /* Üzerine gelince hafif yukarı kalkma efekti */
    box-shadow: 0 6px 20px rgba(74, 59, 214, 0.6) !important; /* Gölge parlar */
}

.dp-auth-btn:active {
    transform: translateY(0) !important;
}

/* Hata Mesajı Kutusu */
.dp-auth-alert {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: center;
}

.dp-auth-alert-danger {
    background-color: rgba(231, 76, 60, 0.2) !important;
    color: #ff7675 !important;
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
}

/* Loader Stili (Canlı sitede de dönmesi için) */
.dp-loader-wrapper {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}
.dp-loader-wrapper.active { display: flex; }
.dp-loader-spinner { width: 50px; height: 50px; border: 5px solid rgba(255, 255, 255, 0.2); border-radius: 50%; border-top-color: var(--dp-accent-color); animation: dpspin 0.8s linear infinite; }
@keyframes dpspin { to { transform: rotate(360deg); } }

/* ==========================================================================
   BLOK 15: ÜYE PORTALI (TERTEMİZ BEYAZ TASARIM - DÜZ BOOTSTRAP STİLİ)
   ================================================================---------- */

/* Arka Planı Bembeyaz Yapar ve Elementor Çakışmalarını Ezer */
.dp-clean-portal-wrapper {
    background-color: #f4f7f6 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
}

/* En Tepedeki Siyah Navbar */
.dp-clean-navbar {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #1d2327 !important; /* Koyu WP Siyahı */
    padding: 15px 40px !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dp-nav-left a { color: #ffffff !important; text-decoration: none !important; font-weight: bold !important; font-size: 15px !important; }
.dp-nav-center { color: #ffffff !important; font-size: 15px !important; font-weight: 500 !important; }

.dp-btn-logout, .dp-btn-danger { 
    background-color: #e74c3c !important; 
    color: #ffffff !important; 
    text-decoration: none !important; 
    padding: 8px 16px !important; 
    border-radius: 6px !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    border: none !important; 
    cursor: pointer; 
    display: inline-block;
    width: 100%;
    text-align: center;
}
.dp-btn-logout { width: auto; }
.dp-btn-logout:hover, .dp-btn-danger:hover { background-color: #c0392b !important; color: #ffffff !important; }

/* Ana Kapsayıcı ve Grid Sistemi */
.dp-clean-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.dp-clean-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
}

.dp-clean-col {
    flex: 1 1 calc(50% - 15px);
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

/* Tertemiz Beyaz Kartlar */
.dp-clean-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 30px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 30px;
}

.dp-warning-card {
    background: #fffcf5 !important;
    border: 1px solid #f1c40f !important;
}

.dp-clean-card-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #2d3436 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 2px solid #f4f7f6;
    padding-bottom: 15px;
}

.dp-clean-text {
    font-size: 14px !important;
    color: #4a5568 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.5 !important;
}

/* Cüzdan Barı */
.dp-wallet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dp-wallet-header h4 { font-size: 20px !important; font-weight: bold !important; color: #2d3436 !important; margin: 0 !important; }
.dp-badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: bold; color: white; }
.dp-badge-active { background: #2ecc71 !important; }
.dp-badge-frozen { background: #f1c40f !important; color: black !important; }
.dp-member-progress-container { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.dp-member-progress-bar { flex-grow: 1; height: 12px; background-color: #f1f2f6; border-radius: 6px; overflow: hidden; }
.dp-member-progress-fill { height: 100%; border-radius: 6px; }
.dp-member-progress-fill.green { background-color: #2ecc71 !important; }
.dp-member-progress-fill.orange { background-color: #e67e22 !important; }
.dp-member-progress-fill.red { background-color: #e74c3c !important; }

/* Tertemiz Tablolar */
.dp-table-responsive { overflow-x: auto; }
.dp-clean-table { width: 100%; border-collapse: collapse; background: transparent; }
.dp-clean-table th, .dp-clean-table td { padding: 15px; text-align: left; border-bottom: 1px solid #edf2f7 !important; color: #4a5568 !important; font-size: 14px !important; }
.dp-clean-table th { font-weight: bold !important; color: #2d3436 !important; background-color: #f8fafc !important; }
.dp-status-pill { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: bold; color: white; }
.dp-status-paid { background-color: rgba(46, 204, 113, 0.15) !important; color: #27ae60 !important; }


/* =================================================-------------------------
   FRONTEND MODAL (AÇILIR PENCERE) STİLLERİ
   ================================================================---------- */
.dp-modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Arka plan karartma */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.dp-modal.active {
    display: flex; /* Sadece tıklandığında görünür yap */
}

.dp-modal-content {
    background: var(--dp-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 30px;
    border-radius: 16px;
    animation: dp-animatemodal 0.3s;
    color: var(--dp-text-color);
}

.dp-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    transition: 0.2s;
}

.dp-modal-close:hover {
    color: #ffffff;
}

@keyframes dp-animatemodal {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Takvim İçi Isı Haritası Renkleri (SaaS Uyumluluğu) */
.dp-cal-event { padding: 4px 8px !important; border-radius: 6px !important; box-shadow: 0 2px 4px rgba(0,0,0,0.05); height: 100% !important; display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box !important; overflow: hidden !important; transition: 0.2s; }
.dp-heat-low { background-color: rgba(45, 49, 66, 0.9) !important; color: #fff !important; }
.dp-heat-medium { background-color: rgba(211, 84, 0, 0.9) !important; color: #fff !important; }
.dp-heat-high { background-color: rgba(192, 57, 43, 0.9) !important; color: #fff !important; }
.dp-heat-full { background-color: rgba(39, 174, 96, 0.9) !important; color: #fff !important; }
.dp-cal-title { font-weight: bold !important; font-size: 13px !important; margin-bottom: 4px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-cal-trainer, .dp-cal-room { font-size: 11px !important; opacity: 0.8; margin-bottom: 2px !important; }
.dp-cal-capacity { font-weight: bold !important; font-size: 11px !important; margin-top: 4px !important; }


/* =================================================-------------------------
   FRONTEND BEMBEYAZ MODAL & MODERN TOOLTIP (VİTRİN STİLLERİ)
   ================================================================---------- */

/* Bembeyaz Temiz Modal */
.dp-clean-modal {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    padding: 35px !important;
    border-radius: 16px !important;
    animation: dp-animatemodal 0.3s;
    color: #2d3436 !important;
}

.dp-clean-modal .dp-modal-close {
    position: absolute;
    color: #8b929c !important;
    top: 20px !important;
    right: 25px !important;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.dp-clean-modal .dp-modal-close:hover {
    color: #e74c3c !important;
}

@keyframes dp-animatemodal {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Modern Tooltip (Takvimde Üzerine Gelince) */
.dp-modern-tooltip {
    position: absolute;
    z-index: 999999 !important;
    background: #ffffff;
    color: #2d3436;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    pointer-events: none; /* Titremeyi engeller */
    width: 260px;
    font-size: 13px;
    line-height: 1.6;
    border-left: 4px solid var(--dp-accent-color);
}

.dp-modern-tooltip-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
    color: #2d3436;
}

.dp-modern-tooltip-time {
    color: #8b929c;
    font-size: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* =================================================-------------------------
   BİRİNCİL AKSİYON BUTONLARI (FRONTEND STANDART BUTONLARI - GARANTİLİ SÜRÜM)
   ================================================================---------- */
.dp-btn-primary {
    background-color: #ff0336 !important; /* DİREKT MOR RENK YAZILDI (Değişken kaldırıldı) */
    background-image: none !important; /* Temanın varsa gradyanlarını boğar */
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(74, 59, 214, 0.4) !important;
    text-shadow: none !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s !important;
    display: inline-block !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.dp-btn-primary:hover {
    background-color: #ff0336 !important; /* DİREKT KOYU MOR RENK */
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(74, 59, 214, 0.6) !important;
    text-decoration: none !important;
}

/* Kırmızı (İptal) Butonu İçin Zorlayıcı Ek Sınıf */
.cancel-booking-btn {
    background-color: #e74c3c !important; /* KIRMIZI */
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4) !important;
}

.cancel-booking-btn:hover {
    background-color: #c0392b !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6) !important;
}
/* ==========================================================================
   BLOK 16: MOBİL RESPONSIVE KALİBRASYONU (FRONTEND TAKVİM, PORTAL VE MODALLAR)
   ================================================================---------- */

/* Modalları Cep telefonlarında ekranın %92'sini kaplayacak şekilde esnetir */
.dp-clean-modal {
    width: 92% !important; 
    max-width: 500px !important; 
    box-sizing: border-box !important;
    transition: 0.3s ease;
}

/* Cep Telefonları İçin Tasarımsal Ayarlar */
@media (max-width: 768px) {
    
    /* MODAL PADDING'I 10px'E DÜŞÜRÜLDÜ VE KAPATMA TUŞU SIKIŞTIRILDI */
    .dp-clean-modal {
        padding: 15px 10px !important; /* Dikeyde 15, yatayda 10px iç boşluk */
        border-radius: 12px !important;
    }

    .dp-clean-modal .dp-modal-close {
        top: 10px !important;
        right: 15px !important;
        font-size: 24px !important; /* Butonu hafif küçülttük */
    }

    /* AKILLI TABLO KAYDIRMA VE YAZILARIN ALT ALTA BİNMESİNİ ENGELLEME */
    .dataTables_wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .dp-member-table th, 
    .dp-member-table td,
    .dp-table th,
    .dp-table td {
        white-space: nowrap !important; /* Yazıları tek satırda düz tutar (wrap yapmaz) */
    }

    /* 1. Portal Navbar Düzenleyici */
    .dp-portal-header {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 15px 20px !important;
        text-align: center !important;
    }

    /* 2. FullCalendar Mobil Düzenleyici */
    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .fc .fc-toolbar-title {
        font-size: 18px !important;
        font-weight: bold !important;
        text-align: center !important;
        margin-bottom: 5px !important;
    }

    .fc .fc-toolbar-chunk {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .fc .fc-button-group {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    .fc .fc-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        margin: 0 !important;
    }
}

/* =================================================-------------------------
   RESPONSIVE HİZALAYICI (Masaüstünde Yan Yana, Mobilde Alt Alta)
   ================================================================---------- */
.dp-flex-responsive {
    display: flex !important;
    gap: 10px !important;
}

@media (max-width: 768px) {
    .dp-flex-responsive {
        flex-direction: column !important; /* Mobilde alt alta dizer */
    }
    .dp-flex-responsive select,
    .dp-flex-responsive button {
        width: 100% !important; /* Mobilde her ikisini de tam genişlik yapar */
    }
}

/* =================================================-------------------------
   FRONTEND MODAL ŞEFFAFLIK ÖNLEYİCİ KALKAN (ZORUNLU)
   ================================================================---------- */
.modal-content {
    background-color: #ffffff !important; /* Arka plan kesinlikle bembeyaz olacak */
    opacity: 1 !important; /* Şeffaflık asla olmayacak */
    background: #ffffff !important;
}

/* Modaldaki yazıların siyah olmasını garanti eder */
.modal-title, 
#dp-booking-info p, 
#dp-booking-info h4 {
    color: #2d3436 !important; 
    opacity: 1 !important;
}
/* =================================================-------------------------
   BOOTSTRAP MODAL KİLİTLENME ÇÖZÜMÜ (HAYALET FİLİGRAN İPTALİ)
   ================================================================---------- */

/* Bootstrap'ın bela olan filigranını gizledik (Her ihtimale karşı CSS ile de eziyoruz) */
.modal-backdrop {
    display: none !important; 
}

/* Modala kendi güvenli karartmamızı ekledik (Tıklamayı engellemez!) */
.modal {
    background-color: rgba(0, 0, 0, 0.6) !important; /* Arka planı %60 karartır */
    z-index: 100000 !important; /* Her şeyin üstünde olmasını garanti eder */
}
/* ==========================================================================
   TEMA MARGİN OVERRIDE & SÜPER MİKRO MOBİL KALİBRASYONU
   ================================================================---------- */

/* Temanın table margini takvimi bozduğu için sadece takvim içindeki tabloları sıfırlıyoruz */
.fc table, 
.fc-scrollgrid {
    margin: 0 !important;
    border-collapse: collapse !important;
}

/* MOBİL GÖRÜNÜM İYİLEŞTİRMELERİ */
@media (max-width: 768px) {
    /* Dış çerçeve boşluğunu sıfırlayarak renkli kutumuzun dış sınırlara tam yaslanmasını sağlıyoruz */
    .fc-event > div {
        padding: 0px !important;
    }

    .fc-event span {
        font-size: 10px !important;
        line-height: 1.1 !important;
        letter-spacing: -0.2px !important;
        text-transform: none !important;
        display: inline-block !important;
        word-break: break-word !important;
    }
}
/* Gün başlıklarındaki sayıları kalın ve bir tık büyük yap */
.fc-col-header-cell-cushion {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #fe4ea7 !important;
    text-decoration: none !important;
}

/* Sol üst köşedeki Hafta Sayısının konumunu ve rengini kibarlaştır */
.fc .fc-timegrid-axis-cushion {
    font-weight: 900 !important;
    font-size: 13px !important;
    color: #2d3436 !important;
    text-align: center !important;
    width: 100% !important;
}
/* Saatlerin arasındaki o buçuklu (kesikli) çizgileri silerek saat kutularını bütünleştirir */
.fc-timegrid-slot-minor {
    border-top-style: none !important;
}
/* Ön panel dikey gün başlıkları */
.dp-custom-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1 !important;
    padding: 3px 0;
}
.dp-header-wday {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #8b929c !important;
    text-transform: capitalize;
    margin-bottom: 3px !important;
}
.dp-header-day {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #2d3436 !important;
}

/* Sol üstteki hafta sayısı takısı */
.fc .fc-timegrid-axis-cushion::before {
    content: "HF " !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

/* MOBİL SIKIŞMA ÇÖZÜMÜ: Mobilde kenar boşluğunu 25px'ten 8px'e düşürerek takvimi genişlet */
@media (max-width: 768px) {
    .dp-frontend-calendar-wrapper {
        padding: 8px !important;
    }
}
/* 1. MAVİ ARKA PLAN KİLİDİ (Ön Panel) */
.fc-event, 
.fc-v-event, 
.fc-timegrid-event, 
.fc-daygrid-event {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.fc-event-main {
    padding: 0 !important;
    background-color: transparent !important;
}

/* 2. SÜPER YATAY GENİŞLEME: Takvimi iki yana yaslar, sütunları tombul yapar */
@media (max-width: 768px) {
    /* Temanın, Elementor'un ve takvim sarıcısının boşluklarını sıfıra çek */
    .container, 
    .container-fluid, 
    .elementor-widget-container,
    .dp-frontend-calendar-wrapper {
        padding-left: 2px !important;
        padding-right: 2px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Kutu iç dolgusunu (padding) daraltarak harflere yatayda yer aç */
    .fc-event div[style*="padding: 6px 10px"] {
        padding: 4px 2px !important;
    }
}

/* Ders kutularını sütunlara sıfıra sıfır yaslayıp tombul yapar */
.fc-direction-ltr .fc-timegrid-col-events {
    margin: 0px !important;
}

.fc-timegrid-event {
    margin: 0px !important;
}

/* SweetAlert2 pop-up kalkanını her şeyin (buzlu cam ve elementor dahil) en üstüne çıkartır */
.swal2-container {
    z-index: 100010 !important;
}

/* Masaüstü ekranlarda bu yeni eklenen mobil menü elemanlarını tamamen gizle */
@media (min-width: 992px) {
    .dp-mobile-only-menu {
        display: none !important;
    }
}