::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }
.swal2-container { z-index: 20000 !important; }
/* SweetAlert2 typography: keep consistent with dashboard (avoid oversized modal text) */
body.modern-dashboard-body .swal2-popup {
    font-size: 0.9375rem; /* 15px */
}

body.modern-dashboard-body .swal2-title {
    font-size: 1.25rem;
    line-height: 1.25;
}

body.modern-dashboard-body .swal2-html-container,
body.modern-dashboard-body .swal2-content {
    font-size: 0.9375rem;
    line-height: 1.45;
}

body.modern-dashboard-body .swal2-styled,
body.modern-dashboard-body .swal2-input,
body.modern-dashboard-body .swal2-textarea {
    font-size: 0.9375rem;
}

body.modern-dashboard-body .swal2-toast .swal2-title,
body.modern-dashboard-body .swal2-toast .swal2-html-container {
    font-size: 0.875rem;
}

/* List pages: keep table columns left-aligned for visual consistency */
.page-table-align-left table.table th,
.page-table-align-left table.table td {
    text-align: left !important;
}

.page-table-align-left table.table .text-end,
.page-table-align-left table.table .text-center {
    text-align: left !important;
}
.sms-log-mesaj { max-width: 520px; }

/* Global Font (force Inter everywhere, but do NOT override icon/mono fonts) */
*:not(.bx):not(.material-symbols-outlined):not(.material-icons):not(.material-icons-outlined):not(.material-icons-round):not(.lni):not(code):not(pre):not(kbd):not(samp):not(.font-mono):not(.font-monospace) {
    font-family: 'Inter', sans-serif !important;
}

body,
input,
button,
select,
textarea {
    font-family: 'Inter', sans-serif !important;
}

/* Protect icon font families from global overrides */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-icons {
    font-family: 'Material Icons' !important;
}

.material-icons-outlined {
    font-family: 'Material Icons Outlined' !important;
}

.material-icons-round {
    font-family: 'Material Icons Round' !important;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* legacy app.css sets letter-spacing: .5px which makes weights look inconsistent */
    letter-spacing: 0 !important;
}

/* Tailwind custom colors fallback (in case CDN config isn't applied) */
.bg-surface-light {
    background-color: #ffffff !important;
}

.bg-background-light {
    background-color: #f3f4f6 !important;
}

.dark .bg-surface-dark {
    background-color: #1e293b !important;
}

.dark .bg-background-dark {
    background-color: #0f172a !important;
}

/* Modern layout uses its own padding; avoid double padding from legacy template */
.page-content {
    padding: 0 !important;
}

/* Ensure footer stays visible in modern flex layout (avoid flex min-height issues) */
.modern-dashboard-body .overflow-auto {
    min-height: 0;
}

/* If any legacy footer is used, prevent fixed overlay in modern layout */
.page-footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 2rem;
}

/* Legacy breadcrumb look -> modern */
.page-breadcrumb {
    margin-bottom: 1.5rem !important;
}

/* Modern pages use the shared page header (hide legacy breadcrumb blocks if header is present) */
body.modern-dashboard-body .app-has-page-header .page-breadcrumb {
    display: none !important;
}

.breadcrumb-title {
    font-weight: 700;
    color: #0f172a;
}

.dark .breadcrumb-title {
    color: #ffffff;
}

