/* Nexora Lisans Merkezi — temel bileşenler (harici kütüphane gerektirmez). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { line-height: 1.25; margin: 0 0 .5rem; }
.h5 { font-size: 1.1rem; font-weight: 800; }
p { margin: 0 0 1rem; }
a { color: var(--nx-primary); }
img, svg { vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
small, .small { font-size: .85em; }
:focus-visible { outline: 2px solid var(--nx-primary); outline-offset: 2px; }

/* yardımcılar */
.d-block { display: block !important; } .d-inline { display: inline !important; } .d-flex { display: flex !important; }
.w-100 { width: 100% !important; } .m-0 { margin: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem !important; } .mb-2 { margin-bottom: .5rem !important; } .mb-3 { margin-bottom: 1rem !important; }
.mt-2 { margin-top: .5rem !important; } .mt-3 { margin-top: 1rem !important; } .me-1 { margin-right: .3rem !important; } .me-auto { margin-right: auto !important; }
.text-end { text-align: right !important; } .text-center { text-align: center !important; } .text-danger { color: var(--nx-red) !important; } .text-warning-emphasis { color: var(--nx-amber) !important; }
@media (min-width: 992px) { .d-lg-none { display: none !important; } }

/* düğmeler */
.btn { --b-bg: var(--nx-surface); --b-fg: var(--nx-ink); --b-bd: var(--nx-line); align-items: center; background: var(--b-bg); border: 1px solid var(--b-bd); border-radius: 10px; color: var(--b-fg); cursor: pointer; display: inline-flex; font-size: .88rem; font-weight: 600; gap: .1rem; justify-content: center; line-height: 1.4; padding: .48rem .95rem; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s, filter .15s; user-select: none; white-space: nowrap; }
.btn:hover { filter: brightness(.96); color: var(--b-fg); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn-primary { --b-bg: var(--nx-primary); --b-bd: var(--nx-primary); --b-fg: #fff; }
.btn-success { --b-bg: var(--nx-green); --b-bd: var(--nx-green); --b-fg: #fff; }
.btn-danger { --b-bg: var(--nx-red); --b-bd: var(--nx-red); --b-fg: #fff; }
.btn-light { --b-bg: var(--nx-gray-soft); --b-bd: var(--nx-gray-soft); }
.btn-outline-primary { --b-fg: var(--nx-primary); --b-bd: color-mix(in srgb, var(--nx-primary) 45%, transparent); }
.btn-outline-primary:hover { --b-bg: var(--nx-primary-soft); filter: none; }
.btn-outline-danger { --b-fg: var(--nx-red); --b-bd: color-mix(in srgb, var(--nx-red) 45%, transparent); }
.btn-outline-danger:hover { --b-bg: var(--nx-red-soft); filter: none; }
.btn-link { --b-bg: transparent; --b-bd: transparent; --b-fg: var(--nx-primary); padding-left: .5rem; padding-right: .5rem; }
.btn-link:hover { --b-bg: var(--nx-primary-soft); filter: none; }
.btn-link.text-danger:hover { --b-bg: var(--nx-red-soft); }
.btn-sm { border-radius: 8px; font-size: .8rem; padding: .3rem .65rem; }
.btn-lg { border-radius: 12px; font-size: 1rem; padding: .7rem 1.2rem; }
[data-bs-theme="dark"] .btn-primary, [data-bs-theme="dark"] .btn-success, [data-bs-theme="dark"] .btn-danger { --b-fg: #0d1120; }
.btn-close { background: none; border: 0; border-radius: 8px; color: var(--nx-muted); cursor: pointer; height: 2rem; position: relative; width: 2rem; }
.btn-close::before, .btn-close::after { background: currentColor; border-radius: 2px; content: ""; height: 2px; left: 25%; position: absolute; top: 50%; width: 50%; }
.btn-close::before { transform: rotate(45deg); } .btn-close::after { transform: rotate(-45deg); }
.btn-close:hover { background: var(--nx-gray-soft); color: var(--nx-ink); }

/* form */
.form-control, .form-select { appearance: none; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 10px; color: var(--nx-ink); display: block; font-size: .9rem; line-height: 1.45; padding: .5rem .75rem; transition: border-color .15s, box-shadow .15s; width: 100%; }
textarea.form-control { min-height: 2.4rem; resize: vertical; }
.form-control::placeholder { color: color-mix(in srgb, var(--nx-muted) 75%, transparent); }
.form-control:focus, .form-select:focus { border-color: var(--nx-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-primary) 18%, transparent); outline: 0; }
.form-control-lg { border-radius: 12px; font-size: 1rem; padding: .7rem .9rem; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); background-position: right .75rem center; background-repeat: no-repeat; background-size: 12px; padding-right: 2.2rem; }
input[type="file"].form-control { padding: .4rem .6rem; }
.form-check-input { accent-color: var(--nx-primary); cursor: pointer; height: 1.05rem; margin: 0; width: 1.05rem; }
.form-label { display: block; }

/* tablo */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { border-collapse: collapse; color: inherit; width: 100%; }
.table th { text-align: left; }
.table td { border-top: 1px solid var(--nx-line); }

/* modal */
.modal { display: none; inset: 0; overflow-y: auto; padding: 1rem; position: fixed; z-index: 1050; }
.modal.show { display: flex; }
.modal-dialog { margin: auto; max-width: 520px; width: 100%; }
.modal-sm { max-width: 380px; }
.modal-content { animation: nx-pop .16s ease-out; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 16px; box-shadow: 0 30px 80px rgba(10, 15, 30, .3); display: flex; flex-direction: column; }
.modal-header { align-items: center; border-bottom: 1px solid var(--nx-line); display: flex; justify-content: space-between; padding: .9rem 1.1rem; }
.modal-title { margin: 0; }
.modal-body { padding: 1rem 1.1rem; }
.modal-body > .field + .field { margin-top: .7rem; }
.modal-footer { align-items: center; border-top: 1px solid var(--nx-line); display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; padding: .8rem 1.1rem; }
.modal-backdrop { animation: nx-fade .16s; background: rgba(10, 15, 30, .5); inset: 0; position: fixed; z-index: 1040; }
body.modal-open { overflow: hidden; }
@keyframes nx-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes nx-fade { from { opacity: 0; } }
