/* SignLogger CRM - General Design CSS */

/* EMERGENCY FIX: Alt Bayiler Table Visibility */
#subdealers.show table,
#subdealers.active table {
    display: table !important;
    min-height: 250px !important;
    height: auto !important;
    width: 100% !important;
    visibility: visible !important;
    table-layout: auto !important;
}

#subdealers.show tbody,
#subdealers.active tbody {
    display: table-row-group !important;
}

#subdealers.show tbody tr,
#subdealers.active tbody tr {
    display: table-row !important;
    height: 45px !important;
}

#subdealers.show #subdealersContent,
#subdealers.active #subdealersContent {
    display: block !important;
    min-height: 300px !important;
}

/* Force visibility when tab becomes active */
#subdealers.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#subdealers.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== UNICODE EMOJI ICONS ===== */
/* Removed - consolidated to dashboard section */

.empty-state-icon {
    font-size: 3em;
    line-height: 1;
    margin-bottom: 1rem;
    display: inline-block;
}

.info-icon {
    font-size: 1.5em;
    line-height: 1;
    margin-right: 1rem;
    display: inline-block;
}

/* Badge Outline Success - Faturalandı için */
.badge-outline-success {
    color: #16a34a !important;
    border: 1px solid #16a34a !important;
    background-color: transparent !important;
    font-weight: 500 !important;
}

/* ===== iOS DESIGN SYSTEM - MODERN RENK PALETİ ===== */
:root {
    /* ========== iOS BLUE SYSTEM (PRIMARY) ========== */
    --primary-color: #007AFF;           /* iOS signature blue - Primary actions */
    --primary-light: #5AC8FA;           /* Light blue - Hover states */
    --primary-dark: #0051D5;            /* Dark blue - Active states */
    --primary-bg: #E3F2FD;              /* Very light blue - Backgrounds */
    --primary-gradient: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    
    /* ========== iOS GREEN SYSTEM (SUCCESS) ========== */
    --success-color: #34C759;           /* Bright green - iOS success */
    --success-light: #6FD776;           /* Light green - Hover */
    --success-dark: #248A3D;            /* Dark green - Active */
    --success-bg: #E8F5E9;              /* Very light green - Success messages */
    --success-gradient: linear-gradient(135deg, #34C759 0%, #6FD776 100%);
    
    /* ========== iOS RED SYSTEM (DANGER) ========== */
    --danger-color: #FF3B30;            /* Vibrant red - iOS error */
    --danger-light: #FF6961;            /* Light red - Hover */
    --danger-dark: #D70015;             /* Dark red - Active */
    --danger-bg: #FFEBEE;               /* Very light red - Error messages */
    --danger-gradient: linear-gradient(135deg, #FF3B30 0%, #FF6961 100%);
    
    /* ========== iOS ORANGE SYSTEM (WARNING) ========== */
    --warning-color: #FF9500;           /* Bright orange - iOS warning */
    --warning-light: #FFB340;           /* Light orange - Hover */
    --warning-dark: #C27400;            /* Dark orange - Active */
    --warning-bg: #FFF3E0;              /* Very light orange - Warning messages */
    --warning-gradient: linear-gradient(135deg, #FF9500 0%, #FFB340 100%);
    
    /* ========== iOS TEAL SYSTEM (INFO) ========== */
    --info-color: #5AC8FA;              /* Bright teal - iOS info */
    --info-light: #7FD9FF;              /* Light teal - Hover */
    --info-dark: #0096D6;               /* Dark teal - Active */
    --info-bg: #E0F7FA;                 /* Very light teal - Info messages */
    --info-gradient: linear-gradient(135deg, #5AC8FA 0%, #7FD9FF 100%);
    
    /* ========== iOS PURPLE SYSTEM (ACCENT) ========== */
    --accent-color: #AF52DE;            /* Vibrant purple - Premium features */
    --accent-light: #C77FE8;            /* Light purple - Hover */
    --accent-dark: #8E3CC0;             /* Dark purple - Active */
    --accent-bg: #F3E5F5;               /* Very light purple - Premium backgrounds */
    
    /* ========== iOS GRAY SCALE ========== */
    --gray-1: #1C1C1E;                  /* Almost black - Primary text */
    --gray-2: #3A3A3C;                  /* Dark gray - Secondary text */
    --gray-3: #48484A;                  /* Medium dark - Tertiary text */
    --gray-4: #8E8E93;                  /* Medium gray - Placeholder text */
    --gray-5: #AEAEB2;                  /* Light gray - Disabled text */
    --gray-6: #C7C7CC;                  /* Very light gray - Borders */
    
    /* ========== LEGACY ALIASES (Backward Compatibility) ========== */
    --primary-matte: #007AFF;           /* Alias to primary-color */
    --primary-matte-dark: #0051D5;      /* Alias to primary-dark */
    --secondary-matte: #8E8E93;         /* Alias to gray-4 */
    --secondary-matte-dark: #48484A;    /* Alias to gray-3 */
    --dark-gray: #3A3A3C;               /* Alias to gray-2 */
    
    /* ========== STANDARD COLORS ========== */
    --white: #FFFFFF;                   /* Pure white */
    --black: #1C1C1E;                   /* Almost black (iOS style) */
    --light-gray: #F2F2F7;              /* iOS light gray */
    --gray: #C7C7CC;                    /* iOS medium gray */
    
    /* ========== BACKGROUND COLORS ========== */
    --bg-primary: #FFFFFF;              /* Pure white - Main background */
    --bg-secondary: #F2F2F7;            /* Off white - Secondary background */
    --bg-tertiary: #E5E5EA;             /* Light gray - Tertiary background */
    --bg-grouped: #F2F2F7;              /* Grouped background - Cards */
    --bg-dark: #1C1C1E;                 /* Dark background */
    
    /* ========== TEXT COLORS ========== */
    --text-primary: #1C1C1E;            /* Primary text (gray-1) */
    --text-secondary: #3A3A3C;          /* Secondary text (gray-2) */
    --text-tertiary: #48484A;           /* Tertiary text (gray-3) */
    --text-muted: #8E8E93;              /* Muted text (gray-4) */
    --text-disabled: #AEAEB2;           /* Disabled text (gray-5) */
    --text-light: #FFFFFF;              /* Light text */
    
    /* ========== BORDER COLORS ========== */
    --border-color: #C7C7CC;            /* Standard border (gray-6) */
    --border-light: #E5E5EA;            /* Light border */
    --border-dark: #AEAEB2;             /* Dark border (gray-5) */
    
    /* ========== iOS SHADOW SYSTEM ========== */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 20px 48px rgba(0, 0, 0, 0.18);
    
    /* ========== iOS COLORED SHADOWS ========== */
    --shadow-primary: 0 4px 12px rgba(0, 122, 255, 0.25);
    --shadow-success: 0 4px 12px rgba(52, 199, 89, 0.25);
    --shadow-danger: 0 4px 12px rgba(255, 59, 48, 0.25);
    --shadow-warning: 0 4px 12px rgba(255, 149, 0, 0.25);
    --shadow-info: 0 4px 12px rgba(90, 200, 250, 0.25);
    
    /* ========== BORDER RADIUS (iOS Style) ========== */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;
    
    /* ========== TRANSITIONS (Smooth iOS Animations) ========== */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== DATATABLE HEADER STANDARDİZASYON - iOS SOLID BLUE ===== */
.table-dark th,
.table thead th.table-dark,
.table-dark thead th {
    background: linear-gradient(135deg, #4a6fa5 0%, #3a5a8a 100%) !important;    /* Soft Blue Gradient */
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    padding: 14px 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    transition: var(--transition-base) !important;
}

/* DataTable Header Hover Effects */
.table-dark th:hover,
.table thead th.table-dark:hover,
.table-dark thead th:hover {
    background: var(--primary-dark) !important;     /* Darker blue on hover #0051D5 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* DataTable Sorting Icons */
.table-dark th .sorting_asc::after,
.table-dark th .sorting_desc::after,
.table-dark th .sorting::after {
    color: #FFFFFF !important;
    opacity: 0.9;
}

/* Specific DataTable IDs Standardization */
#usersTable thead th,
#dealersTable thead th,
#customersTable thead th,
#licensesTable thead th,
#distributorsTable thead th,
#licenseRequestsTable thead th,
#reportsTable thead th,
#invoicesTable thead th,
#dealerApplicationsTable thead th,
#myTrustedDevicesTable thead th,
#usersSecurityTable thead th,
#trustedDevicesTable thead th,
#productsTable thead th,
#quotesTable thead th,
#salesTable thead th,
#quoteRequestsTable thead th,
#productRequestsTable thead th,
#announcementsTable thead th,
#notificationsTable thead th,
#logsTable thead th,
#knowledgeCenterTable thead th,
#taxesTable thead th,
#withholdingTaxesTable thead th,
#taxCombinationsTable thead th {
    background: #050b1f !important;    /* Same as sidebar background */
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    padding: 14px 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

/* DataTable Header Text Color Override (for any missed cases) */
.table thead th {
    color: var(--text-primary) !important;
}

/* ===== KNOWLEDGE CENTER SPECIFIC STYLES ===== */
/* FAQ Items */
.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background: #fff;
    padding: 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-base);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-answer {
    padding: 20px;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Document and Download Items */
.document-item, .download-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition-base);
}

.document-item:hover, .download-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.table-dark thead th,
.table thead th.table-dark {
    color: var(--white) !important;
    background-color: var(--primary-color) !important;
}

/* Generic DataTable Header Standardization (catch-all) */
table[id*="Table"] thead th,
table[id*="table"] thead th {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-dark) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

/* DataTable Responsive Header Fix */
.table-responsive .table thead th {
    border-bottom: 2px solid var(--primary-dark) !important;
}

/* ===== NAV-TABS MAT RENKLERİ - APP.ALL.CSS OVERRIDE ===== */
.nav-tabs {
    background-color: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.nav-tabs .nav-link {
    border: none !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
    margin-bottom: 0 !important;
    padding: 1rem 1.25rem !important;
    position: relative !important;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--bg-secondary) !important;
    border-color: transparent !important;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--white) !important;
    border-color: var(--border-color) var(--border-color) var(--white) !important;
    font-weight: 600 !important;
}

/* App.all.css override - aktif sekme alt çizgisi */
.nav-tabs li .active::after,
.nav-tabs li.active::after,
.nav-tabs .nav-link.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 20% !important;
    width: 60% !important;
    height: 3px !important;
    background-color: var(--primary-color) !important;
    border-radius: 2px 2px 0 0 !important;
    transform: scaleX(1) !important;
}

/* App.all.css override - pasif sekme hover efekti */
.nav-tabs li:not(.title-tab) a::after,
.nav-tabs .nav-link:not(.active)::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background-color: var(--primary-light) !important;
    transition: all 0.3s ease-in-out !important;
    transform: translateX(-50%) !important;
}

.nav-tabs li:not(.title-tab) a:not(.active):hover::after,
.nav-tabs .nav-link:not(.active):hover::after {
    width: 60% !important;
}

/* ===== TİPOGRAFİ ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===== MAT METİN RENKLERİ ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

/* İkon renkleri - Mat ve sade */
.text-icon-primary { color: var(--primary-matte) !important; }
.text-icon-success { color: var(--success-color) !important; }
.text-icon-warning { color: var(--warning-color) !important; }
.text-icon-danger { color: var(--danger-color) !important; }
.text-icon-muted { color: var(--text-muted) !important; }

/* Dışa aktar butonu kaldırıldı - CSS temizlendi */

/* ===== LAYOUT VE GRID ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* Bootstrap Grid Override - app.all.css çakışmasını önlemek için */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    .col-md-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    .col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    .col-lg-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* ===== FORM ELEMANLARI ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== TABLO STİLLERİ ===== */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text-primary);
    vertical-align: top;
    border-color: var(--border-color);
    background-color: var(--white);
}

.table > :not(caption) > * > * {
    padding: 0.75rem 1rem;
    background-color: transparent;
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px transparent;
    color: var(--text-primary);
}

.table > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--bg-secondary);
}

.table > thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.table > thead > tr > th {
    border-bottom: 2px solid var(--primary-dark);
    font-weight: 600;
    text-align: left;
    color: var(--white);
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table > tbody > tr > td {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table > tbody > tr:hover > * {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered > :not(caption) > * {
    border-width: 1px 0;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}

/* ===== MODAL STİLLERİ ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modal içindeki table-responsive için çift scroll önleme */
.modal-body .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
}

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    border-bottom-right-radius: calc(0.375rem - 1px);
    border-bottom-left-radius: calc(0.375rem - 1px);
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("../svg/close-icon.svg") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

/* ===== RESPONSIVE TASARIM ===== */

/* Responsive Breakpoint Sistemi */
/* Mobil (xs) - < 576px */
@media (max-width: 575.98px) {
    .container {
        padding: 0 10px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px; /* DataTable için yatay padding */
        margin: 0 -15px; /* Card padding'i dengelemek için */
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.25rem;
    }
}

/* Küçük Tablet (sm) - ≥ 576px */
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

/* Tablet (md) - ≥ 768px */
@media (min-width: 768px) {
    .modal-dialog {
        max-width: 700px;
    }
    
    .card-deck {
        display: flex;
        flex-flow: row wrap;
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }
    
    .card-deck .card {
        flex: 1 0 0%;
        margin-right: 0.5rem;
        margin-left: 0.5rem;
    }
}

/* Desktop (lg) - ≥ 992px */
@media (min-width: 992px) {
    .modal-dialog {
        max-width: 800px;
    }
    
    .card-deck .card {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

/* Büyük Desktop (xl) - ≥ 1200px */
@media (min-width: 1200px) {
    .modal-dialog {
        max-width: 1140px;
    }
    
    .card-deck .card {
        flex: 0 0 calc(25% - 1rem);
    }
}

/* Çok Büyük (xxl) - ≥ 1400px */
@media (min-width: 1400px) {
    .card-deck .card {
        flex: 0 0 calc(20% - 1rem);
    }
}

/* ===== FONT SINIFLARI ===== */
.font-monospace {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* ===== BASIT TABLO TASARIMI ===== */
.table-simple {
    background-color: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-simple thead {
    background-color: var(--primary-color);
}

.table-simple thead th {
    color: var(--white) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    padding: 1rem;
    border: none;
    background-color: var(--primary-color) !important;
}

/* Table dark override for table-simple */
.table-simple.table-dark thead th,
.table-simple .table-dark thead th {
    color: var(--white) !important;
    background-color: var(--primary-color) !important;
}

/* Standard Bootstrap table-dark için beyaz yazı rengi */
.table-dark thead th,
.table.table-dark thead th {
    color: var(--white) !important;
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-color) !important;
}

.table-simple tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.table-simple tbody tr:last-child {
    border-bottom: none;
}

.table-simple tbody tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

.table-simple tbody tr:hover {
    background-color: var(--bg-tertiary);
}

.table-simple td {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    vertical-align: middle;
}

.table-simple .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* ===== BASIT ARAMA ALANI ===== */
.search-simple .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.search-simple .form-control {
    border-color: #dee2e6;
}

.search-simple .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ===== İŞLEM BUTONLARI ===== */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.btn-warning {
    background: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #ffc107;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Buton grup stilleri */
.btn-group-sm .btn {
    margin: 0 3px;
    border-radius: 8px !important;
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-group-sm .btn:first-child {
    margin-left: 0;
}

.btn-group-sm .btn:last-child {
    margin-right: 0;
}

/* İkon stilleri */
.btn i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
    transition: transform 0.2s ease;
}

.btn-sm i {
    font-size: 0.8rem;
    margin-right: 0.125rem;
    transition: transform 0.2s ease;
}

/* Buton hover efektleri */
.btn:hover i {
    transform: scale(1.1);
}

/* Buton ripple efekti */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::before {
    width: 100px;
    height: 100px;
}

/* Buton disabled durumu */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: inherit !important;
    border-color: inherit !important;
}

/* Outline butonlar için özel disabled durumu */
.btn-warning:disabled {
    color: #ffc107;
    border-color: #ffc107;
    background: transparent;
}

.btn-warning:disabled:hover {
    color: #ffc107;
    border-color: #ffc107;
    background: transparent;
}

.btn-danger:disabled {
    color: #dc3545;
    border-color: #dc3545;
    background: transparent;
}

.btn-danger:disabled:hover {
    color: #dc3545;
    border-color: #dc3545;
    background: transparent;
}

/* Custom Tooltip Stilleri */
.custom-tooltip {
    --bs-tooltip-bg: rgba(0, 0, 0, 0.9);
    --bs-tooltip-color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
}

.custom-tooltip .tooltip-inner {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-tooltip .tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Buton loading durumu */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

/* Outline butonlar için loading durumu */
.btn-warning.loading::after {
    border-top-color: #ffc107;
}

.btn-danger.loading::after {
    border-top-color: #dc3545;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* ===== HOVER KARTLARI ===== */
.hover-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(192,192,192,0.3) !important;
    background-color: #f8f9fa;
}

/* ===== DASHBOARD KARTLARI ===== */
.card-modern {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.bg-gradient-primary {
    background-color: var(--primary-matte);
}

/* ===== KART HEADER RENKLERİ - MAT DÜZENLEMESİ ===== */
.card-header.bg-light {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.card-header.bg-light .text-dark {
    color: var(--text-primary) !important;
}

.card-header.bg-light .text-muted {
    color: var(--text-muted) !important;
}

.card-header.bg-light i.text-muted {
    color: var(--text-muted) !important;
}

/* Kart header'lardaki ikonları mat renklere çevir */
.card-header i.text-primary { 
    color: var(--primary-matte) !important; 
}

.card-header i.text-success { 
    color: var(--success-color) !important; 
}

.card-header i.text-info { 
    color: var(--primary-matte) !important; 
}

.card-header i.text-warning { 
    color: var(--warning-color) !important; 
}

/* ===== İSTATİSTİK KARTLARI - MAT TASARIM ===== */
.stat-card {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* İstatistik kartları için mat icon renkleri */
.stat-card .text-primary,
.stat-card i.text-primary { 
    color: var(--primary-matte) !important; 
}

.stat-card .text-success,
.stat-card i.text-success { 
    color: var(--success-color) !important; 
}

.stat-card .text-info,
.stat-card i.text-info { 
    color: var(--primary-matte) !important; 
}

.stat-card .text-warning,
.stat-card i.text-warning { 
    color: var(--warning-color) !important; 
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* ===== BREADCRUMB TASARIMI ===== */
.breadcrumb {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.breadcrumb-item a {
    color: #667eea;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #5a6fd8;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    font-weight: bold;
}

/* ===== MODAL TASARIMI ===== */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== iOS STYLE MODALS ===== */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--primary-color);
    color: #FFFFFF;
    border-bottom: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px 24px;
}

.modal-header.bg-primary {
    background: var(--primary-color) !important;
}

.modal-header.bg-success {
    background: var(--success-color) !important;
}

.modal-header.bg-danger {
    background: var(--danger-color) !important;
}

.modal-header.bg-warning {
    background: var(--warning-color) !important;
}

.modal-header.bg-info {
    background: var(--info-color) !important;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #FFFFFF;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-primary);
}

.modal-footer {
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

/* Modal form stilleri */
.modal .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}


/* Modal buton stilleri */
.modal .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal .btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modal .btn-secondary {
    background-color: #6c757d;
    border: none;
}

.modal .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Modal animasyonları */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Modal genişlik ayarları */
.modal-xl {
    max-width: 1200px;
}

.modal-xl .modal-body {
    padding: 3rem;
}

/* Modal form grupları */
.modal-form-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.modal-form-group h6 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.modal-form-group .row {
    margin-bottom: 1rem;
}

.modal-form-group .row:last-child {
    margin-bottom: 0;
}

/* Form alanları arası boşluk */
.modal-form-group .col-md-4,
.modal-form-group .col-md-6 {
    margin-bottom: 1rem;
}

.modal-form-group .col-md-4:last-child,
.modal-form-group .col-md-6:last-child {
    margin-bottom: 0;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050 !important;
}

.modal-backdrop.show {
    opacity: 1;
}

/* ===== iOS STYLE DEALER FORM - MODERN & PROFESSIONAL ===== */

/* iOS Form Section Groups */
.ios-form-section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-form-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 255, 0.2);
}

/* iOS Section Header */
.ios-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F2F2F7;
}

.ios-section-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.ios-section-icon i {
    color: #FFFFFF;
    font-size: 14px;
}

.ios-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1C1C1E;
    margin: 0;
    letter-spacing: -0.3px;
}

/* iOS Modern Input Style */
.ios-form-section .form-control,
.ios-form-section .form-select {
    border: 1.5px solid #D1D1D6;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    color: #1C1C1E;
    background: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ios-form-section .form-control:focus,
.ios-form-section .form-select:focus {
    border-color: #007AFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.08);
    outline: none;
}

.ios-form-section .form-control::placeholder {
    color: #8E8E93;
    font-size: 15px;
}

/* iOS Modern Label Style */
.ios-form-section .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #3A3A3C;
    margin-bottom: 8px;
    letter-spacing: -0.1px;
    display: flex;
    align-items: center;
}

.ios-form-section .form-label .text-danger {
    color: #FF3B30;
    margin-left: 3px;
    font-size: 15px;
}

/* iOS Form Text (Helper) */
.ios-form-section .form-text {
    font-size: 12px;
    color: #8E8E93;
    margin-top: 6px;
    line-height: 1.4;
}

/* iOS Alert Boxes */
.ios-form-section .alert {
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ios-form-section .alert-info {
    background: linear-gradient(135deg, #E3F2FD 0%, #F0F9FF 100%);
    color: #0051D5;
    border-left: 4px solid #007AFF;
}

.ios-form-section .alert i {
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* iOS Readonly Inputs */
.ios-form-section .form-control[readonly],
.ios-form-section .form-select[disabled] {
    background: #F2F2F7;
    color: #8E8E93;
    border-color: #E5E5EA;
    cursor: not-allowed;
}

/* Vergi Numarası ve Vergi Dairesi - Aynı boyut */
.ios-form-section #tax_number.form-control,
.ios-form-section #tax_office.form-control {
    height: 46px !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
}

.ios-form-section #tax_office.form-control::placeholder {
    font-size: 15px !important;
    color: #8E8E93 !important;
}

/* Datalist dropdown styling - Beyaz arka plan */
input[list]::-webkit-calendar-picker-indicator {
    background: #FFFFFF;
    color: #007AFF;
}

/* Datalist dropdown max height - Scroll ekler */
#taxOfficeList {
    max-height: 200px !important;
    overflow-y: auto !important;
}

/* Chrome/Safari için datalist options */
option {
    font-size: 14px;
    padding: 8px 12px;
}

/* Autofill background fix */
.ios-form-section #tax_office.form-control:-webkit-autofill,
.ios-form-section #tax_office.form-control:-webkit-autofill:hover,
.ios-form-section #tax_office.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1C1C1E !important;
    background-color: #FFFFFF !important;
}

/* iOS Textarea Style */
.ios-form-section textarea.form-control {
    min-height: 80px;
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

/* iOS Input Groups */
.ios-form-section .row {
    margin-bottom: 0;
}

.ios-form-section .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.ios-form-section .row {
    margin-left: -8px;
    margin-right: -8px;
}

/* iOS Modal Footer Modern Style */
.modal-footer.ios-footer {
    background: #F2F2F7;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
    gap: 12px;
}

/* iOS Modern Buttons */
.modal-footer.ios-footer .btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.2px;
}

.modal-footer.ios-footer .btn-primary {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
}

.modal-footer.ios-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.45);
}

.modal-footer.ios-footer .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.modal-footer.ios-footer .btn-secondary {
    background: #FFFFFF;
    color: #007AFF;
    border: 1.5px solid #D1D1D6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.modal-footer.ios-footer .btn-secondary:hover {
    background: #F2F2F7;
    border-color: #007AFF;
    transform: translateY(-1px);
}

/* iOS Button Icons */
.modal-footer.ios-footer .btn .btn-icon {
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
}

/* iOS Form Spacing */
.ios-form-section .mb-3 {
    margin-bottom: 16px !important;
}

.ios-form-section .mb-4 {
    margin-bottom: 20px !important;
}

/* iOS Select2 Style Override */
.ios-form-section .select2-container--default .select2-selection--single {
    border: 1.5px solid #D1D1D6;
    border-radius: 12px;
    height: 46px;
    padding: 8px 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-form-section .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #007AFF;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* iOS Select2 v3.x Style - Tax Office & Others */
.ios-form-section .select2-container {
    width: 100% !important;
}

.ios-form-section .select2-container .select2-choice {
    height: 46px;
    line-height: 46px;
    border: 1.5px solid #D1D1D6;
    border-radius: 12px;
    padding: 0 16px;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-form-section .select2-container .select2-choice .select2-chosen {
    line-height: 46px;
    color: #1C1C1E;
    font-size: 15px;
}

.ios-form-section .select2-container .select2-choice abbr {
    top: 16px;
    right: 35px;
}

.ios-form-section .select2-container .select2-choice .select2-arrow {
    border-left: 1px solid #D1D1D6;
    background: transparent;
    width: 34px;
    right: 0;
}

.ios-form-section .select2-container .select2-choice .select2-arrow b {
    background-position: 0 4px;
}

.ios-form-section .select2-container.select2-container-active .select2-choice,
.ios-form-section .select2-container.select2-dropdown-open .select2-choice {
    border-color: #007AFF;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
    outline: none;
}

.ios-form-section .select2-drop {
    border: 1.5px solid #007AFF;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
}

.ios-form-section .select2-results .select2-result-label {
    padding: 10px 16px;
    font-size: 15px;
    color: #1C1C1E;
}

.ios-form-section .select2-results .select2-highlighted {
    background: #007AFF;
    color: #FFFFFF;
}

.ios-form-section .select2-search input {
    border: 1.5px solid #D1D1D6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 15px;
    margin: 8px;
    width: calc(100% - 16px) !important;
}

.ios-form-section .select2-search input:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    outline: none;
}

/* iOS Modal Body Scroll */
.modal-body.ios-body {
    background: #F2F2F7;
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* iOS Scrollbar */
.modal-body.ios-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body.ios-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.modal-body.ios-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-body.ios-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* iOS Form Animation */
.ios-form-section {
    animation: iosFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iosFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* iOS Input Number Style */
.ios-form-section input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
}

.ios-form-section input[type="number"]::-webkit-outer-spin-button,
.ios-form-section input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* iOS Date Input Style */
.ios-form-section input[type="date"] {
    cursor: pointer;
}

/* iOS Required Star Style */
.ios-form-section .form-label .text-danger {
    font-weight: 700;
    font-size: 14px;
}

/* ===== DARK SIDEBAR - Professional Style ===== */
.sidebar-menu li a {
    color: rgba(255, 255, 255, 0.85); /* Light text on dark background */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 10px;
    margin: 2px 12px;
    position: relative;
    overflow: hidden;
    font-weight: 400;
    background: transparent;
}

/* Hover effect - subtle light highlight */
.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

/* Active state - vibrant blue */
.sidebar-menu li.active > a {
    color: #FFFFFF !important;
    background: #007AFF !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Active hover - brighter blue */
.sidebar-menu li.active > a:hover {
    background: #0084FF !important;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Icon styling - light icons */
.sidebar-menu li a .icon {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
    stroke-width: 2;
    flex-shrink: 0;
    transition: color 0.25s ease;
}

.sidebar-menu li a:hover .icon {
    color: #FFFFFF;
}

.sidebar-menu li.active > a .icon {
    color: #FFFFFF;
}

/* Menu text styling */
.sidebar-menu li a .menu-text {
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.24px;
    line-height: 20px;
    color: inherit; /* Inherit from parent <a> */
}

.sidebar-menu li.active > a .menu-text {
    font-weight: 500;
    color: #FFFFFF;
}

/* ===== DARK CATEGORY HEADERS - Professional Style ===== */
.menu-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 4px 16px;
    margin: 16px 12px 4px 12px;
    cursor: pointer !important;
    border-radius: 0;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5); /* Light gray on dark background */
    text-transform: uppercase;
    letter-spacing: -0.08px;
    user-select: none;
    transition: color 0.2s ease;
}

.menu-category-header:hover {
    color: rgba(255, 255, 255, 0.7);
}

.menu-category-header .category-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-category-header .category-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6); /* Light icon on dark background */
    opacity: 1;
    flex-shrink: 0;
}

.menu-category-header:hover .category-icon {
    color: rgba(255, 255, 255, 0.8);
}

.menu-category-header .category-icon i {
    font-size: 13px !important;
}

/* Ok işareti - varsayılan sağa dönük (kapalı) */
.menu-category-header .collapse-arrow {
    transition: none; /* İlk yüklemede animasyon yok */
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4); /* Light arrow on dark background */
    transform: rotate(-90deg);
}

.menu-category-header:hover .collapse-arrow {
    color: rgba(255, 255, 255, 0.6);
}

/* JavaScript yüklendikten sonra animasyon aktif */
.menu-system-ready .menu-category-header .collapse-arrow {
    transition: transform 0.3s ease;
}

/* Açık kategorilerde ok aşağı dönük */
.menu-category-header:not(.collapsed) .collapse-arrow {
    transform: rotate(0deg);
}

/* Kapalı kategorilerde ok sağa dönük */
.menu-category-header.collapsed .collapse-arrow {
    transform: rotate(-90deg);
}

/* Kategori içeriği - varsayılan kapalı */
.menu-category-content {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    display: block !important;
    /* İlk yüklemede animasyon yok */
    transition: none !important;
}

/* JavaScript yüklendikten sonra animasyon aktif */
.menu-system-ready .menu-category-content {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out !important;
}

/* Açık kategoriler */
.menu-category-content:not(.collapsed) {
    max-height: 2000px !important;
    overflow: visible !important;
    opacity: 1 !important;
}

/* Kapalı kategoriler (açıkça belirtilmiş) */
.menu-category-content.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    display: block !important;
}

/* Kategori içindeki ul - spesifik selector ile app.all.css'i override et */
.sidebar-menu .menu-category .menu-category-content ul,
.sidebar-menu li.menu-category .menu-category-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: static !important;
    max-height: none !important;
    left: auto !important;
    background-color: transparent !important;
}

/* Kategori içindeki li itemları */
.sidebar-menu .menu-category .menu-category-content ul li,
.sidebar-menu li.menu-category .menu-category-content ul li {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Alt menü itemları için link stilleri - Dark theme */
.sidebar-menu .menu-category .menu-category-content ul li a,
.sidebar-menu li.menu-category .menu-category-content ul li a {
    padding: 0.6rem 1.25rem 0.6rem 3rem !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    color: rgba(255, 255, 255, 0.85) !important; /* Light text on dark background */
    text-decoration: none !important;
    border-radius: 0.5rem !important;
    margin: 0.15rem 0.75rem !important;
    transition: all 0.2s ease-in-out !important;
}

.sidebar-menu .menu-category .menu-category-content ul li a:hover,
.sidebar-menu li.menu-category .menu-category-content ul li a:hover {
    background-color: rgba(255, 255, 255, 0.08) !important; /* Light overlay on dark background */
    color: #FFFFFF !important;
    transform: translateX(2px) !important;
}

.sidebar-menu .menu-category .menu-category-content ul li.active a,
.sidebar-menu li.menu-category .menu-category-content ul li.active a {
    background-color: #007AFF !important; /* iOS blue for active state */
    color: #FFFFFF !important;
}

/* Link içindeki icon ve text - Dark theme */
.sidebar-menu .menu-category .menu-category-content ul li a .icon,
.sidebar-menu li.menu-category .menu-category-content ul li a .icon {
    margin-right: 0.75rem !important;
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0 !important;
    color: rgba(255, 255, 255, 0.7) !important; /* Light icons on dark background */
}

.sidebar-menu .menu-category .menu-category-content ul li a:hover .icon {
    color: #FFFFFF !important;
}

.sidebar-menu .menu-category .menu-category-content ul li.active a .icon {
    color: #FFFFFF !important;
}

.sidebar-menu .menu-category .menu-category-content ul li a .menu-text,
.sidebar-menu li.menu-category .menu-category-content ul li a .menu-text {
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.85) !important; /* Light text on dark background */
}

.sidebar-menu .menu-category .menu-category-content ul li a:hover .menu-text {
    color: #FFFFFF !important;
}

.sidebar-menu .menu-category .menu-category-content ul li.active a .menu-text {
    color: #FFFFFF !important;
}

/* Aktif kategori vurgusu */
.menu-category.has-active .menu-category-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-dark);
}

.menu-category.has-active .menu-category-header .collapse-arrow {
    color: var(--white);
}

/* ===== SIDEBAR BACKGROUND - Dark Professional Style ===== */
.sidebar,
.sidebar-scroll,
#sidebar-menu,
.sidebar-menu {
    background: #050b1f !important; /* Dark navy blue */
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar-custom,
#default-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--gray-300) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Logo arka planı */
.sidebar-brand,
.brand-logo,
.brand-logo-mini {
    background: transparent !important;
    border-bottom: 1px solid var(--gray-300) !important;
}

/* ===== SIDEBAR FOOTER STYLING ===== */
.sidebar-footer {
    position: relative;
    padding: 1rem;
    margin-top: auto;
    border-top: 2px solid #e3e8ef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.sidebar-footer .footer-content {
    text-align: center;
}

.sidebar-footer .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-footer .footer-info {
    padding: 0.5rem 0;
}

.sidebar-footer .footer-company {
    color: #2c3e50;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.sidebar-footer .footer-company i {
    color: var(--primary-color);
}

.sidebar-footer .footer-version {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.sidebar-footer .badge {
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 0.25rem;
}

/* ===== NAVBAR ENHANCEMENTS ===== */
.navbar-clock {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.navbar-clock:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.navbar-clock i {
    font-size: 1.1rem;
    color: #ffd700;
}

.navbar-clock #navbar-time {
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: white;
}

.navbar-clock #navbar-date {
    font-size: 0.8rem;
    opacity: 0.9;
}

.navbar-exchange {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-exchange .exchange-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 0.5rem;
    color: white;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
    transition: all 0.3s ease;
}

.navbar-exchange .exchange-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.navbar-exchange .exchange-item i {
    font-size: 0.9rem;
    color: #ffd700;
}

.navbar-exchange .exchange-item .fw-bold {
    font-size: 0.85rem;
    margin-right: 0.3rem;
}

.navbar-exchange .exchange-item .rate-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

/* User Dropdown Enhanced */
.user-dropdown-menu {
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border: none !important;
}

/* Tüm dropdown item ikonları görünür olsun */
.user-dropdown-menu a i[class*="fa-"] {
    color: #6c757d !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.user-dropdown-menu .dropdown-header {
    padding: 1rem !important;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.user-dropdown-menu .dropdown-header strong,
.user-dropdown-menu .dropdown-header strong * {
    color: white !important;
    font-size: 0.95rem !important;
}

.user-dropdown-menu .dropdown-header small,
.user-dropdown-menu .dropdown-header small *,
.user-dropdown-menu .dropdown-header .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.75rem !important;
}

.user-dropdown-menu .dropdown-item {
    padding: 0.65rem 1rem !important;
    transition: all 0.2s ease !important;
    color: #495057 !important;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa !important;
    padding-left: 1.2rem !important;
}

.user-dropdown-menu .dropdown-item i,
.user-dropdown-menu .dropdown-item .fas,
.user-dropdown-menu .dropdown-item .fa {
    width: 20px;
    text-align: center;
    color: #6c757d !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.user-dropdown-menu .dropdown-item:hover i,
.user-dropdown-menu .dropdown-item:hover .fas,
.user-dropdown-menu .dropdown-item:hover .fa {
    color: #495057 !important;
}

/* Icon class özellikle */
.user-dropdown-menu .dropdown-item .icon-16 {
    width: 20px !important;
    height: auto !important;
    font-size: 16px !important;
    color: #6c757d !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 2FA ve diğer iconlar özellikle */
.user-dropdown-menu .dropdown-item .fa-shield-alt,
.user-dropdown-menu .dropdown-item .fa-user,
.user-dropdown-menu .dropdown-item .fa-key,
.user-dropdown-menu .dropdown-item .fa-sign-out-alt {
    color: #6c757d !important;
    display: inline-block !important;
    font-size: 14px !important;
}

/* Çıkış Yap özel durum */
.user-dropdown-menu .dropdown-item.text-danger i {
    color: #dc3545 !important;
}

/* ===== 2FA SETTINGS PAGE ===== */
.qr-code-container {
    max-width: 250px;
    margin: 0 auto;
    padding: 20px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.user-select-all {
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
}

.btn-group-vertical .btn {
    margin-bottom: 5px;
}

.btn-group-vertical .btn:last-child {
    margin-bottom: 0;
}

.notification-alert {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Standalone menu items (Ana Sayfa, Ayarlar) - EXACTLY same as category headers */
.sidebar-menu > li.menu-item-standalone {
    list-style: none;
    margin: 0;
}

.sidebar-menu > li.menu-item-standalone a.menu-category-header-style {
    /* Copy ALL properties from .menu-category-header - EXACTLY THE SAME */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left align to match categories */
    padding: 8px 16px 4px 16px;
    margin: 16px 12px 4px 12px;
    cursor: pointer !important;
    border-radius: 0;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5); /* Same as category headers - light on dark */
    text-transform: uppercase;
    letter-spacing: -0.08px;
    user-select: none;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.sidebar-menu > li.menu-item-standalone a.menu-category-header-style:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Active state - blue like category headers when clicked */
.sidebar-menu > li.menu-item-standalone a.menu-category-header-style.active {
    color: #007AFF;
    font-weight: 600; /* Same as normal, not bold */
}

.sidebar-menu > li.menu-item-standalone .category-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu > li.menu-item-standalone .category-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6); /* Light icon on dark background */
    opacity: 1;
    flex-shrink: 0;
}

.sidebar-menu > li.menu-item-standalone a.menu-category-header-style:hover .category-icon {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-menu > li.menu-item-standalone .category-icon i {
    font-size: 13px !important;
}

.sidebar-menu > li.menu-item-standalone a.menu-category-header-style.active .category-icon {
    color: #007AFF;
    opacity: 1;
}

/* Hide collapse arrow in standalone items */
.sidebar-menu > li.menu-item-standalone .collapse-arrow {
    display: none !important;
}

/* ===== SIDEBAR FOOTER TASARIMI ===== */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem;
}

.sidebar-footer .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.75rem;
}

.sidebar-footer .fas {
    font-size: 0.625rem;
}

/* Sidebar scroll alanını footer için ayarla */
.sidebar-scroll {
    padding-bottom: 3rem;
}

/* ===== UTILITY SINIFLARI ===== */

/* Minimum Boşluk Sistemi */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Responsive Boşluklar */
@media (max-width: 767.98px) {
    .mt-sm-0 { margin-top: 0 !important; }
    .mt-sm-1 { margin-top: 0.25rem !important; }
    .mt-sm-2 { margin-top: 0.5rem !important; }
    .mt-sm-3 { margin-top: 1rem !important; }
    
    .mb-sm-0 { margin-bottom: 0 !important; }
    .mb-sm-1 { margin-bottom: 0.25rem !important; }
    .mb-sm-2 { margin-bottom: 0.5rem !important; }
    .mb-sm-3 { margin-bottom: 1rem !important; }
    
    .p-sm-0 { padding: 0 !important; }
    .p-sm-1 { padding: 0.25rem !important; }
    .p-sm-2 { padding: 0.5rem !important; }
    .p-sm-3 { padding: 1rem !important; }
}

@media (min-width: 768px) {
    .mt-md-0 { margin-top: 0 !important; }
    .mt-md-1 { margin-top: 0.25rem !important; }
    .mt-md-2 { margin-top: 0.5rem !important; }
    .mt-md-3 { margin-top: 1rem !important; }
    
    .mb-md-0 { margin-bottom: 0 !important; }
    .mb-md-1 { margin-bottom: 0.25rem !important; }
    .mb-md-2 { margin-bottom: 0.5rem !important; }
    .mb-md-3 { margin-bottom: 1rem !important; }
    
    .p-md-0 { padding: 0 !important; }
    .p-md-1 { padding: 0.25rem !important; }
    .p-md-2 { padding: 0.5rem !important; }
    .p-md-3 { padding: 1rem !important; }
}

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-40 { width: 40% !important; }
.w-30 { width: 30% !important; }
.w-25 { width: 25% !important; }
.w-auto { width: auto !important; }
.h-100 { height: 100% !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }

.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }

.border { border: 1px solid var(--border-color) !important; }
.border-0 { border: 0 !important; }
.rounded { border-radius: 0.375rem !important; }
.rounded-0 { border-radius: 0 !important; }

.shadow { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }

/* ===== ÖZEL SINIFLAR ===== */

/* Kart Tasarım Sistemi */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--white);
    background-clip: border-box;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--border-dark);
}

/* Eşit Yükseklik Kartlar */
.card-equal-height {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-equal-height .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.card-equal-height .card-footer {
    margin-top: auto;
}

/* Minimum Boşluk Kartlar */
.card-compact {
    margin-bottom: 0.5rem;
}

.card-compact .card-header {
    padding: 0.5rem 0.75rem;
}

.card-compact .card-body {
    padding: 0.75rem;
}

.card-compact .card-footer {
    padding: 0.5rem 0.75rem;
}

/* Responsive Grid Kartlar */
.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid .card {
    margin: 0;
    height: 100%;
}

/* Kart Orantıları */
.card-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.card-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.card-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

/* Modern Kart Stilleri */
.card-modern {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
    background-color: var(--white);
}

.card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Kart İçerik Düzeni */
.card-content-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-content-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive Kart Sütunları */
.card-columns-1 {
    column-count: 1;
}

.card-columns-2 {
    column-count: 2;
    column-gap: 1rem;
}

.card-columns-3 {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 767.98px) {
    .card-columns-2,
    .card-columns-3 {
        column-count: 1;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .card-columns-3 {
        column-count: 2;
    }
}

.card-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}

.card-body {
    flex: 1 1 auto;
    padding: 1rem;
}

.card-footer {
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom-right-radius: calc(0.375rem - 1px);
    border-bottom-left-radius: calc(0.375rem - 1px);
}

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

/* ===== iOS STYLE ALERTS ===== */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 16px 20px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.alert-success {
    background-color: var(--success-bg);      /* #E8F5E9 */
    color: var(--success-dark);               /* #248A3D */
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: var(--danger-bg);       /* #FFEBEE */
    color: var(--danger-dark);                /* #D70015 */
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: var(--warning-bg);      /* #FFF3E0 */
    color: var(--warning-dark);               /* #C27400 */
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: var(--info-bg);         /* #E0F7FA */
    color: var(--info-dark);                  /* #0096D6 */
    border-left: 4px solid var(--info-color);
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-primary { 
    background-color: var(--primary-color); 
    color: var(--white);
    font-weight: 500;
}
.badge-secondary { 
    background-color: var(--secondary-color); 
    color: var(--white);
    font-weight: 500;
}
.badge-success { 
    background-color: var(--success-color); 
    color: var(--white);
    font-weight: 500;
}
.badge-danger { 
    background-color: var(--danger-color); 
    color: var(--white);
    font-weight: 500;
}
.badge-warning { 
    background-color: var(--warning-color); 
    color: var(--black); 
    font-weight: 500;
}
.badge-info { 
    background-color: var(--info-color); 
    color: var(--white);
    font-weight: 500;
}

/* ===== DATATABLE HEADER STİLLERİ ===== */
.table-dark th,
.table thead.table-dark th {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
    border-color: #374151 !important;
    font-weight: 600;
}

.table-dark th a,
.table thead.table-dark th a {
    color: var(--text-light) !important;
}

/* DataTables sorting arrows beyaz olsun */
.table-dark th.sorting:before,
.table-dark th.sorting:after,
.table-dark th.sorting_asc:before,
.table-dark th.sorting_asc:after,
.table-dark th.sorting_desc:before,
.table-dark th.sorting_desc:after {
    color: var(--text-light) !important;
}

/* ==========================================
   Dashboard Styles
   ========================================== */

/* Statistics Cards */
.stat-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Quick Access Cards */
.quick-access-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.quick-access-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.quick-access-card .card-body {
    position: relative;
    overflow: hidden;
}

.quick-access-card .card-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.quick-access-card:hover .card-body::before {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Dashboard Charts */
.chart-container {
    position: relative;
    height: 200px;
    margin: 20px 0;
}

.chart-height-200 {
    height: 200px;
}

.chart-height-300 {
    height: 300px;
}

.chart-height-400 {
    height: 400px;
}

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
}

/* Activity List */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.activity-description {
    font-size: 13px;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
}

/* Financial Summary */
.financial-summary .financial-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.financial-summary .financial-item:last-child {
    border-bottom: none;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 20px;
    }
    
    .chart-container {
        height: 180px;
    }
    
    .activity-list {
        max-height: 300px;
    }
}

/* Custom Colors for Dashboard */
.text-purple {
    color: #6f42c1 !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

/* Dashboard Loading States */
.dashboard-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.dashboard-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

/* ===== FİLTER VE BUTON DÜZENLEMELERİ ===== */

/* Filter butonları için temiz tasarım */
.filter-actions .btn-group {
    box-shadow: none !important;
}

.filter-actions .btn-outline-secondary {
    border: 1px solid #dee2e6 !important;
    background: white !important;
    color: #6c757d !important;
    box-shadow: none !important;
    transition: all 0.15s ease-in-out;
}

.filter-actions .btn-outline-secondary:hover {
    background: #f8f9fa !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
    box-shadow: none !important;
}

.filter-actions .btn-outline-secondary:focus,
.filter-actions .btn-outline-secondary:active {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25) !important;
}

.filter-actions .dropdown-toggle::after {
    margin-left: 0.5em;
}

/* DataTable container için ek boşluk */
.card-body .table-responsive {
    margin: 1rem 0;
    padding: 0 10px;
    margin-left: -10px;
    margin-right: -10px;
}

/* Kompakt filter row - Standart boyutlar */
.filter-row {
    margin-bottom: 1rem;
    padding: 0 15px; /* Tablo ile aynı hizalama */
    margin-left: -15px;
    margin-right: -15px;
}


.filter-row .btn-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem; /* Daha küçük padding */
    height: 32px; /* Form elemanları ile aynı yükseklik */
    line-height: 1.2;
}

/* Arama kutusu özel boyut */
.filter-row input[type="text"] {
    max-width: 200px; /* Arama kutusunu küçült */
}

/* Dropdown'lar eşit boyut */
.filter-row select {
    min-width: 120px;
    max-width: 140px;
}


/* ===== SIGNLOGGER LANDING PAGE STİLLERİ ===== */

/* Ana Body */
.signlogger-landing {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../svg/pattern-bg.svg") repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Logo ve Başlık */
.hero-logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Özellik Kartları Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.feature-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* İstatistikler */
.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 120px;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.login-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.login-header p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.login-body {
    padding: 2rem;
}

/* Form Stilleri */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.login-form .input-group {
    position: relative;
}

.login-form .input-group-text {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-right: none;
    padding: 0.75rem 1rem;
}

.login-form .form-control {
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-color: var(--border-color);
    transition: all 0.2s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 85, 104, 0.15);
}

.login-form .form-control:focus + .input-group-text,
.login-form .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
}

.password-toggle {
    border-left: none !important;
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease !important;
}

.password-toggle:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