.breadcrumb {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Bootstrap heading helpers -> modern weight */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* Bootstrap muted text shouldn't look extra light due to letter spacing */
.text-muted {
    letter-spacing: 0 !important;
}

/* Form controls: inputs/selects/textarea should look consistent across pages */
.form-control,
.form-select {
    font-weight: 500;
    letter-spacing: 0 !important;
    border-radius: 10px;
    border-color: rgba(226, 232, 240, 0.9);
    color: #0f172a;
    background-color: #ffffff;
}

.dark .form-control,
.dark .form-select {
    border-color: rgba(71, 85, 105, 0.6);
    color: #e2e8f0;
    background-color: rgba(30, 41, 59, 0.65);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(243, 111, 33, 0.9);
    box-shadow: 0 0 0 0.2rem rgba(243, 111, 33, 0.18);
}

textarea.form-control {
    resize: vertical;
}

/* Date input: theme-consistent without breaking native picker */
.form-control[type="date"] {
    padding-right: 2.75rem;
    cursor: pointer;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    padding: 0.25rem;
    border-radius: 0.5rem;
    margin-right: 0.25rem;
    background-color: rgba(148, 163, 184, 0.18);
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.form-control[type="date"]:hover::-webkit-calendar-picker-indicator {
    opacity: 0.9;
    background-color: rgba(148, 163, 184, 0.26);
}

.dark .form-control[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.85;
    filter: invert(1);
    background-color: rgba(148, 163, 184, 0.12);
}

.dark .form-control[type="date"]:hover::-webkit-calendar-picker-indicator {
    opacity: 0.95;
    background-color: rgba(148, 163, 184, 0.18);
}

.form-control[type="date"]::-webkit-clear-button,
.form-control[type="date"]::-webkit-inner-spin-button {
    display: none;
}

/* Date inputs -> TR display (runtime enhanced) */
.app-date-iso-input {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.app-date-display {
    cursor: pointer;
}

/* App Date Picker (custom modal) */
.app-date-picker {
    position: fixed;
    inset: 0;
    z-index: 20010; /* above Bootstrap modals AND SweetAlert2 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.app-date-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
}

.app-date-picker__panel {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 1rem;
}

.dark .app-date-picker__panel {
    border-color: rgba(71, 85, 105, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.app-date-picker__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem 0.75rem;
}

.app-date-picker__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: #0f172a;
}

.dark .app-date-picker__title {
    color: #ffffff;
}

.app-date-picker__controls {
    display: flex;
    gap: 0.75rem;
    padding: 0 0.25rem 0.75rem;
}

.app-date-picker__select-wrap {
    position: relative;
    flex: 1;
}

.app-date-picker__select-wrap--year {
    flex: 0 0 120px;
}

.app-date-picker__select {
    padding-right: 2rem;
    border-radius: 12px;
    background-color: #f8fafc;
    border-color: rgba(226, 232, 240, 0.9);
    font-weight: 700;
}

.dark .app-date-picker__select {
    background-color: rgba(30, 41, 59, 0.65);
    border-color: rgba(71, 85, 105, 0.6);
}

.app-date-picker__select-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
}

.dark .app-date-picker__select-icon {
    color: #94a3b8;
}

.app-date-picker__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding: 0 0.25rem 0.5rem;
    text-transform: uppercase;
}

.dark .app-date-picker__weekdays {
    color: #64748b;
}

.app-date-picker__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem 0.25rem;
    padding: 0 0.25rem 0.75rem;
}

.app-date-picker__day {
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.dark .app-date-picker__day {
    color: #e2e8f0;
}

.app-date-picker__day:hover {
    background-color: rgba(148, 163, 184, 0.18);
}

.dark .app-date-picker__day:hover {
    background-color: rgba(148, 163, 184, 0.14);
}

.app-date-picker__day.is-outside {
    color: rgba(148, 163, 184, 0.6);
}

.dark .app-date-picker__day.is-outside {
    color: rgba(100, 116, 139, 0.9);
}

.app-date-picker__day.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.app-date-picker__day.is-selected {
    color: #ffffff;
    background-color: #f36f21;
    box-shadow: 0 10px 20px rgba(243, 111, 33, 0.25);
    transform: translateY(-1px);
}

.app-date-picker__day.is-today:not(.is-selected) {
    outline: 2px solid rgba(243, 111, 33, 0.65);
    outline-offset: 2px;
}

.app-date-picker__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.75rem 0.25rem 0.25rem;
    background-color: rgba(248, 250, 252, 0.8);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.dark .app-date-picker__footer {
    border-top-color: rgba(71, 85, 105, 0.6);
    background-color: rgba(30, 41, 59, 0.55);
}

.app-date-picker__today {
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    color: #f36f21;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.app-date-picker__today .material-symbols-outlined {
    font-size: 1rem;
}

.app-date-picker__today:hover {
    background-color: rgba(243, 111, 33, 0.1);
    color: #d35a1a;
}

/* -------------------------------------------------------------------------- */
/* Modern UI helpers (Bootstrap 기반)                                          */
/* Tailwind CDN kaldırıldığı için modern layout/components bu yardımcılarla    */
/* çalışır (dashboard-modern.js 'hidden', '-translate-x-full', 'rotate-90' vb. */
/* sınıfları toggle ediyor).                                                   */
/* -------------------------------------------------------------------------- */

.hidden {
    display: none !important;
}

.rotate-90 {
    transform: rotate(90deg);
}

.-translate-x-full {
    transform: translateX(-100%);
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.z-40 {
    z-index: 1040;
}

.z-50 {
    z-index: 1050;
}

/* Surfaces */
.modern-surface {
    background-color: #ffffff !important;
}

.dark .modern-surface {
    background-color: #1e293b !important;
}

.modern-surface-muted {
    background-color: #f8fafc !important;
}

.dark .modern-surface-muted {
    background-color: rgba(30, 41, 59, 0.65) !important;
}

.modern-border {
    border-color: rgba(226, 232, 240, 0.9) !important;
}

.dark .modern-border,
html.dark-theme .modern-border {
    border-color: rgba(71, 85, 105, 0.6) !important;
}

/* Dashboard body */
body.modern-dashboard-body {
    background-color: #f3f4f6;
    color: #475569;
}

.dark body.modern-dashboard-body {
    background-color: #0f172a;
    color: #cbd5e1;
    --bs-body-color: #cbd5e1;
    --bs-emphasis-color: #e2e8f0;
    --bs-secondary-color: rgba(203, 213, 225, 0.75);
    --bs-tertiary-color: rgba(203, 213, 225, 0.55);
}

/* Icon buttons */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    color: #64748b;
    background: transparent;
    border: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
    background-color: rgba(148, 163, 184, 0.18);
    color: #334155;
}

.dark .icon-btn {
    color: #94a3b8;
}

.dark .icon-btn:hover {
    background-color: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
}

/* Sidebar */
.sidebar-modern {
    width: 16rem;
}

/* -------------------------------------------------------------------------- */
/* Admin: Destek Talepleri (Chat UI)                                          */
/* -------------------------------------------------------------------------- */

.talep-ticket-header {
    background-color: #f8f9fa;
}

.dark .talep-ticket-header {
    background-color: rgba(30, 41, 59, 0.65);
}

.talep-status-badge {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.talep-chat-content {
    min-height: 400px;
    max-height: 600px;
    background-color: #f8f9fa;
}

.dark .talep-chat-content {
    background-color: rgba(30, 41, 59, 0.35);
}

.talep-avatar {
    width: 40px;
    height: 40px;
}

.talep-mesaj-container {
    max-width: 85%;
    min-width: 0;
}

.talep-mesaj-container .card {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
}

.talep-mesaj-icerik {
    word-break: break-word;
}

.talep-mesaj-tarih {
    font-size: 0.7rem;
    white-space: nowrap;
}

.talep-reply-area {
    background-color: #ffffff;
}

.dark .talep-reply-area {
    background-color: rgba(30, 41, 59, 0.65);
}

.talep-file-wrap .form-control {
    max-width: 260px;
}

.talep-file-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dark .sidebar-link {
    color: #94a3b8;
}

.sidebar-link:hover {
    background-color: rgba(243, 111, 33, 0.12);
    color: #f36f21;
}

.dark .sidebar-link:hover {
    background-color: rgba(243, 111, 33, 0.14);
    color: #f36f21;
}

.sidebar-link.is-active {
    background-color: rgba(243, 111, 33, 0.12);
    color: #f36f21;
}

.dark .sidebar-link.is-active {
    background-color: rgba(243, 111, 33, 0.18);
    color: #f36f21;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.875rem;
    color: #64748b;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dark .sidebar-sublink {
    color: #94a3b8;
}

.sidebar-sublink:hover {
    color: #f36f21;
    background-color: rgba(243, 111, 33, 0.06);
}

.sidebar-sublink.is-active {
    color: #f36f21;
    background-color: rgba(243, 111, 33, 0.08);
    font-weight: 700 !important;
}

/* Nested sidebar UX (2nd level) */
.sidebar-sublink--toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-submenu-level-2 {
    border-left: 1px solid rgba(148, 163, 184, 0.35);
    padding-left: 0.5rem;
}

.dark .sidebar-submenu-level-2 {
    border-left-color: rgba(148, 163, 184, 0.25);
}

/* Media */
.app-thumb-9x16 {
    aspect-ratio: 9 / 16;
}

.sidebar-section-title {
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.dark .sidebar-section-title,
html.dark-theme .sidebar-section-title {
    color: #64748b;
}

/* Fix dropdown text colors in dark mode (Modern components) */
html.dark-theme .modern-surface .text-body,
.dark .modern-surface .text-body {
    color: #e2e8f0 !important;
}

html.dark-theme .modern-surface .text-body-secondary,
.dark .modern-surface .text-body-secondary {
    color: #94a3b8 !important;
}

/* Global: Bootstrap text-dark should be readable in dark mode */
html.dark-theme .text-dark,
body.theme-dark .text-dark,
.dark .text-dark {
    color: #f8f9fa !important;
}

/* Soft buttons */
.btn-soft-primary {
    background-color: rgba(243, 111, 33, 0.12);
    color: #f36f21;
    border: 1px solid rgba(243, 111, 33, 0.12);
}

.btn-soft-primary:hover {
    background-color: rgba(243, 111, 33, 0.18);
    color: #d35a1a;
}

.btn-soft-emerald {
    background-color: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.btn-soft-emerald:hover {
    background-color: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.btn-soft-secondary {
    background-color: rgba(100, 116, 139, 0.12);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.12);
}

.btn-soft-secondary:hover {
    background-color: rgba(100, 116, 139, 0.18);
    color: #334155;
}

.btn-soft-info {
    background-color: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.12);
}

.btn-soft-info:hover {
    background-color: rgba(6, 182, 212, 0.18);
    color: #0e7490;
}

.btn-soft-warning {
    background-color: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.14);
}

.btn-soft-warning:hover {
    background-color: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.btn-soft-danger {
    background-color: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.12);
}

.btn-soft-danger:hover {
    background-color: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.breadcrumb .breadcrumb-item a {
    color: #f36f21;
    text-decoration: none;
}

.breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

/* Modern Card Overrides (Bootstrap fallback) */
.card {
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
    overflow: hidden;
}

.dark .card {
    border-color: rgba(71, 85, 105, 0.3) !important;
    background-color: #1e293b !important;
}

/* -------------------------------------------------------------------------- */
/* Bayiler > API Yönetimi                                                     */
/* Input + button group birleşiminde border-radius tutarsızlığını düzeltir.   */
/* (Sayfaya özel scope: body + view root)                                     */
/* -------------------------------------------------------------------------- */
body.modern-dashboard-body .card-body #apiYonetimiFlash ~ .modern-surface .input-group {
    /* bazı temalarda child'lar farklı radius aldığı için tek çatı davranışı */
    overflow: hidden;
    border-radius: 12px;
}

body.modern-dashboard-body .card-body #apiYonetimiFlash ~ .modern-surface .input-group > .form-control {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.modern-dashboard-body .card-body #apiYonetimiFlash ~ .modern-surface .input-group > .btn-group > .btn:first-child,
body.modern-dashboard-body .card-body #apiYonetimiFlash ~ .modern-surface .input-group > .btn-group > form:first-child .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

body.modern-dashboard-body .card-body #apiYonetimiFlash ~ .modern-surface .input-group > .btn-group > .btn:last-child,
body.modern-dashboard-body .card-body #apiYonetimiFlash ~ .modern-surface .input-group > .btn-group > form:last-child .btn {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.card-body {
    padding: 1.5rem !important;
}

/* Table Modernization */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 0.75rem 1rem !important;
}

.dark .table thead th {
    background-color: #1e293b !important;
    border-bottom-color: #334155 !important;
    color: #94a3b8 !important;
}

.table tbody td {
    padding: 1rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
    font-size: 0.875rem !important;
}

.dark .table tbody td {
    border-bottom-color: #334155 !important;
    color: #cbd5e1 !important;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9 !important;
}

.dark .table-hover tbody tr:hover {
    background-color: #334155 !important;
}

/* Dashboard İyileştirmeleri */
.card-indicator {
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 4px;
    border-radius: 0 4px 4px 0;
}

.stats-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.dark .stats-card {
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
}

.icon-18 {
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Patron rapor ekranı: alt başlıklar */
.patron-report-section-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(71, 85, 105, 0.85);
}

.dark .patron-report-section-subtitle {
    color: rgba(203, 213, 225, 0.75);
}

.patron-report-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.8);
    color: rgba(51, 65, 85, 0.85);
    font-weight: 600;
}

.dark .patron-report-pill {
    border-color: rgba(71, 85, 105, 0.6);
    background: rgba(30, 41, 59, 0.55);
    color: rgba(226, 232, 240, 0.9);
}

.patron-report-item-subtitle {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
    margin-top: 0.1rem;
}

.patron-report-item-meta {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color);
    margin-top: 0.35rem;
}

/* Soft background utilities (avoid `bg-opacity-*` because bootstrap-extended overrides `bg-*` with !important) */
.bg-soft-primary { background: rgba(14, 165, 233, 0.14) !important; }
.bg-soft-success { background: rgba(21, 202, 32, 0.14) !important; }
.bg-soft-danger { background: rgba(253, 53, 80, 0.14) !important; }
.bg-soft-warning { background: rgba(255, 193, 7, 0.18) !important; }
.bg-soft-info { background: rgba(13, 202, 240, 0.14) !important; }
.bg-soft-secondary { background: rgba(108, 117, 125, 0.14) !important; }

.bg-soft-success-strong { background: rgba(21, 202, 32, 0.25) !important; }
.bg-soft-danger-strong { background: rgba(253, 53, 80, 0.25) !important; }
.bg-soft-secondary-strong { background: rgba(108, 117, 125, 0.25) !important; }

/* Icon soft backgrounds (bootstrap-extended overrides bg-* with !important) */
.icon-box-soft-primary {
    background: rgba(243, 111, 33, 0.15) !important;
    color: #f36f21 !important;
}

.icon-box-soft-success {
    background: rgba(21, 202, 32, 0.15) !important;
    color: #15ca20 !important;
}

.icon-box-soft-danger {
    background: rgba(253, 53, 80, 0.15) !important;
    color: #fd3550 !important;
}

.icon-box-soft-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
}

/* Custom utility colors (dashboard cards) */
.bg-purple {
    background-color: #a855f7 !important;
}

/* -------------------------------------------------------------------------- */
/* Pratik Store Tema Renkleri - Turuncu (#f36f21)                              */
/* btn-pratik, bg-pratik, text-pratik vb.                                      */
/* -------------------------------------------------------------------------- */
.btn-pratik {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f36f21;
    --bs-btn-border-color: #f36f21;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d35a1a;
    --bs-btn-hover-border-color: #d35a1a;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c04f15;
    --bs-btn-active-border-color: #c04f15;
    --bs-btn-focus-shadow-rgb: 243, 111, 33;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #f36f21;
    --bs-btn-disabled-border-color: #f36f21;
}

.btn-outline-pratik {
    --bs-btn-color: #f36f21;
    --bs-btn-border-color: #f36f21;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #f36f21;
    --bs-btn-hover-border-color: #f36f21;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d35a1a;
    --bs-btn-active-border-color: #d35a1a;
    --bs-btn-focus-shadow-rgb: 243, 111, 33;
    --bs-btn-disabled-color: #f36f21;
    --bs-btn-disabled-border-color: #f36f21;
}

.bg-pratik {
    background-color: #f36f21 !important;
}

