/* MaunaUp CRM - Master Style Sheet 
    Tüm sayfalar için ortak tasarım dili
*/

/* 1. TEMEL AYARLAR */
:root {
    --primary-color: #0d6efd;
    --dark-color: #212529;
    --bg-light: #f4f7f6;
    --text-muted: #6c757d;
    --border-color: #eee;
    --sidebar-width: 260px;
}

body { 
    background-color: var(--bg-light); 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    overflow-x: hidden;
}

a { text-decoration: none !important; color: inherit !important; transition: 0.2s; }
a:hover { opacity: 0.8; }

/* 2. SIDEBAR SİSTEMİ */
.sidebar { 
    min-height: 100vh; 
    width: var(--sidebar-width); 
    background-color: var(--dark-color); 
    position: fixed; 
    top: 0; 
    left: 0; 
    z-index: 1000; 
}

.main-content { 
    margin-left: var(--sidebar-width); 
    padding: 2.5rem; 
    min-height: 100vh;
}

.sidebar a { color: #adb5bd !important; display: block; padding: 12px 20px; }
.sidebar a:hover, .sidebar a.active { color: #fff !important; background-color: #343a40; border-radius: 5px; }

/* 3. KART VE PANEL TASARIMLARI */
.card-custom { 
    background: #fff; 
    border-radius: 15px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    border: none; 
    padding: 1.5rem;
}

/* İstatistik Kartları (Dashboard) */
.card-stat { border-radius: 12px; border: none !important; }
.card-stat h3, .card-stat small { color: #fff !important; }

/* 4. MÜŞTERİ KARTLARI VE LOGO DİSİPLİNİ */
.client-card { 
    background: #fff; 
    border-radius: 15px; 
    border: none; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    transition: 0.3s;
}
.client-card.passive { opacity: 0.6; filter: grayscale(0.8); }

/* Müşteri Listesi (clients.php) Logo Kutusu */
.logo-box { 
    width: 60px !important; 
    height: 60px !important; 
    min-width: 60px;
    background: #fff; 
    border: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    border-radius: 10px;
    padding: 5px;
}

/* Müşteri Detay (client_detail.php) Logo Kutusu */
.header-logo { 
    width: 120px !important; 
    height: 120px !important; 
    min-width: 120px;
    background: #fff; 
    border: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Müşteri Resimlerinin Sünmesini ve Taşmasını Engelleme */
.logo-box img, .header-logo img { 
    max-width: 100% !important; 
    max-height: 100% !important; 
    object-fit: contain !important; /* Resmi bozmadan kutuya sığdırır */
    width: auto !important;
    height: auto !important;
}

/* 5. TABLO DÜZENLEMELERİ */
.table thead th { 
    background-color: #f8f9fa; 
    border: none; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 0.5px; 
}

/* 6. SOSYAL MEDYA VE İLETİŞİM */
.social-links a, .social-bar a { 
    color: var(--text-muted) !important; 
    font-size: 1.1rem; 
    margin-right: 8px;
}
.social-links a:hover, .social-bar a:hover { color: var(--primary-color) !important; }

/* 7. TAKVİM ÖZELLEŞTİRMELERİ (FullCalendar) */
#calendar { background: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.fc-event-title, .fc-event-main { color: #fff !important; font-weight: 600 !important; }
.fc-daygrid-day-number, .fc-col-header-cell-cushion { color: var(--dark-color) !important; }

/* 8. MODAL VE FORM AYARLARI */
.modal-content { border-radius: 20px; border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.form-control, .form-select { border-radius: 8px; padding: 10px; border: 1px solid #dee2e6; }
/* ==========================================
   Btn Metin Onarımı (Siyah Üzeri Beyaz Yazı)
   ========================================== */

/* Siyah butonların (btn-dark) içindeki yazıları beyaz yap */
.btn-dark, .btn-primary {
    color: #fff !important;
}

/* Butonun içindeki ikonları da beyaz yap */
.btn-dark i, .btn-primary i {
    color: #fff !important;
}

/* Üzerine gelindiğinde rengin korunması için */
.btn-dark:hover, .btn-primary:hover {
    color: #fff !important;
    opacity: 0.9;
}

/* Outline (içi boş) butonlarda yazının kendi renginde kalmasını sağla */
.btn-outline-primary, .btn-outline-dark {
    color: inherit !important; /* Bunlar çerçeve rengini kullanmaya devam etsin */
}
.btn-outline-primary:hover, .btn-outline-dark:hover {
    color: #fff !important; /* Üzerine gelince içi dolacağı için yazı beyaz olsun */
}