.login-btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.3);
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Dealer Application */
.dealer-application {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.section-divider {
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.section-divider span {
    background: var(--white);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.dealer-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dealer-buttons .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Landing Footer */

/* ===== KNOWLEDGE CENTER STİLLERİ ===== */

/* Stats Icon Styling */
/* Removed - consolidated to dashboard section */

/* Login Button Style for Knowledge Center */
.login-btn-style {
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
}

.login-btn-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.3);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

/* Search Highlight */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Tab Content Minimum Height */
.tab-content {
    min-height: 400px;
}

/* Button Icon Spacing */
.btn-icon {
    margin-right: 0.5rem;
}

/* Knowledge Center Icon Styles */
.badge-icon {
    margin-right: 0.25rem;
}

/* Knowledge Center DataTable Compatibility */
#knowledge-center-stats .table-dark th,
.knowledge-center-table .table-dark th {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-dark) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

.faq-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.doc-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.download-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.download-count-icon {
    margin-right: 0.25rem;
}

.modal-item-icon {
    font-size: 2rem;
    display: inline-block;
    line-height: 1;
}

.date-icon,
.edit-icon {
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

.page-icon {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.dropdown-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.no-data-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.form-section-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.info-icon {
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

/* Stats Cards Hover Effect */
#knowledge-center-stats .card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Mobile Responsive Adjustments for Knowledge Center */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn-group .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .login-btn-style {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Landing Footer */
.landing-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Icon Stilleri */
.feature-icon span,
.form-icon,
.toggle-icon,
.btn-icon,
.alert-icon,
.forgot-icon,
.dealer-icon,
.search-icon {
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
}

.btn-icon {
    margin-right: 0.5rem;
}

.alert-icon {
    margin-right: 0.5rem;
}

.forgot-icon,
.dealer-icon,
.search-icon {
    margin-right: 0.25rem;
}

.form-icon {
    font-size: 1em;
}

.toggle-icon {
    font-size: 1em;
    cursor: pointer;
}

/* Feature Icon Özel Ayarları */
.feature-icon span {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Modal Icon Stilleri */
.modal-icon,
.section-icon,
.update-icon,
.close-icon,
.print-icon,
.policy-icon,
.terms-icon,
.support-icon {
    margin-right: 0.5rem;
    font-size: 1em;
    display: inline-block;
}

/* Modal Content Stilleri */
.policy-section,
.terms-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.policy-section h6,
.terms-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.policy-section ul,
.terms-section ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.policy-section li,
.terms-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.policy-section li:last-child,
.terms-section li:last-child {
    margin-bottom: 0;
}

.policy-section strong,
.terms-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.policy-footer,
.terms-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

/* Modal Header Özel Stilleri */
.modal-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.modal-header h5 {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Modal Body Scroll Stilleri - REMOVED DUPLICATE */

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Modal Footer Stilleri */
.modal-footer .btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
}

/* Footer Link Icon Stilleri */
.footer-links .policy-icon,
.footer-links .terms-icon,
.footer-links .support-icon {
    margin-right: 0.25rem;
    font-size: 0.9em;
}

/* ===== PASSWORD RESET PAGE STİLLERİ ===== */

/* Reset Title ve Subtitle */
.reset-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.reset-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Password Reset Container */
.password-reset-container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

/* Reset Card */
.reset-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.reset-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.reset-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.reset-header p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.reset-body {
    padding: 2rem;
}

/* Reset Form Stilleri */
.reset-form .form-group {
    margin-bottom: 1.5rem;
}

.reset-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.reset-form .input-group {
    position: relative;
}

.reset-form .input-group-text {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-right: none;
    padding: 0.75rem 1rem;
}

.reset-form .form-control {
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-color: var(--border-color);
    transition: all 0.2s ease;
}

.reset-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 85, 104, 0.15);
}

.reset-form .form-control:focus + .input-group-text,
.reset-form .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
}

.reset-form .form-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.reset-btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    margin-top: 1rem;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.3);
}

/* Reset Footer */
.reset-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.back-to-login {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.back-to-login:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.back-icon {
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.back-to-login:hover .back-icon {
    transform: translateX(-2px);
}

/* Reset Icon Stilleri */
.reset-icon,
.info-icon,
.back-icon {
    margin-right: 0.5rem;
    display: inline-block;
}

.info-icon {
    margin-right: 0.25rem;
}

/* Responsive Design for Reset Page */
@media (max-width: 767.98px) {
    .reset-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .reset-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .reset-header,
    .reset-body {
        padding: 1.5rem;
    }
    
    .password-reset-container {
        margin: 1rem;
    }
}

@media (max-width: 575.98px) {
    .reset-title {
        font-size: 1.75rem;
    }
    
    .reset-header,
    .reset-body {
        padding: 1rem;
    }
}

/* Responsive Tasarım */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .stats-row {
        justify-content: center;
    }
    
    .login-card {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        align-self: center;
        margin-bottom: 1rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .login-header,
    .login-body {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 1rem 0;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .features-grid {
        margin: 1rem 0;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .login-header,
    .login-body {
        padding: 1rem;
    }
}

/* ===== DEALER APPLICATION PAGE STİLLERİ ===== */

/* Dealer Application Landing */
.dealer-application-landing {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dealer-hero-section {
    display: flex;
    align-items: flex-start;
    padding: 2rem 0;
}

.dealer-hero-content {
    text-align: center;
    margin-bottom: 2rem;
}

.dealer-hero-logo {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.dealer-hero-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.dealer-hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.dealer-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dealer-feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-align: center;
}

.dealer-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dealer-feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.dealer-feature-content h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dealer-feature-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.dealer-application-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.dealer-app-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    border-radius: 16px 16px 0 0;
}

.dealer-app-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dealer-app-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.dealer-step-indicator {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    margin: 0;
}

.dealer-step {
    display: flex;
    align-items: center;
    margin: 0.25rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dealer-step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.dealer-step.completed {
    color: var(--success-color);
    font-weight: 600;
}

.dealer-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.dealer-step.active .dealer-step-number {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.dealer-step.completed .dealer-step-number {
    background: var(--success-color);
    color: var(--white);
    border-color: var(--success-color);
}

.dealer-form-container {
    padding: 2rem;
}

.dealer-form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.dealer-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dealer-form-step h4 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.dealer-form-step h4 .step-icon {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.dealer-security-info {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
}

.dealer-security-info h6 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.dealer-security-info .security-icon {
    margin-right: 0.5rem;
}

.dealer-security-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.dealer-security-info li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.dealer-navigation-buttons {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 16px 16px;
}

.dealer-btn-step {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.dealer-btn-step.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.dealer-btn-step.btn-secondary:hover {
    background: var(--text-muted);
    color: var(--white);
}

.dealer-btn-step.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.dealer-btn-step.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.dealer-btn-step.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.dealer-btn-step.btn-success:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.dealer-btn-step .btn-icon {
    margin-right: 0.5rem;
}

.dealer-btn-step .btn-icon-right {
    margin-left: 0.5rem;
}

.dealer-summary-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.dealer-summary-card .card-body {
    padding: 1.5rem;
}

.dealer-summary-card h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.dealer-summary-card p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dealer-summary-card strong {
    color: var(--text-primary);
    font-weight: 600;
}

.dealer-terms-check {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.dealer-terms-check .form-check-label {
    font-weight: 600;
    color: var(--text-primary);
}

.dealer-terms-check .form-text {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.dealer-math-security {
    background: rgba(var(--warning-rgb), 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.dealer-math-security .form-label {
    color: var(--warning-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.dealer-landing-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    margin-top: 2rem;
}

.dealer-footer-links {
    margin-top: 1rem;
}

.dealer-footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
}

.dealer-footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design for Dealer Application */
@media (max-width: 768px) {
    .dealer-hero-title {
        font-size: 2rem;
    }
    
    .dealer-hero-subtitle {
        font-size: 1rem;
    }
    
    .dealer-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dealer-app-header,
    .dealer-form-container,
    .dealer-navigation-buttons {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .dealer-step {
        font-size: 0.75rem;
        margin: 0.25rem 0.5rem;
    }
    
    .dealer-step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .dealer-navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dealer-btn-step {
        width: 100%;
        justify-content: center;
    }
}


/* Honeypot Anti-Spam Protection */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}


/* ===== DEALER APPLICATION SUCCESS & STATUS PAGE STYLES ===== */

/* Success Header */
.dealer-success-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border-radius: 16px 16px 0 0;
    color: var(--white);
}

.success-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: successBounce 2s ease-in-out infinite;
}

@keyframes successBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.success-title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.success-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Success Info Section */
.dealer-success-info {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(var(--success-rgb), 0.05) 100%);
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
}

.dealer-success-info h5 {
    color: var(--success-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.dealer-success-info .info-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.status-pending {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.status-verification {
    background: rgba(var(--info-rgb), 0.1);
    color: var(--info-color);
    border-color: var(--info-color);
}

.status-badge.warning {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.status-badge.info {
    background: rgba(var(--info-rgb), 0.1);
    color: var(--info-color);
    border-color: var(--info-color);
}

.status-badge.success {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
}

.status-badge.danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.status-badge.secondary {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--text-muted);
    border-color: var(--border-color);
}

/* Next Steps Section */
.dealer-next-steps {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
}

.dealer-next-steps h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.dealer-next-steps .steps-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Status Detail Section */
.dealer-status-detail {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.dealer-status-detail h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.dealer-status-detail h6:first-of-type {
    margin-top: 1rem;
}

.dealer-status-detail p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.status-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Action Buttons */
.dealer-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.dealer-action-buttons .dealer-btn-step {
    flex: 0 0 auto;
    min-width: 160px;
}

/* Contact Info */
.dealer-contact-info {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border-light);
}

.dealer-contact-info h6 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.dealer-contact-info .contact-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .contact-icon {
    width: 24px;
    margin-right: 0.75rem;
    color: var(--primary-color);
    text-align: center;
}

.contact-item span:last-child {
    color: var(--text-secondary);
}

/* Responsive Design for Success & Status Pages */
@media (max-width: 768px) {
    .success-title {
        font-size: 1.75rem;
    }
    
    .success-subtitle {
        font-size: 0.9rem;
    }
    
    .dealer-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dealer-action-buttons .dealer-btn-step {
        width: 100%;
        margin: 0;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-label {
        font-size: 0.85rem;
    }
    
    .info-value {
        font-size: 0.9rem;
        font-weight: 600;
    }
}


/* ===== DEALER APPLICATION TRACKING FORM STYLES ===== */

/* Tracking Header */
.dealer-tracking-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px 16px 0 0;
    color: var(--white);
}

.tracking-logo {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: trackingPulse 2s ease-in-out infinite;
}

@keyframes trackingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.tracking-title {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.tracking-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

/* Tracking Buttons */
.tracking-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 1.5rem 0;
}

.tracking-buttons .dealer-btn-step {
    width: 100%;
    justify-content: center;
}

/* Responsive Design for Tracking Form */
@media (max-width: 576px) {
    .tracking-title {
        font-size: 1.5rem;
    }
    
    .tracking-subtitle {
        font-size: 0.9rem;
    }
    
    .tracking-logo {
        font-size: 3rem;
    }
}

/* ===== DATALIST SCROLL DÜZELTMELERİ ===== */
/* Datalist dropdown yüksekliği sınırla ve scroll ekle */
#dealers-datalist {
    max-height: 200px;
    overflow-y: auto;
}

/* WebKit browsers (Chrome, Safari, Edge) için datalist scroll */
input[list]::-webkit-calendar-picker-indicator {
    display: none !important;
}

/* Modern browsers için datalist styling */
datalist {
    position: absolute;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: var(--white);
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    z-index: 1000;
}

datalist option {
    padding: 8px 12px;
    color: var(--text-primary);
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
}

datalist option:hover {
    background-color: var(--bg-secondary);
}

datalist option:last-child {
    border-bottom: none;
}

/* ===== CUSTOM DROPDOWN STİLLERİ ===== */
.custom-dropdown-container {
    position: relative;
}

.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    z-index: 1050;
}

.custom-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.15s ease-in-out;
}

.custom-dropdown-item:hover,
.custom-dropdown-item.highlighted {
    background-color: var(--bg-secondary);
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item.selected {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Dropdown açık olduğunda input'un alt köşelerini düzelt */
.custom-dropdown-container.open .form-control {
    border-radius: 0.25rem 0.25rem 0 0;
    border-bottom-color: var(--primary-color);
}

/* Scroll bar styling */
.custom-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.custom-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--border-dark);
}

/* ===== MODERN MINIMAL FILTER BUTTONS ===== */
.filter-btn-minimal {
    border: none !important;
    background: none !important;
    padding: 0.5rem !important;
    font-size: 1.25rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-radius: 0.375rem !important;
}

/* Icon size standardization for all filter buttons */
.filter-btn-minimal i {
    font-size: 1.25rem !important;
}

/* Clear Filter Button */
.filter-btn-clear {
    color: #6c757d !important;
}

.filter-btn-clear:hover {
    color: #495057 !important;
    background-color: rgba(108, 117, 125, 0.1) !important;
    transform: scale(1.1);
}

/* Export Button */
.filter-btn-export {
    color: #0d6efd !important;
}

.filter-btn-export:hover {
    color: #0b5ed7 !important;
    background-color: rgba(13, 110, 253, 0.1) !important;
    transform: scale(1.1);
}

/* Remove Bootstrap dropdown-toggle styling */
.filter-btn-export.dropdown-toggle::after {
    margin-left: 0.255em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* DataTable wrapper positioning for export button */
.dataTables_wrapper .dataTables_length {
    float: left;
}

.dataTables_wrapper .dataTables_filter {
    display: none !important; /* Hide default search */
}

.dataTables_wrapper .dataTables_info {
    float: left;
    clear: both;
    padding-top: 0.755em;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    text-align: right;
    padding-top: 0.25em;
}

/* Custom export button positioning */
.table-export-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100;
}

.table-bulk-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
}

.dataTables_wrapper {
    position: relative;
}


/* ========================================
   CAMPAIGNS & ANNOUNCEMENTS STYLES
   ======================================== */

/* Priority Badges */
.badge.priority-high,
.badge.bg-danger {
    background-color: #dc2626 !important;
}

.badge.priority-medium,
.badge.bg-warning {
    background-color: #d97706 !important;
}

.badge.priority-low,
.badge.bg-success {
    background-color: #16a34a !important;
}

/* Announcement Type Badges */
.announcement-type.type-info,
.badge.bg-info {
    background-color: #0284c7 !important;
}

.announcement-type.type-warning {
    background-color: #d97706 !important;
}

.announcement-type.type-critical {
    background-color: #dc2626 !important;
}

.announcement-type.type-update,
.badge.bg-primary {
    background-color: #4a5568 !important;
}

/* Notification Dropdown Styles */
.notification-dropdown {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    border: none;
    border-radius: 0.5rem;
}

.notification-dropdown .dropdown-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.notification-item {
    padding: 0.75rem 1rem;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-dropdown .btn-link {
    padding: 0;
    text-decoration: none;
    font-size: 0.875rem;
}

/* Notification Badge */
.position-relative .badge.rounded-pill {
    padding: 0.25em 0.5em;
    min-width: 1.5rem;
    transform: translate(30%, -30%);
}

/* Widget Styles */
.list-group-item-action:hover {
    background-color: #f8f9fa;
}

.list-group-item-action:active {
    background-color: #e9ecef;
}

/* Campaign & Announcement Cards */
.campaign-card .card,
.announcement-card {
    transition: all 0.3s ease;
}

.campaign-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.announcement-card:hover {
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.15);
}

/* Unread Announcement Indicator */
.announcement-card.unread {
    border-left: 4px solid #0284c7;
    background-color: #f0f9ff;
}

/* Campaign Priority Colors */
.priority-high {
    color: #dc2626;
}

.priority-medium {
    color: #d97706;
}

.priority-low {
    color: #16a34a;
}

/* Announcement Type Colors */
.text-info {
    color: #0284c7 !important;
}

.text-warning {
    color: #d97706 !important;
}

.text-danger {
    color: #dc2626 !important;
}

.text-primary {
    color: #4a5568 !important;
}

/* Widget Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px !important;
        max-width: 90vw;
    }
    
    .campaign-card .card-img-wrapper {
        height: 150px !important;
    }
}

/* Animation for Badge */
@keyframes badgePulse {
    0%, 100% {
        transform: translate(30%, -30%) scale(1);
    }
    50% {
        transform: translate(30%, -30%) scale(1.1);
    }
}

.position-relative .badge.rounded-pill.bg-danger {
    animation: badgePulse 2s infinite;
}

/* ========== iOS STATS CARDS - GRADIENT STYLE ========== */

/* Primary Stats Card (Blue) */
.card.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-primary) !important;
    transition: var(--transition-base) !important;
}

.card.bg-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.30) !important;
}

.card.bg-primary .card-body,
.card.bg-primary h1,
.card.bg-primary h2,
.card.bg-primary h3,
.card.bg-primary h4,
.card.bg-primary h5,
.card.bg-primary h6,
.card.bg-primary p,
.card.bg-primary span {
    color: #FFFFFF !important;
}

/* Success Stats Card (Green) */
.card.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-success) !important;
    transition: var(--transition-base) !important;
}

.card.bg-success:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.30) !important;
}

.card.bg-success .card-body,
.card.bg-success h1,
.card.bg-success h2,
.card.bg-success h3,
.card.bg-success h4,
.card.bg-success h5,
.card.bg-success h6,
.card.bg-success p,
.card.bg-success span {
    color: #FFFFFF !important;
}

/* Warning Stats Card (Orange) */
.card.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-light) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-warning) !important;
    transition: var(--transition-base) !important;
}

