/**
 * Bootstrap benzeri yardımcı sınıflar — Bootstrap kaldırıldı, projede kullanılan stiller burada.
 * Grid, flex, spacing, buton, form, modal, dropdown, tablo ve yardımcı sınıflar.
 */

/* ========== Grid & Container ========== */
.container { width: 100%; max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 12px; padding-right: 12px; }
.container-fluid { width: 100%; padding-left: 12px; padding-right: 12px; }
.row { display: flex; flex-wrap: wrap; margin-left: -6px; margin-right: -6px; }
.row > * { padding-left: 6px; padding-right: 6px; box-sizing: border-box; }

/* Cols */
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
}
@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  .d-md-flex { display: flex !important; }
  .d-md-table-header-group { display: table-header-group !important; }
}
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-xl-9 { flex: 0 0 auto; width: 75%; }
  .pl-lg-0 { padding-left: 0 !important; }
}

/* Gap */
.g-2 { gap: 0.5rem; }
.g-3 { gap: 1rem; }

/* ========== Display ========== */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }

/* ========== Flex align / justify ========== */
.align-items-center { align-items: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }

/* ========== Spacing ========== */
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.position-relative { position: relative !important; }
.overflow-hidden { overflow: hidden !important; }

/* ========== Buttons ========== */
.btn { display: inline-block; font-weight: 500; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; user-select: none; border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out; }
.btn:focus { outline: 0; }
.btn-primary { color: #fff; background-color: var(--primary, #5121DF); border-color: var(--primary, #5121DF); }
.btn-primary:hover { background-color: #4520c7; border-color: #4520c7; color: #fff; }
.btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; border-color: #545b62; color: #fff; }
.btn-outline-light { color: #f8f9fa; border-color: #f8f9fa; background-color: transparent; }
.btn-outline-light:hover { color: #000; background-color: #f8f9fa; border-color: #f8f9fa; }
.btn-info { color: #fff; background-color: #0dcaf0; border-color: #0dcaf0; }
.btn-info:hover { color: #000; background-color: #31d2f2; border-color: #25cff2; }
.btn-outline-info { color: #0dcaf0; border-color: #0dcaf0; background-color: transparent; }
.btn-outline-info:hover { color: #000; background-color: #0dcaf0; border-color: #0dcaf0; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; }
.btn-xs { padding: 0.15rem 0.4rem; font-size: 0.75rem; border-radius: 0.2rem; }

/* ========== Forms ========== */
.form-control { display: block; width: 100%; padding: 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; background-color: #fff; border: 1px solid #ced4da; border-radius: 0.25rem; }
.form-control:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); }
.form-control-sm { min-height: calc(1.5em + 0.5rem + 2px); padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; }
.form-select { display: block; width: 100%; padding: 0.375rem 2rem 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #212529; background-color: #fff; border: 1px solid #ced4da; border-radius: 0.25rem; appearance: auto; }
.form-select-sm { padding: 0.25rem 2rem 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; }
.form-group { margin-bottom: 1rem; }
.input-group { display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group .form-control { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group .btn { position: relative; z-index: 2; }

/* ========== Modal ========== */
body.modal-open { overflow: hidden; }
.modal { position: fixed; top: 0; left: 0; z-index: 1055; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; display: none; }
.modal.show { display: block !important; }
.modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1050; width: 100vw; height: 100vh; background-color: #000; opacity: 0.5; }
.modal-backdrop.fade { transition: opacity 0.15s linear; }
.modal-backdrop.show { opacity: 0.5; }
.modal-dialog { position: relative; width: auto; max-width: 500px; margin: 1.75rem auto; pointer-events: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.modal-dialog-centered .modal-dialog { margin: 1.75rem auto; }
.modal-lg { max-width: 800px; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; background-color: var(--body-bg, #0f0522); background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: 0.5rem; }
.modal-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid rgba(0,0,0,.175); border-top-left-radius: calc(0.5rem - 1px); border-top-right-radius: calc(0.5rem - 1px); }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; justify-content: flex-end; padding: 0.75rem; border-top: 1px solid rgba(0,0,0,.175); border-bottom-right-radius: calc(0.5rem - 1px); border-bottom-left-radius: calc(0.5rem - 1px); gap: 0.5rem; }
.modal-title { margin-bottom: 0; line-height: 1.5; }
.btn-close { box-sizing: content-box; width: 1em; height: 1em; padding: 0.25em; color: #000; background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat; border: 0; border-radius: 0.25rem; opacity: 0.5; cursor: pointer; }
.btn-close:hover { opacity: 0.75; }
.btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); }

/* ========== Dropdown ========== */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; z-index: 1000; display: none; min-width: 10rem; padding: 0.5rem 0; margin: 0; font-size: 1rem; color: #212529; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.15); border-radius: 0.25rem; box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15); }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; width: 100%; padding: 0.25rem 1rem; clear: both; font-weight: 400; color: #212529; text-align: inherit; text-decoration: none; white-space: nowrap; background-color: transparent; border: 0; }
.dropdown-item:hover { background-color: #e9ecef; }
.nav-link.dropdown-toggle { cursor: pointer; }
.langSelect .dropdown-menu { background-color: var(--body-bg, #1a1a1a); border-color: rgba(255,255,255,.1); }
.langSelect .dropdown-item { color: var(--white-color, #fff); }
.langSelect .dropdown-item:hover { background-color: rgba(255,255,255,.1); }

/* ========== Badge ========== */
.badge { display: inline-block; padding: 0.35em 0.65em; font-size: 0.75em; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; }
.bg-secondary { background-color: #6c757d !important; }
.bg-info { background-color: #0dcaf0 !important; color: #000 !important; }
.bg-primary { background-color: var(--primary, #5121DF) !important; color: #fff !important; }

/* ========== Alert ========== */
.alert { position: relative; padding: 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.25rem; }
.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }

/* ========== Table ========== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; margin-bottom: 1rem; vertical-align: top; border-collapse: collapse; }
.table th, .table td { padding: 0.5rem; vertical-align: middle; border-bottom: 1px solid #dee2e6; }
.table thead th { vertical-align: bottom; font-weight: 600; }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,.05); }
.table-bordered { border: 1px solid #dee2e6; }
.table-bordered th, .table-bordered td { border: 1px solid #dee2e6; }
.table-hover tbody tr:hover { background-color: rgba(0,0,0,.075); }

/* ========== Utilities ========== */
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
.text-muted { color: #6c757d !important; }
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }
.lead { font-size: 1.25rem; font-weight: 300; }
.fw-bold { font-weight: 700 !important; }
.small { font-size: 0.875em; }
.border-0 { border: 0 !important; }
.float-right { float: right; }

/* Modal header renkleri (sayfa içi kullanım) */
.modal-header.bg-info { background-color: #0dcaf0 !important; color: #000 !important; border-bottom-color: rgba(0,0,0,.1); }
.modal-header.bg-info .modal-title { color: #000 !important; }
.modal-header.bg-primary { background-color: var(--primary, #5121DF) !important; color: #fff !important; }
.modal-header.bg-primary .modal-title { color: #fff !important; }