.bg-pratik-subtle {
    background-color: rgba(243, 111, 33, 0.12) !important;
}

.text-pratik {
    color: #f36f21 !important;
}

.link-pratik {
    color: #f36f21 !important;
}

.link-pratik:hover {
    color: #d35a1a !important;
}

.nav-link.nav-link-pratik {
    color: #f36f21 !important;
}

.nav-link.nav-link-pratik:hover,
.nav-link.nav-link-pratik:focus {
    color: #d35a1a !important;
}

.nav-primary.nav-tabs .nav-link.nav-link-pratik.active,
.nav-primary.nav-tabs .nav-item.show .nav-link.nav-link-pratik {
    color: #f36f21 !important;
    border-color: rgba(243, 111, 33, 0.35) rgba(243, 111, 33, 0.35) transparent !important;
}

.nav-primary.nav-pills .nav-link.nav-link-pratik.active,
.nav-primary.nav-pills .show > .nav-link.nav-link-pratik {
    background-color: #f36f21 !important;
    color: #fff !important;
}

.border-pratik {
    border-color: #f36f21 !important;
}

.badge.bg-pratik {
    color: #fff !important;
}

/* Admin logs: allow wrapping (bootstrap-extended sets .table-responsive{white-space:nowrap}) */
.admin-logs-table-wrap.table-responsive {
    white-space: normal;
}

#logsTable td:nth-child(4) small,
#logsTable td:nth-child(5) small {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Grafik Barları */
[data-sales-bar] {
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

[data-sales-bar] > .position-absolute {
    white-space: nowrap;
}

.chart-ring {
    transform: rotate(-90deg);
    transform-origin: center;
}

.chart-ring circle {
    fill: transparent;
    stroke-width: 12;
}

/* -------------------------------------------------------------------------- */
/* Auth pages (Bootstrap-based modern look)                                    */
/* -------------------------------------------------------------------------- */

body.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow-x: hidden;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card-wide {
    width: 100%;
    max-width: 860px;
}

.auth-card-split {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    margin: 0;
    flex: 1;
}

.auth-split-bg {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    color: #fff;
}

.auth-split-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(39, 33, 31, 0.8) 0%, rgba(39, 33, 31, 0.2) 50%, rgba(39, 33, 31, 0.1) 100%);
    z-index: 1;
}

.auth-split-bg-content {
    position: relative;
    z-index: 2;
}

.auth-split-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: #f8fafc;
}

.auth-form-container {
    background: #fff;
    padding: 3rem;
    border-radius: 40px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.auth-form-container-lg {
    max-width: 640px;
}

@media (max-width: 991.98px) {
    .auth-card-split {
        flex-direction: column;
        min-height: auto;
    }
    .auth-split-bg {
        display: none;
    }
    .auth-split-form {
        padding: 1.5rem;
        background: #fff;
        min-height: 100vh;
    }
    .auth-form-container {
        padding: 2rem 1.5rem;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }
}

.auth-gradient-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 111, 33, 0.10);
}

.dark .auth-icon-circle {
    background: rgba(148, 163, 184, 0.14);
}

.auth-theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    color: #475569 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-theme-toggle:hover {
    background-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dark .auth-theme-toggle {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(71, 85, 105, 0.4) !important;
    color: #e2e8f0 !important;
}

.dark .auth-theme-toggle:hover {
    background-color: rgba(30, 41, 59, 0.9) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.auth-theme-icon-dark {
    display: inline-block !important;
    color: inherit;
}

.auth-theme-icon-light {
    display: none !important;
    color: inherit;
}

.dark .auth-theme-icon-dark {
    display: none !important;
}

.dark .auth-theme-icon-light {
    display: inline-block !important;
}

.auth-input-icon {
    min-width: 2.5rem;
    justify-content: center;
    background: transparent;
}

.dark .auth-input-icon {
    color: #cbd5e1;
}

.auth-body .form-control:focus,
.auth-body .form-check-input:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.9);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.auth-body .form-check-input:checked {
    background-color: #f36f21;
    border-color: #f36f21;
}

/* Number input spinner'larını gizle (tüm dashboard'da) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Web Site ayar sayfaları: header arkaplanı (light/dark uyumlu) */
.web-soft-header {
    background-color: rgba(14, 165, 233, 0.10);
}

html.dark-theme .web-soft-header,
.dark .web-soft-header {
    background-color: rgba(14, 165, 233, 0.16);
}

/* -------------------------------------------------------------------------- */
/* Admin utility helpers (inline style replacements)                           */
/* -------------------------------------------------------------------------- */
.admin-icon-lg {
    font-size: 2.5rem !important;
}

.admin-icon-xl {
    font-size: 3rem !important;
}

.admin-icon-md {
    font-size: 1.1em !important;
}

.admin-prewrap {
    white-space: pre-wrap;
}

.admin-log-trace {
    font-size: 11px;
    max-height: 400px;
    overflow-y: auto;
}

.admin-th-w-70 {
    width: 70px;
}

.admin-th-w-80 {
    width: 80px;
}

.admin-th-w-100 {
    width: 100px;
}

.admin-th-w-110 {
    width: 110px;
}

.admin-th-w-120 {
    width: 120px;
}

.admin-th-w-140 {
    width: 140px;
}

.admin-th-w-150 {
    width: 150px;
}

.admin-th-w-160 {
    width: 160px;
}

.admin-th-w-180 {
    width: 180px;
}

.admin-th-w-220 {
    width: 220px;
}

.admin-kanban-scroll {
    overflow-x: auto;
}

.admin-kanban-column {
    min-height: 200px;
}

.admin-email-avatar {
    width: 32px;
    height: 32px;
}

.admin-email-avatar-lg {
    width: 36px;
    height: 36px;
    background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuBMSpFkVkLzIvSRHQWenDMm39fB3vs5tj2KAQCpkGkVKYBpFWEMNoVTH09QsciZb3mydMdZzKc9uEX4K3zmE80tFtg8XJ0dUkdtajQtrxakIgYkKBNo7sCW0a-5mjIDOUVWIjCIiYmBfeAjWbA1fgYJB0yJHSMHCGI8Tm9rxOFmpaR7p8B_mWECXyfJ5eAVsc1QayuWkTZmQANOUt6aNKF2cujk_EgqEFd-b2boZz_QqQ-9Y7zDXP3eOfnZrgJPxVAorLRuv6W9BAs');
    background-size: cover;
    background-position: center;
}

.admin-email-container {
    max-width: 960px;
}

.admin-email-preview {
    max-width: 640px;
}

.admin-email-iframe {
    height: 800px;
    border: 0;
}

.admin-editor-height {
    height: 180px;
}

.admin-ai-toggle {
    transform: scale(1.3);
    margin-left: 0;
}

.admin-font-xs {
    font-size: 0.75rem;
}

.admin-font-sm {
    font-size: 14px;
}

.admin-mw-260 {
    max-width: 260px;
}

.admin-cursor-move {
    cursor: move;
}

.admin-user-avatar {
    width: 24px;
    height: 24px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #555;
}

/* ============================================
   FLOW ACCENTS (Bayi: Alış / Satış)
   ============================================ */

body.flow-alis {
    --app-accent: #0f7a3a;
    --app-accent-rgb: 15, 122, 58;
    --app-accent-2: #16a34a;
    --bs-success: #0f7a3a;
    --bs-success-rgb: 15, 122, 58;
}

body.flow-satis {
    --app-accent: #084298;
    --app-accent-rgb: 8, 66, 152;
    --app-accent-2: #0b5ed7;
}

/* Sipariş/Alış ekranı (magaza-satis.css) accent overrides */
body.flow-alis .mobile-cart-item .qty-controls .qty-btn.qty-plus,
body.flow-alis .mobile-cart-item .item-price .current-price,
body.flow-alis .mobile-sale-footer .total-row.grand-total .amount {
    color: var(--app-accent);
}

body.flow-alis .mobile-payment-btn.active {
    border-color: var(--app-accent);
    background: rgba(var(--app-accent-rgb), 0.1);
    color: var(--app-accent);
}

body.flow-alis .mobile-sale-footer .btn-complete-sale {
    background: linear-gradient(135deg, var(--app-accent) 0%, var(--app-accent-2) 100%);
    box-shadow: 0 4px 12px rgba(var(--app-accent-rgb), 0.3);
}

body.flow-alis .mobile-sale-footer .btn-complete-sale:hover {
    background: linear-gradient(135deg, #0c6831 0%, var(--app-accent) 100%);
}

body.flow-satis .mobile-cart-item .qty-controls .qty-btn.qty-plus,
body.flow-satis .mobile-cart-item .item-price .current-price,
body.flow-satis .mobile-sale-footer .total-row.grand-total .amount {
    color: var(--app-accent);
}

body.flow-satis .mobile-payment-btn.active {
    border-color: var(--app-accent);
    background: rgba(var(--app-accent-rgb), 0.1);
    color: var(--app-accent);
}

body.flow-satis .mobile-sale-footer .btn-complete-sale {
    background: linear-gradient(135deg, var(--app-accent) 0%, var(--app-accent-2) 100%);
    box-shadow: 0 4px 12px rgba(var(--app-accent-rgb), 0.3);
}

body.flow-satis .mobile-sale-footer .btn-complete-sale:hover {
    background: linear-gradient(135deg, #06357a 0%, var(--app-accent) 100%);
}

/* Tailwind-style color utilities for Material Icons */
.text-orange-600 { color: #ea580c !important; }
.text-purple-600 { color: #9333ea !important; }
.text-emerald-600 { color: #059669 !important; }
.text-blue-600 { color: #2563eb !important; }
.text-indigo-600 { color: #4f46e5 !important; }
.text-red-600 { color: #dc2626 !important; }
.text-pink-600 { color: #db2777 !important; }
.text-teal-600 { color: #0d9488 !important; }
.text-amber-600 { color: #d97706 !important; }
.text-gray-600 { color: #4b5563 !important; }

/* ============================================
   DARK MODE OVERRIDE'LAR
   ============================================ */

html.dark-theme .bg-surface-light {
    background-color: #1e293b !important;
}

html.dark-theme .bg-background-light {
    background-color: #0f172a !important;
}

html.dark-theme .text-body-secondary {
    color: #94a3b8 !important;
}

html.dark-theme .border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark-theme .swal2-popup {
    background: #1e293b;
    color: #e4e5e6;
}

html.dark-theme .swal2-title {
    color: #f1f5f9;
}

html.dark-theme .swal2-html-container {
    color: #94a3b8;
}

html.dark-theme .swal2-input,
html.dark-theme .swal2-textarea,
html.dark-theme .swal2-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e4e5e6;
}

html.dark-theme .swal2-validation-message {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

html.dark-theme .auth-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-theme .auth-input-icon {
    background-color: rgba(255, 255, 255, 0.05);
}

html.dark-theme .link-pratik {
    color: #f59e0b;
}

html.dark-theme .link-pratik:hover {
    color: #fbbf24;
}

html.dark-theme .modern-surface {
    background-color: #1e293b;
}

html.dark-theme .modern-surface-muted {
    background-color: rgba(255, 255, 255, 0.05);
}

html.dark-theme .modern-border {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Blink badge animation (beklemede durumu) */
@keyframes blink-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.blink-badge {
    animation: blink-pulse 2s ease-in-out infinite;
}