.card.bg-warning:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 149, 0, 0.30) !important;
}

.card.bg-warning .card-body,
.card.bg-warning h1,
.card.bg-warning h2,
.card.bg-warning h3,
.card.bg-warning h4,
.card.bg-warning h5,
.card.bg-warning h6,
.card.bg-warning p,
.card.bg-warning span {
    color: #FFFFFF !important;
}

/* Info Stats Card (Teal) */
.card.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--info-light) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-info) !important;
    transition: var(--transition-base) !important;
}

.card.bg-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 200, 250, 0.30) !important;
}

.card.bg-info .card-body,
.card.bg-info h1,
.card.bg-info h2,
.card.bg-info h3,
.card.bg-info h4,
.card.bg-info h5,
.card.bg-info h6,
.card.bg-info p,
.card.bg-info span {
    color: #FFFFFF !important;
}

/* Danger Stats Card (Red) */
.card.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-light) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-danger) !important;
    transition: var(--transition-base) !important;
}

.card.bg-danger:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.30) !important;
}

.card.bg-danger .card-body,
.card.bg-danger h1,
.card.bg-danger h2,
.card.bg-danger h3,
.card.bg-danger h4,
.card.bg-danger h5,
.card.bg-danger h6,
.card.bg-danger p,
.card.bg-danger span {
    color: #FFFFFF !important;
}

/* Stats Card Icon Styling */
.card[class*="bg-"] .fas,
.card[class*="bg-"] .fa {
    opacity: 0.9;
    font-size: 2rem;
}

/* Stats Number Styling */
.card[class*="bg-"] h4 {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

/* Stats Label Styling */
.card[class*="bg-"] span,
.card[class*="bg-"] small {
    font-weight: 500;
    opacity: 0.95;
}

/* ========== END iOS STATS CARDS ========== */

/* ========== iOS STYLE FORMS & INPUTS ========== */

/* Input Group */
.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background-color: var(--primary-bg);
}

/* Checkbox & Radio - iOS Style */
.form-check-input {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    cursor: pointer;
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-bg);
    outline: none;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input[type="radio"] {
    border-radius: var(--radius-full);
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

/* Form Text Helper */
.form-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* Invalid Feedback */
.invalid-feedback {
    color: var(--danger-color);
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

/* Valid Feedback */
.valid-feedback {
    color: var(--success-color);
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}


/* ========== END iOS FORMS & INPUTS ========== */

/* ========== iOS STYLE NAVIGATION & TABS ========== */

/* Nav Tabs - iOS Style */
.nav-tabs {
    border-bottom: 2px solid var(--border-light);
    background: transparent;
    padding: 0;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition-base);
    position: relative;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
    border: none;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border: none;
    font-weight: 600;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

/* Nav Pills - iOS Style */
.nav-pills .nav-link {
    border-radius: var(--radius-md);
    padding: 10px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
}

.nav-pills .nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary);
}

/* Sidebar Navigation */
.sidebar .nav-link {
    color: var(--text-primary);
    border-radius: var(--radius-md);
    margin: 4px 8px;
    padding: 12px 16px;
    transition: var(--transition-base);
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background: var(--primary-bg);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link i,
.sidebar .nav-link .fas {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Breadcrumb - iOS Style */
.breadcrumb {
    background: transparent;
    padding: 12px 0;
    margin: 0;
}

.breadcrumb-item {
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    font-size: 18px;
    padding: 0 8px;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

/* Pagination - iOS Style */
.pagination {
    gap: 4px;
}

.page-link {
    color: var(--primary-color);
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-weight: 500;
    transition: var(--transition-base);
}

.page-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary);
}

.page-item.disabled .page-link {
    color: var(--text-disabled);
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

/* ========== END iOS NAVIGATION & TABS ========== */

/* ========== iOS MOBILE RESPONSIVE OPTIMIZATIONS ========== */

/* Mobile First - iOS Touch Targets */
@media (max-width: 767px) {
    
    /* Buttons - iOS minimum touch target 44px */
    .btn {
        padding: 12px 20px;
        font-size: 16px;
        border-radius: var(--radius-lg);
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-sm {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 18px;
        min-height: 48px;
    }
    
    /* Full width buttons on mobile */
    .btn-responsive,
    .btn-block {
        width: 100%;
        margin-bottom: 12px;
    }
    
    /* Form Controls - Larger touch targets */
    .form-control,
    
    /* Checkboxes & Radio - Larger */
    .form-check-input {
        width: 28px;
        height: 28px;
    }
    
    /* Stats Cards - Stack vertically */
    .card.bg-primary,
    .card.bg-success,
    .card.bg-warning,
    .card.bg-info,
    .card.bg-danger {
        margin-bottom: 16px;
        border-radius: var(--radius-xl);
    }
    
    .card-body {
        padding: 20px;
    }
    
    /* DataTable - Horizontal scroll */
    .table-responsive {
        border-radius: var(--radius-lg);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table thead th {
        font-size: 14px;
        padding: 12px 10px;
        white-space: nowrap;
    }
    
    .table tbody td {
        font-size: 14px;
        padding: 12px 10px;
    }
    
    /* Action buttons in tables */
    .btn-sm {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* Modals - Full screen on mobile */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }
    
    .modal-content {
        border-radius: 0;
        height: 100vh;
    }
    
    .modal-header {
        border-radius: 0;
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Modal içindeki table-responsive için çift scroll önleme (mobile) */
    .modal-body .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
        max-height: none;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
    
    /* Navigation - Mobile menu */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1050;
        transition: left var(--transition-base);
        box-shadow: var(--shadow-xl);
        background: var(--bg-primary);
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar .nav-link {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Navbar - Compact on mobile */
    .navbar {
        padding: 12px 16px;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    /* Tabs - Scrollable on mobile */
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* Alerts - Full width */
    .alert {
        border-radius: var(--radius-lg);
        padding: 14px 16px;
        margin-bottom: 12px;
    }
    
    /* Breadcrumb - Smaller text */
    .breadcrumb {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 6px;
    }
    
    /* Pagination - Compact */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .btn {
        padding: 10px 18px;
    }
    
    .card-body {
        padding: 18px;
    }
    
    .modal-dialog {
        max-width: 90%;
    }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
    /* Hover effects only on desktop */
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
    
    .sidebar {
        position: relative;
        width: 280px; /* Increased from 260px to 280px for better text display */
    }
}

/* Large Desktop (≥ 1200px) */
@media (min-width: 1200px) {
    .modal-dialog {
        max-width: 1000px;
    }
    
    .sidebar {
        width: 300px; /* Increased from 280px to 300px for better text display */
    }
}

/* iOS Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
    .modal-footer,
    .navbar {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    
    .sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Reduce Motion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRODUCT VIEW DETAILS STYLES ===== */
.info-group {
    padding: 8px 0;
}

.info-label {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 4px;
    display: block;
}

.info-value {
    font-size: 0.95rem;
    color: var(--gray-900);
    padding: 4px 8px;
    background-color: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
}

.description-content {
    padding: 12px;
    background-color: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.5;
}

.sync-status-info {
    padding: 12px;
    background-color: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
}

.sync-status-icon {
    font-size: 1.2rem;
}

.form-section-icon {
    font-size: 1rem;
    margin-right: 8px;
}

.btn-icon {
    margin-right: 4px;
}

/* ===== BUTTON ICON STANDARDIZATION ===== */
/* All button icons should have consistent size */
.btn i,
.btn .btn-icon i,
button i {
    font-size: 1rem !important;
}

/* Small button icons */
.btn-sm i,
.btn-sm .btn-icon i {
    font-size: 0.875rem !important;
}

/* Large button icons */
.btn-lg i,
.btn-lg .btn-icon i {
    font-size: 1.25rem !important;
}

/* Dropdown toggle buttons - icon only (no text) */
.dropdown-toggle:only-child i,
.btn.dropdown-toggle:not(:has(span)):not(:has(text)) i {
    font-size: 1rem !important;
    margin: 0 !important;
}

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CUSTOMER CREATE FORM STYLES ===== */
.customer-form-container {
    max-width: 100%;
    margin: 0 auto;
}

.form-section {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.form-section:nth-child(even) {
    border-left-color: var(--success-color);
}

.form-section:nth-child(3) {
    border-left-color: var(--warning-color);
}

.step-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.step-header h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-header p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.form-actions {
    background: var(--gray-100);
    margin: 0 -1.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.form-actions .alert {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .form-actions .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions .alert {
        margin-bottom: 0 !important;
    }
}

/* ===== PASSWORD STRENGTH METER ===== */
.password-strength-meter {
    height: 5px;
    background: var(--gray-300);
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.strength-weak { 
    background: var(--danger-color); 
    width: 25%; 
}

.strength-fair { 
    background: var(--warning-color); 
    width: 50%; 
}

.strength-good { 
    background: #ffc107; 
    width: 75%; 
}

.strength-strong { 
    background: var(--success-color); 
    width: 100%; 
}

/* ===== INFO ITEM SPACING ===== */
.info-item {
    margin-bottom: 0.5rem;
}

/* ===== MIN HEIGHT UTILITIES ===== */
.min-h-300 {
    min-height: 300px !important;
}

/* ===== HEADER/NAVBAR SPECIFIC STYLES ===== */
/* Announcement Bell Icon */
.navbar .fa-bell {
    font-size: 1.3rem;
}

/* Announcement Badge */
#announcementBadge {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}

/* Announcements Dropdown Menu */
#announcementsDropdownMenu {
    min-width: 350px;
    max-height: 500px;
    overflow-y: auto;
}

/* Announcements Content Padding */
#announcementsContent {
    padding: 0 10px 10px 10px;
}

/* User Dropdown Menu */
.user-dropdown-menu {
    min-width: 220px;
}

/* Announcement Item */
.announcement-item {
    cursor: pointer;
}

.announcement-item p {
    font-size: 0.85rem;
}

/* ===== DROPDOWN MENUS - iOS STYLE ===== */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    margin: 0.125rem 0;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary-color);
}

.dropdown-item:active {
    background: rgba(0, 122, 255, 0.15);
    color: var(--primary-color);
}

.dropdown-divider {
    border-top: 1px solid var(--gray-300);
    margin: 0.5rem 0;
}

.dropdown-header {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* ===== NAVBAR ICONS & BADGES - iOS STYLE ===== */
.navbar .nav-link {
    color: var(--gray-700);
    transition: var(--transition-base);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 122, 255, 0.08);
}

.navbar .nav-link .icon {
    color: var(--gray-700);
    transition: var(--transition-base);
}

.navbar .nav-link:hover .icon {
    color: var(--primary-color);
}

/* Badge Styles */
.badge {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.35em 0.65em;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ef4444 100%) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #10b981 100%) !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f59e0b 100%) !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #06b6d4 100%) !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

/* ===== MOBILE RESPONSIVE - NAVBAR & SIDEBAR ===== */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar-custom,
    #default-navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem;
    }
    
    /* Sidebar Mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1050;
        width: 300px; /* Increased from 280px to 300px for better text display */
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    }
    
    /* Mobile Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    /* Dropdown Menu Mobile */
    .dropdown-menu {
        max-width: calc(100vw - 2rem);
    }
    
    /* User Dropdown Mobile */
    .user-dropdown-menu {
        min-width: 200px;
        right: 0 !important;
        left: auto !important;
    }
    
    /* Announcements Dropdown Mobile */
    #announcementsDropdownMenu {
        min-width: 300px;
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 576px) {
    /* Extra Small Devices */
    .navbar-clock,
    .navbar-exchange {
        display: none !important;
    }
    
    .sidebar {
        width: 280px; /* Increased from 260px to 280px for better text display */
    }
    
    #announcementsDropdownMenu {
        min-width: 280px;
    }
}

/* ===== DASHBOARD iOS-STYLE WIDGETS ===== */
/* Stats Cards - Modern iOS Style */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 140px !important;
}

/* Stats Card Backgrounds - Vibrant Gradients */
.card.bg-primary {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%) !important;
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3) !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%) !important;
    box-shadow: 0 8px 32px rgba(52, 199, 89, 0.3) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #5AC8FA 0%, #64D2FF 100%) !important;
    box-shadow: 0 8px 32px rgba(90, 200, 250, 0.3) !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, #FF9500 0%, #FFCC00 100%) !important;
    box-shadow: 0 8px 32px rgba(255, 149, 0, 0.3) !important;
}

