/**
 * ==========================================
 * YARDIMCI SINIFLAR (Utility Classes)
 * Düzen, boşluk, hizalama ve görünürlük
 * ==========================================
 */

/* ========== 1. DISPLAY & GÖRÜNÜRLÜK ========== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }

/* Gizleme (Javascript ile açılacaklar için) */
.initially-hidden { display: none; }
.invisible { visibility: hidden !important; }

/* ========== 2. ESNEK KUTU (FLEXBOX) YARDIMCILARI ========== */
.flex-1 { flex: 1 !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }

/* ========== 3. HİZALAMA (TEXT) ========== */
.text-center { text-align: center !important; }
.text-left, .text-start { text-align: left !important; }
.text-right, .text-end { text-align: right !important; }
.text-nowrap { white-space: nowrap !important; }
.text-upper { text-transform: uppercase !important; }
.text-cap { text-transform: capitalize !important; }

/* ========== 4. BOŞLUKLAR (MARGIN & PADDING) ========== */
/* Sıfırlama */
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }

/* Margin Alt (Bottom) */
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 24px !important; }

/* Margin Üst (Top) */
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 24px !important; }

/* Padding Genel */
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.p-5 { padding: 24px !important; }

/* ========== 5. GENİŞLİK (WIDTH) ========== */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }
.w-auto { width: auto !important; }

/* Özel Genişlikler (Legacy Support) */
.w-40 { width: 40px !important; }
.w-80 { width: 80px !important; }
.min-w-100 { min-width: 100px !important; }

/* ========== 6. ARKA PLANLAR ========== */
.bg-white { background-color: #ffffff !important; }
.bg-light { background-color: #f8fafc !important; }
.bg-transparent { background-color: transparent !important; }

.bg-primary-soft { background-color: var(--by-primary-soft) !important; color: var(--by-primary-dark) !important; }
.bg-success-soft { background-color: var(--by-success-soft) !important; color: #14532d !important; }
.bg-danger-soft { background-color: var(--by-danger-soft) !important; color: #7f1d1d !important; }
.bg-warning-soft { background-color: var(--by-warning-soft) !important; color: #78350f !important; }

/* ========== 7. UYARI KUTULARI (ALERTS) ========== */
/* Modern Alert Yapısı */
.alert {
    padding: 12px 16px;
    border-radius: var(--by-radius-md);
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: var(--by-success-soft);
    border-color: #bbf7d0;
    color: #15803d;
}

.alert-danger {
    background-color: var(--by-danger-soft);
    border-color: #fecaca;
    color: #b91c1c;
}

.alert-warning {
    background-color: var(--by-warning-soft);
    border-color: #fde68a;
    color: #b45309;
}

.alert-info {
    background-color: var(--by-info-soft);
    border-color: #bae6fd;
    color: #0369a1;
}

/* Sol Kenarı Çizgili Kutular (Eski stili desteklemek için) */
.info-box-left-border {
    padding: 12px;
    background: #ffffff;
    border-left: 4px solid var(--by-primary);
    border-radius: 4px;
    box-shadow: var(--by-shadow-sm);
    margin-bottom: 15px;
}
.info-box-left-border.success { border-left-color: var(--by-success); background: var(--by-success-soft); }
.info-box-left-border.danger { border-left-color: var(--by-danger); background: var(--by-danger-soft); }

/* ========== 8. İMLEÇ (CURSOR) ========== */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }