/* ============================================
   BDO Bagaj Takip - Ortak Stiller
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Filter Card */
.filter-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.filter-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #212529;
}

.filter-form {
    padding: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #495057;
}



/* Report Card */
.report-card {
    background: #FAFBFCFF;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.report-card:hover {
    box-shadow: var(--shadow-md);
}

.report-header {

    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.report-header-content {
    flex: 1;
}

.report-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0.5rem 0 0 0;
}

.badge-count {
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.report-header-actions {
    display: flex;
    gap: 0.5rem;
}

.report-body {
    padding: 0;
    overflow: hidden;
}


/* Report Table */
.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.report-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
}

.report-table thead th {
    padding: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    border: none;
    background: #f8f9fa;
}

.report-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.report-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.report-table tbody td {
    padding: 1rem;
    font-size: 0.9rem;
    color: #212529;
    vertical-align: middle;
}

/* Table Cells */
.cell-date {
    white-space: nowrap;
}

.date-main {
    display: block;
    font-weight: 600;
    color: #212529;
}

.date-time {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.cell-tag {
    text-align: center;
}

.badge-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.cell-tracking {
    font-family: 'Monaco', 'Courier New', monospace;
}

.tracking-code {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    color: #212529;
    border: 1px solid var(--border-color);
}

.airline-badge {
    background: #e7f3ff;
    color: #0066cc;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.zone-text {
    color: #6c757d;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-successful {
    background: linear-gradient(135deg, #d1e7dd, #c3e6cb);
    color: #0f5132;
    border-left: 3px solid #198754;
}

.status-successful:hover {
    background: linear-gradient(135deg, #c3e6cb, #b6dbb8);
}

.status-failed {
    background: linear-gradient(135deg, #f8d7da, #f5c2c7);
    color: #842029;
    border-left: 3px solid #dc3545;
}

.status-failed:hover {
    background: linear-gradient(135deg, #f5c2c7, #f1b0b7);
}

.status-rescheduled {
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #664d03;
    border-left: 3px solid #ffc107;
}

.status-rescheduled:hover {
    background: linear-gradient(135deg, #ffe69c, #ffd966);
}

.status-unknown {
    background: linear-gradient(135deg, #e2e3e5, #d3d4d6);
    color: #41464b;
    border-left: 3px solid #6c757d;
}

.status-icon {
    font-style: normal;
    font-size: 1rem;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}


/* Empty State */
.empty-state {
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.empty-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Report Footer */
.report-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #6c757d;
}



[data-bs-theme="dark"] {
    --light: #0f172a;
    --dark: #f8fafc;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light);
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: white;
    border-right: 1px solid var(--border);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

[data-bs-theme="dark"] .sidebar {
    background: #1e293b;
    border-right-color: #334155;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.sidebar-brand-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.sidebar-brand-text h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.sidebar-brand-text small {
    opacity: 0.9;
    font-size: 0.85rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.nav-section-title {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.nav-item {
    padding: 0.1rem 1rem;
    margin-bottom: 0.1rem;
}

.nav-link-custom,
.sub-nav-link-custom {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link-custom span,
.sub-nav-link-custom span {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link-custom:hover,
.sub-nav-link-custom:hover {
    background: #f1f5f9;
    color: var(--primary);
}

[data-bs-theme="dark"] .nav-link-custom:hover,
[data-bs-theme="dark"] .sub-nav-link-custom {
    background: #334155;
}

.nav-link-custom.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sub-nav-link-custom.active {
    background: #f1f5f9;
    color: var(--primary);
}

.nav-link-icon {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* ============================================
   TOPBAR
============================================ */
.topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

[data-bs-theme="dark"] .topbar {
    background: rgba(30, 41, 59, 0.95);
    border-bottom-color: #334155;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-search {
    position: relative;
    width: 400px;
}

.topbar-search input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
    background: var(--light);
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.topbar-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    color: #64748b;
}

.topbar-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.topbar-btn-shw {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    color: #ffffff;
    opacity: 0.8;
}

.topbar-btn-shw:hover {
    opacity: 1;
    color: #bcbbbb;
    transform: translateY(-2px);
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-wrapper {
    margin-left: 280px;
    min-height: 100vh;
    transition: var(--transition);
}

.content-area {
    padding: 2rem;
}

.page-header {
    margin-bottom: 1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-subtitle {
    color: #64748b;
    margin: 0;
}

/* ============================================
   CARDS
============================================ */
.card-modern {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

[data-bs-theme="dark"] .card-modern {
    background: #1e293b;
    border-color: #334155;
}

.stat-card-modern {
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

[data-bs-theme="dark"] .stat-card-modern {
    background: #1e293b;
    border-color: #334155;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-icon-modern.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-icon-modern.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon-modern.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon-modern.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
}

/* ============================================
   TABLES
============================================ */

.table-wrapper {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    overflow-x: auto;
    padding: 0 .75rem;
}

[data-bs-theme="dark"] .table-wrapper {
    background: #1e293b;
    border-color: #334155;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.table-modern {
    width: 100%;
    margin: 0;
}

.table-modern thead th {
    background: var(--light);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border: none;
}

[data-bs-theme="dark"] .table-modern thead th {
    background: #0f172a;
}

.table-modern tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-top: 1px solid var(--border);
}

.table-modern tbody tr:hover {
    background: var(--light);
}

/* ============================================
   BUTTONS
============================================ */
.btn-modern {
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-success-modern {
    background: var(--success);
    color: white;
}

.badge-danger-modern {
    background: var(--danger);
    color: white;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--border);
    color: #64748b;
}

.btn-outline-modern:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* ============================================
   BADGES
============================================ */
.badge-modern {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 6px;
    padding: .2rem 0.5rem;
    font-size: .9rem;

}

.badge-success-modern {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 6px;
    padding: .2rem 0.5rem;
    font-size: .9rem;
}

.badge-warning-modern {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-radius: 6px;
    padding: .2rem 0.5rem;
    font-size: .9rem;
}

.badge-danger-modern {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-radius: 6px;
    padding: .2rem 0.5rem;
    font-size: .9rem;
}

.badge-primary-modern {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 6px;
    padding: .2rem 0.5rem;
    font-size: .9rem;
}

/* ============================================
   FORMS
============================================ */
.form-group-modern {
    margin-bottom: .5rem;
}

.form-label-modern {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.95rem;
    background: var(--light);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ============================================
   ALERTS
============================================ */
.alert-modern {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.alert-success-modern {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    padding: 5px 8px;
}

.alert-info-modern {
    background: rgba(6, 182, 212, 0.9);
    color: #ffffff;
    padding: 5px 8px;
}

.alert-info-modern i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-info-modern code {
    background: rgba(6, 182, 212, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .sidebar {
        left: -280px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .topbar-search {
        display: none;
    }

    .content-area {
        padding: 1rem;
    }
}

/* ============================================
   ANIMATIONS
============================================ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   LOADING
============================================ */


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/*Datatables*/
/* DataTables Custom Styling */

.dataTables_wrapper {
    padding: 0;
}

th:first-child,
thead:first-child,
tr:first-child {
    border-top-left-radius: 10px;
}

th:last-child,
thead:last-child,
tr:last-child {
    border-top-right-radius: 10px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    padding: 1rem 0 1rem .5rem;
    border-top: 1px solid var(--border);
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    flex-direction: row;
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_length select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--light);
    cursor: pointer;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--light);
    margin-left: 0.5rem;
    width: 250px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.dataTables_wrapper .dataTables_info {
    padding: 1rem 1.5rem;
    color: #64748b;
    text-align: left;
}

.dataTables_wrapper .dataTables_paginate {
    padding: 1rem 1.5rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    display: flex;
    margin: 0;
    flex-direction: row;
    justify-content: flex-end;

}

table.dataTable thead th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid var(--border);
}

table.dataTable tbody tr {
    transition: var(--transition);
}

table.dataTable tbody tr:hover {
    background: var(--light);
}

table.dataTable tbody td {
    vertical-align: middle;
}

/* DataTables Buttons */
.dt-buttons {
    display: flex;
    gap: 0.2rem;
    padding: 1rem .5rem 1rem 0;
    max-width: 600px;
}

.dt-button {
    padding: 0.625rem 1.25rem !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer;
    transition: var(--transition) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem !important;
}

.dt-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg) !important;
}

.buttons-excel {
    background: #10b981 !important;
    color: white !important;
    border: 0 !important;
}

.buttons-pdf {
    background: #ef4444 !important;
    color: white !important;
    border: 0 !important;
}

.buttons-print {
    background: #6366f1 !important;
    color: white !important;
    border: 0 !important;
}

.buttons-copy {
    background: #f59e0b !important;
    color: white !important;
    border: 0 !important;
}

.buttons-csv {
    background: #06b6d4 !important;
    color: white !important;
    border: 0 !important;
}

/* Advanced Filter Panel */
.filter-panel {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .filter-panel {
    background: #1e293b;
    border-color: #334155;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Custom Search Box */
.search-box-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box-custom input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--light);
}

.search-box-custom input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-box-custom i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Column Visibility Buttons */
.column-visibility {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.column-toggle {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.column-toggle.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.column-toggle:hover {
    border-color: var(--primary);
}

/* Range Slider */
.range-slider {
    width: 100%;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}


/*Form styles*/
.form-section {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .form-section {
    background: #1e293b;
    border-color: #334155;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.form-section-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.form-section-title {
    flex: 1;
}

.form-section-title h5 {
    margin: 0;
    font-weight: 700;
}

.form-section-title p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper input,
.input-icon-wrapper select,
.input-icon-wrapper textarea {
    padding-left: 2.75rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.form-control-modern:focus+.input-icon {
    color: var(--primary);
}

/* Custom Checkbox & Radio */
.custom-checkbox,
.custom-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.15rem;
}

.custom-checkbox:hover,
.custom-radio:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.custom-checkbox input:checked~label,
.custom-radio input:checked~label {
    font-weight: 600;
    color: var(--primary);
}

.custom-checkbox input:checked,
.custom-radio input:checked {
    accent-color: var(--primary);
}

/* File Upload Custom */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload-wrapper input {
    display: none;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Range Slider Custom */
.range-slider-wrapper {
    padding: 1rem 0;
}

.range-value-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.range-value-badge {
    background: var(--primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 50px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Color Picker Custom */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.color-preview:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

input[type="color"] {
    display: none;
}

/* Switch Toggle */
.switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.switch-wrapper:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.02);
}

.switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.switch input {
    display: none;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: var(--transition);
    border-radius: 50px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked+.switch-slider {
    background-color: var(--primary);
}

.switch input:checked+.switch-slider:before {
    transform: translateX(24px);
}

/* Progress & Meter */
.progress-custom {
    height: 24px;
    border-radius: 50px;
    background: var(--border);
    overflow: visible;
    position: relative;
}

.progress-bar-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.progress-bar-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Tag Input */
.tags-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--light);
    min-height: 45px;
}

.tags-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-remove {
    cursor: pointer;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.tags-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    min-width: 120px;
    padding: 0.25rem;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 2rem;
}

.star-rating i {
    cursor: pointer;
    color: #e2e8f0;
    transition: var(--transition);
}

.star-rating i:hover,
.star-rating i.active {
    color: #f59e0b;
}

/* Form Progress Steps */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.form-progress-bar {
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    z-index: 1;
}

.form-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.form-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.form-step.active .form-step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.form-step.completed .form-step-circle {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.form-step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

.form-step.active .form-step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Validation Styles */
.form-control-modern.is-valid {
    border-color: var(--success);
}

.form-control-modern.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback,
.valid-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.invalid-feedback {
    color: var(--danger);
}

.valid-feedback {
    color: var(--success);
}





/* ========================================
   SELECT2 MODERN STYLES - ARROW FIX
   ======================================== */

/* Select2 Container */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    width: 100%;
    height: auto !important;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    /* Sağ tarafta arrow için boşluk */
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--light);
    transition: var(--transition);
    font-size: 0.95rem;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Multiple Select */
.select2-container .select2-selection--multiple {
    width: 100%;
    min-height: 50px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--light);
    transition: var(--transition);
    font-size: 0.95rem;
}

/* Selected Value */
.select2-container .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5;
    color: var(--text-dark);
}

/* Placeholder */
.select2-container .select2-selection__placeholder {
    color: #94a3b8;
}

/* ========================================
   ARROW - DÜZELTİLDİ
   ======================================== */

.select2-container .select2-selection__arrow {
    height: 100% !important;
    width: 30px !important;
    right: 5px !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
}

.select2-container .select2-selection__arrow b {
    border-style: solid !important;
    /* ÖNEMLİ: Bu eksikti */
    border-color: #94a3b8 transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin: 0 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* Arrow - Open State */
.select2-container--open .select2-selection__arrow b {
    border-style: solid !important;
    /* ÖNEMLİ: Bu da eksikti */
    border-color: transparent transparent var(--primary) transparent !important;
    border-width: 0 5px 6px 5px !important;
}

/* Focus State */
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
    outline: none;
}

.select2-container--focus .select2-selection__arrow b,
.select2-container--open .select2-selection__arrow b {
    border-top-color: var(--primary) !important;
}

/* Clear Button */
.select2-container .select2-selection__clear {
    width: 22px !important;
    height: 22px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--danger) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    transition: var(--transition) !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.select2-container .select2-selection__clear:hover {
    background: var(--danger) !important;
    color: white !important;
}

/* ========================================
   SELECT2 DROPDOWN
   ======================================== */

.select2-dropdown {
    border: 2px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
    margin-top: 4px;
    overflow: hidden;
}

[data-bs-theme="dark"] .select2-dropdown {
    background: #1e293b;
    border-color: #334155;
}

/* Search Input */
.select2-search--dropdown {
    padding: 0.75rem;
    background: var(--light);
}

.select2-search__field {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid var(--border) !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    background: white !important;
    outline: none !important;
}

[data-bs-theme="dark"] .select2-search__field {
    background: #0f172a !important;
    color: white !important;
    border-color: #334155 !important;
}

.select2-search__field:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Results Container */
.select2-results {
    max-height: 300px;
    overflow-y: auto;
}

.select2-results__options {
    padding: 0.5rem;
}

/* Option Items */
.select2-results__option {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.select2-results__option:last-child {
    margin-bottom: 0;
}

/* Hover State */
.select2-results__option--highlighted {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary) !important;
}

/* Selected State */
.select2-results__option--selected {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 600;
}

.select2-results__option--selected::after {
    content: '✓';
    float: right;
    font-weight: bold;
}

/* Disabled State */
.select2-results__option--disabled {
    color: #cbd5e1 !important;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Group Labels (optgroup) */
.select2-results__group {
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

/* ========================================
   MULTIPLE SELECTION
   ======================================== */

.select2-selection__choice {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.375rem 0.75rem !important;
    margin: 0.25rem 0.25rem 0.25rem 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.select2-selection__choice__remove {
    color: white !important;
    margin-right: 0 !important;
    font-weight: bold;
    opacity: 0.7;
    transition: var(--transition);
    order: 2;
}

.select2-selection__choice__remove:hover {
    opacity: 1;
    color: white !important;
}

/* ========================================
   VALIDATION STATES
   ======================================== */

.is-valid+.select2-container .select2-selection {
    border-color: var(--success) !important;
}

.is-invalid+.select2-container .select2-selection {
    border-color: var(--danger) !important;
}

/* ========================================
   DISABLED STATE
   ======================================== */

.select2-container--disabled .select2-selection {
    background: #f1f5f9 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

[data-bs-theme="dark"] .select2-container--disabled .select2-selection {
    background: #0f172a !important;
}

/* ========================================
   SCROLLBAR
   ======================================== */

.select2-results::-webkit-scrollbar {
    width: 8px;
}

.select2-results::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.select2-results::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.select2-results::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   LOADING STATE
   ======================================== */

.select2-results__message {
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {

    .select2-container .select2-selection--single,
    .select2-container .select2-selection--multiple {
        padding: 0.65rem 2.25rem 0.65rem 0.875rem;
        font-size: 0.9rem;
        min-height: 45px;
    }

    .select2-results__option {
        padding: 0.65rem 0.875rem;
    }
}

/* ========================================
   DARK MODE
   ======================================== */

[data-bs-theme="dark"] .select2-container .select2-selection {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

[data-bs-theme="dark"] .select2-container .select2-selection__rendered {
    color: white;
}

[data-bs-theme="dark"] .select2-container .select2-selection__placeholder {
    color: #64748b;
}

[data-bs-theme="dark"] .select2-container .select2-selection__arrow b {
    border-top-color: #94a3b8 !important;
}

[data-bs-theme="dark"] .select2-search--dropdown {
    background: #1e293b;
}

[data-bs-theme="dark"] .select2-results__option {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .select2-results__option--highlighted {
    background: rgba(99, 102, 241, 0.2) !important;
}


.iti {
    display: block !important;
}


/* ========================================
   MODERN TOAST NOTIFICATION STYLES
   ======================================== */
#toast-container>.toast-info,
#toast-container>.toast-error,
#toast-container>.toast-warning,
#toast-container>.toast-success,
#toast-container>.toast-danger {
    background-image: none !important;
}


#toast-container>div {
    margin: 0 0 6px !important;
    padding: 6px 6px 6px 7px;
    -moz-box-shadow: none !important;
    ;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=90) !important;
    filter: alpha(opacity=90) !important;
    width: auto !important;
    min-width: 260px !important;
}

.toast-container-modern {
    position: fixed;
    top: 10px;
    right: 5px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 2px !important;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none;
    align-items: flex-end;
}

.toast-modern {
    background: white;
    overflow: hidden;
    opacity: 0;
    transform: translateX(400px);
    pointer-events: auto;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    color: white;
    border-radius: 8px !important;
}

[data-bs-theme="dark"] .toast-modern {
    background: #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.toast-modern.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-modern.removing {
    opacity: 0;
    transform: translateX(400px) scale(0.8);
    max-height: 0;
    margin-bottom: 0;
}

/* Toast Content */
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: white;
    font-weight: 500;
}

[data-bs-theme="dark"] .toast-message {
    color: #e2e8f0;
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #c0c3c8;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 6px;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

[data-bs-theme="dark"] .toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.toast-action-btn {
    background: transparent;
    border: 1px solid currentColor;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.toast-action-btn:hover {
    background: currentColor;
    color: white !important;
}

/* Progress Bar */
.toast-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

[data-bs-theme="dark"] .toast-progress {
    background: rgba(255, 255, 255, 0.1);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    background: currentColor;
    transform-origin: left;
    animation: toast-progress-animation linear forwards;
}

@keyframes toast-progress-animation {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Toast Types */
.toast-success {
    background: var(--success);
}

.toast-error,
.toast-danger {
    background: var(--danger);
}

.toast-warning {
    background: var(--warning);
}

.toast-info {
    background: var(--info);
}


.toast-loading {
    background: var(--primary);
}

.toast-question {
    background: var(--info);
}



/* Animation Variants */
@keyframes toast-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-10px);
    }
}

.toast-modern:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .toast-modern:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Position Variants */
.toast-container-modern.top-left {
    top: 20px;
    left: 20px;
    right: auto;
}

.toast-container-modern.top-left .toast-modern {
    transform: translateX(-400px);
}

.toast-container-modern.top-left .toast-modern.show {
    transform: translateX(0);
}

.toast-container-modern.bottom-right {
    top: auto;
    bottom: 20px;
    right: 20px;
}

.toast-container-modern.bottom-left {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: auto;
}

.toast-container-modern.bottom-left .toast-modern {
    transform: translateX(-400px);
}

.toast-container-modern.bottom-left .toast-modern.show {
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .toast-container-modern {
        top: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }

    .toast-content {
        padding: 12px;
    }

    .toast-icon {
        font-size: 1.25rem;
    }

    .toast-message {
        font-size: 0.875rem;
    }

    .toast-close {
        top: 8px;
        right: 8px;
        font-size: 1.25rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .toast-modern {
        transition: none;
    }

    .toast-progress-bar {
        animation: none;
    }
}

/* Loading Spinner Animation */
.toast-loading .toast-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Stack Effect */
.toast-modern:nth-child(1) {
    z-index: 10;
}

.toast-modern:nth-child(2) {
    z-index: 9;
    opacity: 0.9;
    transform: scale(0.98) translateY(-4px);
}

.toast-modern:nth-child(3) {
    z-index: 8;
    opacity: 0.8;
    transform: scale(0.96) translateY(-8px);
}


/* ========================================
   PERMISSIONS - MODERN SWITCH STYLE
   ======================================== */

.permissions-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .permissions-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Permission Module */
.permission-module {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

[data-bs-theme="dark"] .permission-module {
    background: #1e293b;
    border-color: #334155;
}

.permission-module:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.permission-module-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
}

[data-bs-theme="dark"] .permission-module-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.permission-module-header i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.permission-module-header h6 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.permission-count {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
}

.permission-items {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Modern Switch Wrapper */
.switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
    background: var(--light);
}

[data-bs-theme="dark"] .switch-wrapper {
    background: #0f172a;
    border-color: #334155;
}

.switch-wrapper:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.switch-label {
    flex: 1;
}

.switch-label strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

[data-bs-theme="dark"] .switch-label strong {
    color: #e2e8f0;
}

.switch-label small {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Modern Switch - form-example.html style */
.switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    display: none;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: var(--transition);
    border-radius: 50px;
}

[data-bs-theme="dark"] .switch-slider {
    background-color: #334155;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch input:checked+.switch-slider {
    background-color: var(--primary);
}

.switch input:checked+.switch-slider:before {
    transform: translateX(24px);
}

.switch input:focus+.switch-slider {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Checked state wrapper highlight */
.switch-wrapper:has(input:checked) {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

[data-bs-theme="dark"] .switch-wrapper:has(input:checked) {
    background: rgba(34, 197, 94, 0.1);
}

.switch-wrapper:has(input:checked) .switch-label strong {
    color: var(--success);
    font-weight: 600;
}

/* Success/Warning Buttons */
.btn-success-modern {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-success-modern:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
    color: white;
}

.btn-warning-modern {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-warning-modern:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Module has all selected - green header */
.permission-module:has(.permission-switch:checked) .permission-module-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Loading state */
.permission-module.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.permission-module.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Empty state */
.permissions-wrapper:empty::before {
    content: 'No permissions available';
    display: block;
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 576px) {
    .form-section-header {
        flex-wrap: wrap;
    }

    .form-section-header .ms-auto {
        width: 100%;
        margin-top: 1rem;
        margin-left: 0 !important;
    }

    .form-section-header .d-flex {
        width: 100%;
    }

    .permission-items {
        padding: 0.75rem;
    }

    .switch-wrapper {
        padding: 0.875rem;
    }

    .switch-label strong {
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    .permission-module {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
.switch-wrapper:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.switch input:focus {
    outline: none;
}

/* Animation for switched items */
@keyframes switchPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15);
    }
}

.switch-wrapper:has(input:checked) {
    animation: switchPulse 2s ease-in-out;
}

/* Switch slider hover effect */
.switch-slider:hover {
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* Gradient animation on check */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.switch input:checked+.switch-slider {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}


/* Modal Custom */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.modal-title {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* Tab Content */
.tab-content {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 0 12px 12px 12px;
    padding: 2rem;
}

[data-bs-theme="dark"] .tab-content {
    background: #1e293b;
}


/* ==========================================
   PAGINATION - Modern Design
   ========================================== */

/* Pagination Container */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pagination Items */
.pagination li {
    display: inline-block;
}

/* Pagination Links */
.pagination li a,
.pagination li span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text, #1f2937);
    text-decoration: none;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Hover Effect */
.pagination li a:hover,
.pagination li span:hover {
    color: #6366f1;
    background-color: #f0f1ff;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Active Page */
.pagination li.active a,
.pagination li.active span {
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    font-weight: 600;
    cursor: default;
}

.pagination li.active a:hover,
.pagination li.active span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Disabled State */
.pagination li.disabled a,
.pagination li.disabled span {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.pagination li.disabled a:hover,
.pagination li.disabled span:hover {
    transform: none;
    box-shadow: none;
    background-color: #f9fafb;
}

/* First/Previous/Next/Last Buttons */
.pagination li:first-child a,
.pagination li:last-child a {
    font-weight: 600;
    padding: 0.5rem 1rem;
}

/* Icons in Pagination */
.pagination li a i,
.pagination li span i {
    font-size: 0.75rem;
}

/* Pagination Wrapper */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Pagination Info */
.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination-info strong {
    color: #1f2937;
    font-weight: 600;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pagination {
        justify-content: center;
    }

    .pagination li a,
    .pagination li span {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem 0.6rem;
        font-size: 0.8125rem;
    }

    /* Mobile'de First/Last text'lerini gizle, sadece icon göster */
    .pagination li:first-child a span:not(.d-sm-none),
    .pagination li:last-child a span:not(.d-sm-none) {
        display: none;
    }
}

@media (max-width: 576px) {

    /* Çok küçük ekranlarda bazı sayfa numaralarını gizle */
    .pagination li:not(.active):not(:first-child):not(:last-child):not(.disabled) {
        display: none;
    }

    /* Aktif sayfanın yanındakileri göster */
    .pagination li.active+li,
    .pagination li:has(+ li.active) {
        display: inline-block;
    }
}

/* Animation */
.pagination li {
    animation: fadeInUp 0.3s ease;
    animation-fill-mode: both;
}

.pagination li:nth-child(1) {
    animation-delay: 0.05s;
}

.pagination li:nth-child(2) {
    animation-delay: 0.1s;
}

.pagination li:nth-child(3) {
    animation-delay: 0.15s;
}

.pagination li:nth-child(4) {
    animation-delay: 0.2s;
}

.pagination li:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
[data-theme="dark"] .pagination li a,
[data-theme="dark"] .pagination li span {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .pagination li a:hover,
[data-theme="dark"] .pagination li span:hover {
    background-color: #374151;
    border-color: #6366f1;
}

[data-theme="dark"] .pagination li.disabled a,
[data-theme="dark"] .pagination li.disabled span {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pagination-info {
    color: #9ca3af;
}

[data-theme="dark"] .pagination-info strong {
    color: #e5e7eb;
}

/* Loading State */
.pagination.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Compact Variant */
.pagination-compact {
    gap: 0.25rem;
}

.pagination-compact li a,
.pagination-compact li span {
    min-width: 36px;
    height: 36px;
    font-size: 0.8125rem;
}

/* Large Variant */
.pagination-lg li a,
.pagination-lg li span {
    min-width: 48px;
    height: 48px;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

/* Rounded Variant */
.pagination-rounded li a,
.pagination-rounded li span {
    border-radius: 50%;
    min-width: 40px;
    width: 40px;
    padding: 0;
}



/* ==========================================
   TABLE COMPACT - Baggage List
   ========================================== */

.table-compact td {
    padding: 0.75rem 0.5rem !important;
    vertical-align: middle;
}

.table-compact th {
    padding: 1rem 0.5rem !important;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Compact Row Height */
.table-compact tbody tr {
    min-height: 60px;
}

/* Text Truncate */
.text-truncate-table {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contact Info Column */
.table-compact td a {
    font-size: 0.875rem;
    text-decoration: none;
}

.table-compact td a:hover {
    text-decoration: underline;
}

/* Badge Sizing */
.table-compact .badge-primary-modern,
.table-compact .badge-success-modern,
.table-compact .badge-warning-modern,
.table-compact .badge-info-modern,
.table-compact .badge-danger-modern {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

/* Icon Sizing */
.table-compact td i {
    font-size: 0.75rem;
}

/* Responsive - Mobile */
@media (max-width: 1200px) {
    .table-compact {
        font-size: 0.8125rem;
    }

    .table-compact td {
        padding: 0.5rem 0.35rem !important;
    }
}

@media (max-width: 768px) {

    /* Mobile'de bazı kolonları gizle */
    .table-compact th:nth-child(3),
    .table-compact td:nth-child(3),
    .table-compact th:nth-child(8),
    .table-compact td:nth-child(8) {
        display: none;
    }
}




/* ==========================================
   MODALS - MODERN DESIGN
   ========================================== */

.modal-modern .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.modal-modern .modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    border-radius: 16px 16px 0 0;
}

.modal-modern .modal-header.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.modal-modern .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.modal-modern .modal-body {
    padding: 1.5rem;
}

.modal-modern .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: .5rem;
}

.form-label-modern {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
}

.form-label-modern.required::after {
    content: " *";
    color: #ef4444;
}

.form-control-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    transition: all 0.3s ease;
}


.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.current-notes-display,
.current-zone-display {
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    border: 1px solid var(--border);
    min-height: 60px;
}

/* ==========================================
   PHOTO UPLOAD GRID
   ========================================== */

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.photo-upload-item {
    position: relative;
}

.photo-input {
    display: none;
}

.photo-upload-label {
    display: block;
    cursor: pointer;
    margin: 0;
}

.photo-preview {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--light);
    border: 2px dashed var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.photo-preview i {
    font-size: 2rem;
    color: var(--text-muted);
}

.photo-preview span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.photo-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ==========================================
   ACTION BUTTONS (Header)
   ========================================== */

.btn-action-secondary,
.btn-action-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*    min-height: 44px;*/
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    text-decoration: none !important;
}

.btn-action-secondary {
    background: var(--card-bg);
    border-color: var(--border);
    color: var(--text);
}

.btn-action-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-action-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-action-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 576px) {

    .btn-action-secondary,
    .btn-action-danger {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .photo-upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-modern .modal-body {
        padding: 1rem;
    }
}

/* ==========================================
   DARK MODE
   ========================================== */

[data-bs-theme="dark"] .modal-modern .modal-content {
    background: #1e293b;
}

[data-bs-theme="dark"] .modal-modern .modal-header {
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .modal-modern .modal-footer {
    border-top-color: #334155;
}

[data-bs-theme="dark"] .form-control-modern {
    background: #0f172a;
    border-color: #334155;
}

[data-bs-theme="dark"] .current-notes-display,
[data-bs-theme="dark"] .current-zone-display {
    background: #0f172a;
    border-color: #334155;
}

[data-bs-theme="dark"] .photo-preview {
    background: #0f172a;
    border-color: #334155;
}



.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}