.card.bg-danger {
    background: linear-gradient(135deg, #FF3B30 0%, #FF453A 100%) !important;
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.3) !important;
}

.card.bg-secondary {
    background: linear-gradient(135deg, #8E8E93 0%, #AEAEB2 100%) !important;
    box-shadow: 0 8px 32px rgba(142, 142, 147, 0.3) !important;
    min-height: 140px !important;
    color: #FFFFFF !important;
}

.card.bg-dark {
    background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%) !important;
    box-shadow: 0 8px 32px rgba(28, 28, 30, 0.3) !important;
    min-height: 140px !important;
    color: #FFFFFF !important;
}

/* Ensure all text in secondary and dark cards is white */
.card.bg-secondary .card-body,
.card.bg-secondary h1,
.card.bg-secondary h2,
.card.bg-secondary h3,
.card.bg-secondary h4,
.card.bg-secondary h5,
.card.bg-secondary h6,
.card.bg-secondary p,
.card.bg-secondary span,
.card.bg-dark .card-body,
.card.bg-dark h1,
.card.bg-dark h2,
.card.bg-dark h3,
.card.bg-dark h4,
.card.bg-dark h5,
.card.bg-dark h6,
.card.bg-dark p,
.card.bg-dark span {
    color: #FFFFFF !important;
}

/* Stats Card Hover Effect - iOS Style */
.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-info:hover,
.card.bg-warning:hover,
.card.bg-danger:hover,
.card.bg-secondary:hover,
.card.bg-dark:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2) !important;
}

/* Stats Card Body - Modern Layout */
.card.bg-primary .card-body,
.card.bg-success .card-body,
.card.bg-info .card-body,
.card.bg-warning .card-body,
.card.bg-danger .card-body,
.card.bg-secondary .card-body,
.card.bg-dark .card-body {
    padding: 1.75rem !important;
    position: relative;
    z-index: 1;
}

/* Stats Card Numbers - Large & Bold */
.card.bg-primary .card-body h4,
.card.bg-success .card-body h4,
.card.bg-info .card-body h4,
.card.bg-warning .card-body h4,
.card.bg-danger .card-body h4,
.card.bg-secondary .card-body h4,
.card.bg-dark .card-body h4 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Stats Card Labels */
.card.bg-primary .card-body span,
.card.bg-success .card-body span,
.card.bg-info .card-body span,
.card.bg-warning .card-body span,
.card.bg-danger .card-body span,
.card.bg-secondary .card-body span,
.card.bg-dark .card-body span {
    font-size: 1.125rem !important;  /* 2 font büyük: 0.875rem + 0.25rem = 1.125rem */
    font-weight: 500 !important;
    color: #FFFFFF !important;  /* Beyaz renk */
    opacity: 1 !important;  /* Tam beyaz için opacity 1 */
    letter-spacing: 0.3px;
}

/* Stats Card Icon Container - GLOBAL STANDARD */
.stats-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
}

/* Stats Icon - FontAwesome Icon Inside */
.stats-icon i {
    font-size: 2rem !important;
    line-height: 1 !important;
}

/* Stats Card Decorative Elements */
.card.bg-primary::before,
.card.bg-success::before,
.card.bg-info::before,
.card.bg-warning::before,
.card.bg-danger::before,
.card.bg-secondary::before,
.card.bg-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

/* Dashboard Widget Cards */
.dashboard-widget-card {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    transition: var(--transition-base);
}

.dashboard-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Widget Headers */
.dashboard-widget-card .card-header {
    border: none !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: 1.25rem 1.5rem !important;
}

.dashboard-widget-card .card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.dashboard-widget-card .card-header.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #10b981 100%) !important;
}

.dashboard-widget-card .card-header.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #06b6d4 100%) !important;
}

.dashboard-widget-card .card-header.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f59e0b 100%) !important;
}

/* Widget Body */
.dashboard-widget-card .card-body {
    padding: 1.5rem !important;
    background: var(--white);
}


/* ========== END iOS MOBILE RESPONSIVE ========== */

/* ===== KEEN DASHBOARD MODERN STYLES ===== */

/* Dashboard Container - Keen Style */
.dashboard-modern {
    background: #f5f8fa;
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Keen Stat Cards - Modern Design */
.keen-stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.keen-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Stat Value Styling */
.keen-stat-card .stat-value h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Stat Label Styling */
.keen-stat-card .stat-label {
    font-size: 0.938rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Text White 75% Opacity */
.text-white-75 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Stat Icon Wrapper */
.stat-icon-wrapper {
    min-width: 60px;
}

.stat-icon-bg {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    /* Daha koyu arka plan - ikonlar görünsün */
    background-color: rgba(0, 0, 0, 0.15) !important;
}

.keen-stat-card:hover .stat-icon-bg {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Clickable Stat Cards */
.clickable-stat-card {
    cursor: pointer;
    user-select: none;
}

.clickable-stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.2) !important;
}

.clickable-stat-card:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18) !important;
}

/* Gradient Backgrounds for Stats */
.keen-stat-card.bg-gradient-primary {
    background: linear-gradient(135deg, #3699FF 0%, #00D4FF 100%) !important;
}

.keen-stat-card.bg-gradient-success {
    background: linear-gradient(135deg, #1BC5BD 0%, #0BB783 100%) !important;
}

.keen-stat-card.bg-gradient-info {
    background: linear-gradient(135deg, #8950FC 0%, #C854F6 100%) !important;
}

.keen-stat-card.bg-gradient-warning {
    background: linear-gradient(135deg, #FFA800 0%, #FFDC5E 100%) !important;
}

.keen-stat-card.bg-gradient-danger {
    background: linear-gradient(135deg, #F64E60 0%, #FF6B81 100%) !important;
}

.keen-stat-card.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

/* Keen Widget Cards */
.keen-widget-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px !important;
}

.keen-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* Widget Card Headers - Keen Style */
.keen-widget-card .card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #EBEDF3 !important;
    padding: 1.25rem 1.75rem !important;
}

.keen-widget-card .card-header h5 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #181C32;
    margin: 0;
}

.keen-widget-card .card-header h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #181C32;
    margin: 0;
}

.keen-widget-card .card-header p.small {
    font-size: 0.813rem;
    color: #B5B5C3;
    margin: 0;
}

/* Widget Card Body */
.keen-widget-card .card-body {
    padding: 1.75rem !important;
    background-color: #ffffff;
}

/* Light Primary Button */
.btn-light-primary {
    background-color: #E1F0FF !important;
    color: #3699FF !important;
    border: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-light-primary:hover {
    background-color: #3699FF !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(54, 153, 255, 0.3);
}

/* Light Danger Badge */
.bg-light-danger {
    background-color: #FFE2E5 !important;
}

/* Badge Styles - Keen */
.badge.bg-light {
    background-color: #F3F6F9 !important;
    color: #7E8299 !important;
    font-weight: 500;
}

.badge.bg-light.text-success {
    background-color: #C9F7F5 !important;
    color: #1BC5BD !important;
}

.badge.bg-light.text-danger {
    background-color: #FFE2E5 !important;
    color: #F64E60 !important;
}

/* Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* Activity List - Keen Style */
.activity-list .activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid #EBEDF3;
    transition: all 0.2s ease;
}

.activity-list .activity-item:last-child {
    border-bottom: none;
}

.activity-list .activity-item:hover {
    background-color: #F3F6F9;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 6px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #F3F6F9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-title {
    font-size: 0.938rem;
    font-weight: 600;
    color: #181C32;
}

.activity-description {
    font-size: 0.875rem;
    color: #7E8299;
}

.activity-time {
    font-size: 0.813rem;
    color: #B5B5C3;
}

/* Financial Summary - Keen Style */
.financial-summary .financial-item {
    padding: 0.75rem 0;
    border-bottom: 1px dashed #EBEDF3;
}

.financial-summary .financial-item:last-child {
    border-bottom: none;
}

/* Performance Metrics - Keen Style */
.performance-metrics .metric-item {
    padding: 0.75rem 0;
}

/* System Status - Keen Style */
.system-status .status-item {
    padding: 0.75rem 0;
}

/* Responsive Grid Gap */
.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Typography - Keen Style */
h5.fw-bold {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

h6.fw-bold {
    font-weight: 600 !important;
}

/* Card Shadows - Keen Style */
.shadow-sm {
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.08) !important;
}

/* Border Radius - Keen Style */
.rounded-3 {
    border-radius: 0.5rem !important;
}

/* Goals and KPIs - Keen Style */
.goals-kpis .goal-item {
    padding: 0.75rem 0;
}

.goals-kpis .goal-item .progress {
    height: 6px;
    border-radius: 3px;
    background-color: #F3F6F9;
}

.goals-kpis .goal-item .progress-bar {
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Alerts - Keen Style */
.alerts-list .alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background-color: #FFE2E5 !important;
    color: #F64E60 !important;
}

.alert-warning {
    background-color: #FFF4DE !important;
    color: #FFA800 !important;
}

.alert-info {
    background-color: #EEE5FF !important;
    color: #8950FC !important;
}

/* Spinner Loading States */
.keen-widget-card .spinner-border-sm {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.15em;
}

/* Hover Effects */
.keen-widget-card .card-header:hover {
    background-color: #F9FBFD !important;
}

/* Badge Animations */
.badge {
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth Transitions for All Cards */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Responsive - Keen Style */
@media (max-width: 768px) {
    .keen-stat-card .stat-value h2 {
        font-size: 1.75rem;
    }
    
    .keen-stat-card .card-body {
        padding: 1.25rem !important;
    }
    
    .stat-icon-bg {
        width: 48px;
        height: 48px;
    }
    
    .keen-widget-card .card-header {
        padding: 1rem 1.25rem !important;
    }
    
    .keen-widget-card .card-body {
        padding: 1.25rem !important;
    }
}

/* ===== END KEEN DASHBOARD STYLES ===== */

/* ========================================
   MODERN KEEN-STYLE SIDEBAR MENU
   ======================================== */

/* Modern Sidebar Menu Container */
.sidebar-menu-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu Item */
.sidebar-menu-modern .menu-item {
    margin: 2px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Menu Link - Modern Keen Style */
.sidebar-menu-modern .menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85); /* Increased from 0.7 to 0.85 for better readability */
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px; /* Reduced from 15px to 14px for better balance */
    font-weight: 600; /* Increased from 500 to 600 for better readability */
    position: relative;
    overflow: hidden;
    min-width: 0; /* Allow flex items to shrink */
    flex-shrink: 1; /* Allow shrinking if needed */
}

/* Menu Icon */
.sidebar-menu-modern .menu-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

/* Menu Title */
.sidebar-menu-modern .menu-title {
    flex: 1;
    font-weight: 600; /* Increased from 500 to 600 for better readability */
    letter-spacing: 0.01em;
    font-size: 14px; /* Reduced from 15px to 14px for better balance */
    white-space: nowrap; /* Prevent text wrapping to multiple lines */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ... for overflow text */
    margin-left: -3px; /* Move text 3px to the left for better alignment */
}

/* Menu Link Hover State */
.sidebar-menu-modern .menu-link:hover,
.sidebar-menu-modern .menu-link.menu-link-hover {
    background-color: rgba(255, 255, 255, 0.12); /* Increased from 0.08 to 0.12 for better visibility */
    color: rgba(255, 255, 255, 1); /* Increased from 0.95 to 1 for full opacity */
    transform: translateX(4px);
}

.sidebar-menu-modern .menu-link:hover .menu-icon,
.sidebar-menu-modern .menu-link.menu-link-hover .menu-icon {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Menu Link Active State */
.sidebar-menu-modern .menu-link.active {
    background-color: #2c3e52; /* Koyu temaya uygun yumuşak mavi-gri */
    color: #ffffff;
    font-weight: 600;
}

.sidebar-menu-modern .menu-link.active .menu-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.sidebar-menu-modern .menu-link.active::before {
    display: none; /* Sol border'ı kaldır */
}

/* Menu Section Divider - Keen Style */
.sidebar-menu-modern .menu-section {
    margin: 24px 16px 12px 16px;
    padding: 0;
}

.sidebar-menu-modern .menu-section-text {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 0 8px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* First Menu Section */
.sidebar-menu-modern .menu-section:first-child {
    margin-top: 16px;
}

/* Menu System Ready Animation */
#sidebar-menu:not(.menu-system-ready) {
    opacity: 0;
}

#sidebar-menu.menu-system-ready {
    opacity: 1;
    animation: fadeInMenu 0.3s ease;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Item Animation */
.sidebar-menu-modern .menu-item {
    animation: slideInLeft 0.3s ease forwards;
    opacity: 0;
}

.sidebar-menu-modern .menu-item:nth-child(1) { animation-delay: 0.05s; }
.sidebar-menu-modern .menu-item:nth-child(2) { animation-delay: 0.1s; }
.sidebar-menu-modern .menu-item:nth-child(3) { animation-delay: 0.15s; }
.sidebar-menu-modern .menu-item:nth-child(4) { animation-delay: 0.2s; }
.sidebar-menu-modern .menu-item:nth-child(5) { animation-delay: 0.25s; }
.sidebar-menu-modern .menu-item:nth-child(6) { animation-delay: 0.3s; }
.sidebar-menu-modern .menu-item:nth-child(7) { animation-delay: 0.35s; }
.sidebar-menu-modern .menu-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .sidebar-menu-modern .menu-link {
        padding: 10px 12px;
        font-size: 13px; /* Reduced from 14px to 13px for better balance */
    }
    
    .sidebar-menu-modern .menu-icon {
        width: 36px;
        min-width: 36px;
        height: 36px;
        margin-right: 10px;
        font-size: 16px;
    }
    
    .sidebar-menu-modern .menu-section {
        margin: 20px 12px 10px 12px;
    }
    
    .sidebar-menu-modern .menu-section-text {
        font-size: 10px; /* Reduced from 11px to 10px for better balance */
    }
}

/* Sidebar Scroll Enhancement */
.sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Remove old menu styles if they exist */
.menu-category,
.menu-category-header,
.menu-category-content,
.collapse-arrow,
.menu-item-standalone {
    display: none !important;
}

/* ========================================
   END MODERN KEEN-STYLE SIDEBAR MENU
   ======================================== */


/* ========================================
   KEEN-STYLE ACCORDION MENU SYSTEM
   ======================================== */

/* Accordion Parent Container */
.sidebar-menu-modern .menu-accordion {
    margin: 2px 8px;
    border-radius: 8px;
}

/* Accordion Header/Toggle */
.sidebar-menu-modern .menu-link-accordion {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85); /* Increased from 0.7 to 0.85 for better readability */
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px; /* Reduced from 15px to 14px for better balance */
    font-weight: 600; /* Increased from 500 to 600 for better readability */
    cursor: pointer;
    position: relative;
    min-width: 0; /* Allow flex items to shrink */
    flex-shrink: 1; /* Allow shrinking if needed */
}

.sidebar-menu-modern .menu-link-accordion:hover {
    background-color: rgba(255, 255, 255, 0.12); /* Increased from 0.08 to 0.12 for better visibility */
    color: rgba(255, 255, 255, 1); /* Increased from 0.95 to 1 for full opacity */
}

/* Accordion Arrow */
.sidebar-menu-modern .menu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.sidebar-menu-modern .menu-item-open .menu-arrow {
    transform: rotate(90deg);
}

.sidebar-menu-modern .menu-item-open .menu-arrow i {
    color: #3699FF;
}

/* Submenu Container */
.sidebar-menu-modern .menu-submenu {
    display: none;
    padding-left: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar-menu-modern .menu-item-open > .menu-submenu {
    display: block;
}

/* Subnav List */
.sidebar-menu-modern .menu-subnav {
    list-style: none;
    padding: 0;
    margin: 8px 0 8px 0;
}

/* Submenu Items */
.sidebar-menu-modern .menu-subnav .menu-item {
    margin: 0;
}

.sidebar-menu-modern .menu-subnav .menu-link {
    display: flex;
    align-items: center;
    padding: 10px 16px 10px 48px;
    color: rgba(255, 255, 255, 0.75); /* Increased from 0.6 to 0.75 for better readability */
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 13px; /* Reduced from 14px to 13px for better balance */
    font-weight: 500; /* Increased from 400 to 500 for better readability */
    position: relative;
}

/* Menu Bullet */
.sidebar-menu-modern .menu-bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    margin-right: 12px;
}

.sidebar-menu-modern .menu-bullet .bullet {
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Submenu Link Hover */
.sidebar-menu-modern .menu-subnav .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.08); /* Increased from 0.05 to 0.08 for better visibility */
    color: rgba(255, 255, 255, 1); /* Increased from 0.9 to 1 for full opacity */
    padding-left: 52px;
}

.sidebar-menu-modern .menu-subnav .menu-link:hover .bullet {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* Submenu Link Active */
.sidebar-menu-modern .menu-subnav .menu-link.active {
    background-color: #2c3e52; /* Ana menü ile aynı aktif renk */
    color: #ffffff;
    font-weight: 600;
    padding-left: 52px;
}

.sidebar-menu-modern .menu-subnav .menu-link.active .bullet {
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    box-shadow: none;
}

/* Accordion Open State */
.sidebar-menu-modern .menu-item-open > .menu-link-accordion {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.sidebar-menu-modern .menu-item-open > .menu-link-accordion .menu-icon {
    color: #3699FF;
}

/* Accordion Animation */
.sidebar-menu-modern .menu-submenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Section Dividers - Hidden (Using Accordion Headers Instead) */
.sidebar-menu-modern .menu-section {
    display: none !important;
}

/* Mobile Responsive - Accordion */
@media (max-width: 768px) {
    .sidebar-menu-modern .menu-link-accordion {
        padding: 10px 12px;
        font-size: 13px; /* Reduced from 14px to 13px for better balance */
    }
    
    .sidebar-menu-modern .menu-subnav .menu-link {
        padding: 8px 12px 8px 40px;
        font-size: 12px; /* Reduced from 13px to 12px for better balance */
    }
    
    .sidebar-menu-modern .menu-subnav .menu-link:hover,
    .sidebar-menu-modern .menu-subnav .menu-link.active {
        padding-left: 44px;
    }
}

/* ========================================
   END KEEN-STYLE ACCORDION MENU SYSTEM
   ======================================== */


/* ========================================
   LOGO DIVIDER - KEEN STYLE
   ======================================== */

/* Logo Divider Container */
.sidebar-logo-divider {
    padding: 16px 20px 12px 20px;
    margin: 0;
}

/* Menu Separator Line */
.sidebar-logo-divider .menu-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    opacity: 0.6;
}

/* Hover effect for subtle animation */
.sidebar-logo-divider .menu-separator {
    transition: all 0.3s ease;
}

/* Sidebar hover state */
.sidebar:hover .menu-separator {
    opacity: 0.8;
    border-top-color: rgba(255, 255, 255, 0.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar-logo-divider {
        padding: 12px 16px 8px 16px;
    }
}

/* ========================================
   END LOGO DIVIDER
   ======================================== */

/* ========================================
   MODERN iOS FILTER SECTION
   ======================================== */
.filter-section-ios {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-section-ios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.filter-section-ios .form-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* General search input styling - Normal input without Select2 */
.filter-section-ios input[type="text"] {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #ffffff !important;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    padding: 10px 14px;
    height: 40px;
    width: 100%;
    line-height: 1.2;
}

.filter-section-ios input[type="text"]:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background: #ffffff !important;
    outline: none;
}

/* General search placeholder styling */
.filter-section-ios input[type="text"]::placeholder {
    color: #6c757d;
    opacity: 1;
}


/* ========================================
   END MODERN iOS FILTER SECTION
   ======================================== */

/* ========================================
   INVOICE MODULE DESIGN STANDARDS
   ======================================== */

/* Stats Card - Primary */
.card.bg-primary {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.card.bg-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4) !important;
}

/* Stats Icon */
.stats-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Stats Text */
.card.bg-primary h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card.bg-primary span {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* DataTable Header - Sidebar Color Match */
.table-dark th,
.table thead th.table-dark,
.table-dark thead th {
    background: #050b1f !important;    /* Same as sidebar background */
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    padding: 14px 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    transition: var(--transition-base) !important;
}

/* DataTable Header Hover */
.table-dark th:hover,
.table thead th.table-dark:hover,
.table-dark thead th:hover {
    background: linear-gradient(135deg, #1a252f 0%, #0f1419 100%) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* DataTable Sorting Icons */
.table-dark th .sorting_asc::after,
.table-dark th .sorting_desc::after,
.table-dark th .sorting::after {
    color: #FFFFFF !important;
    opacity: 0.9;
}

/* ========================================
   END INVOICE MODULE DESIGN STANDARDS
   ======================================== */

/* ========================================
   SALES MODULE BULK ACTIONS FIX
   ======================================== */

/* Ensure bulk actions row is visible when shown */
#bulkActionsRow {
    display: none !important;
}

#bulkActionsRow.show {
    display: block !important;
}

/* Ensure convert to invoice button group is visible when shown */
#bulkActionsRow .btn-group {
    display: inline-block !important;
}

#bulkActionsRow .btn-group.hidden {
    display: none !important;
}

/* Force show when JavaScript shows it */
#bulkActionsRow .btn-group:not(.hidden) {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========================================
   END SALES MODULE BULK ACTIONS FIX
   ======================================== */

/* ========================================
   CLIPBOARD NOTIFICATION ANIMATIONS
   ======================================== */

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Copy button hover effect */
.cursor-pointer {
    cursor: pointer;
    transition: all 0.2s ease;
}

.cursor-pointer:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ========================================
   END CLIPBOARD NOTIFICATION ANIMATIONS
   ======================================== */

/* ========================================
   BOOTSTRAP BTN-CLOSE SVG FIX
   ======================================== */

/* Override Bootstrap's btn-close to use FontAwesome instead of SVG data URI */
.btn-close {
    background-image: none !important;
    opacity: 1;
    position: relative;
    width: 1em;
    height: 1em;
}

.btn-close::before {
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.2rem;
    color: currentColor;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-close:hover {
    opacity: 0.75;
}

/* White variant for dark backgrounds */
.btn-close-white::before {
    color: #fff;
}

/* ========================================
   END BOOTSTRAP BTN-CLOSE SVG FIX
   ======================================== */

/* ========================================
   TIER FILTER BUTTONS
   ======================================== */
.tier-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

.tier-btn {
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    transition: all 0.2s;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

.tier-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Liste Butonu - Mavi */
.tier-btn[data-tier=""] {
    border-color: #0d6efd;
    color: #0d6efd;
    background: white;
}

.tier-btn[data-tier=""]:hover {
    background: #e7f1ff;
    border-color: #0a58ca;
    color: #0a58ca;
}

.tier-btn[data-tier=""].active {
    background: #0d6efd;
    color: #e7f1ff;
    border-color: #0d6efd;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.tier-btn[data-tier=""].active:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    color: #e7f1ff;
}

/* Platin Butonu - Açık Gri/Gümüş */
.tier-btn[data-tier="PLATINUM"] {
    border-color: #adb5bd;
    color: #495057;
    background: white;
}

.tier-btn[data-tier="PLATINUM"]:hover {
    background: #f8f9fa;
    border-color: #868e96;
    color: #343a40;
}

.tier-btn[data-tier="PLATINUM"].active {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #212529;
    border-color: #adb5bd;
    box-shadow: 0 2px 4px rgba(173, 181, 189, 0.3);
}

.tier-btn[data-tier="PLATINUM"].active:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
    color: #212529;
}

/* Gold Butonu - Altın/Sarı */
.tier-btn[data-tier="GOLD"] {
    border-color: #ffc107;
    color: #856404;
    background: white;
}

.tier-btn[data-tier="GOLD"]:hover {
    background: #fff3cd;
    border-color: #ffb300;
    color: #664d03;
}

.tier-btn[data-tier="GOLD"].active {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #664d03;
    border-color: #ffc107;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.4);
}

.tier-btn[data-tier="GOLD"].active:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
    color: #664d03;
}

/* Silver Butonu - Gümüş/Gri */
.tier-btn[data-tier="SILVER"] {
    border-color: #6c757d;
    color: #495057;
    background: white;
}

.tier-btn[data-tier="SILVER"]:hover {
    background: #e9ecef;
    border-color: #5a6268;
    color: #343a40;
}

.tier-btn[data-tier="SILVER"].active {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #e9ecef;
    border-color: #6c757d;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.tier-btn[data-tier="SILVER"].active:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    color: #e9ecef;
}

/* Bronze Butonu - Bronz/Kahverengi */
.tier-btn[data-tier="BRONZE"] {
    border-color: #cd7f32;
    color: #8b4513;
    background: white;
}

.tier-btn[data-tier="BRONZE"]:hover {
    background: #f4e4d7;
    border-color: #b87333;
    color: #6b3410;
}

.tier-btn[data-tier="BRONZE"].active {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #f4e4d7;
    border-color: #cd7f32;
    box-shadow: 0 2px 4px rgba(205, 127, 50, 0.3);
}

.tier-btn[data-tier="BRONZE"].active:hover {
    background: linear-gradient(135deg, #b87333 0%, #a0662a 100%);
    color: #f4e4d7;
}

/* Fiyat Gösterimi */
.price-with-list {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-price-strikethrough {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.85em;
    font-weight: normal;
}

.tier-price-info {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 0.25rem;
}

/*