/* ============================================
   MASTERTEK OTO SERVİS - Premium Design System
   Apple-inspired minimal & professional UI
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    --color-primary: #111111;
    --color-secondary: #6b7280;
    --color-accent: #3b82f6;
    --color-bg: #f5f5f7;
    --color-surface: #ffffff;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;
    --color-text-primary: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-tertiary: #aeaeb2;
    --color-success: #34c759;
    --color-warning: #ff9f0a;
    --color-danger: #ff3b30;
    --color-info: #007aff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aeaeb2;
}

::selection {
    background: rgba(0,122,255,0.15);
    color: inherit;
}

/* ========== FOCUS ========== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== PREMIUM HEADER ========== */
.premium-header {
    background: rgba(255,255,255,0.8);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-logo {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
}
.header-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}
.header-subtitle {
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-weight: 500;
    margin-left: 8px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-search {
    width: 200px;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 13px;
    background: var(--color-bg);
    color: var(--color-text-primary);
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.header-search:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    background: white;
}
.header-search-wrapper {
    position: relative;
}
.header-search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    font-size: 13px;
}
.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
}
.header-btn:hover {
    background: var(--color-bg);
    border-color: #d1d5db;
}
.header-btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.header-btn-primary:hover {
    background: #2d2d2d;
    border-color: #2d2d2d;
}
.header-btn-success {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
}
.header-btn-success:hover {
    background: #2d9e4e;
    border-color: #2d9e4e;
}
.header-btn-warning {
    background: #f97316;
    color: white;
    border-color: #f97316;
}
.header-btn-warning:hover {
    background: #ea580c;
    border-color: #ea580c;
}
.header-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

/* ========== SIDEBAR ========== */
.premium-sidebar {
    width: 240px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.sidebar-link:hover {
    background: var(--color-bg);
    color: var(--color-text-primary);
}
.sidebar-link.active {
    background: var(--color-primary);
    color: white;
}
.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}
.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}
.sidebar-footer-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}
.sidebar-footer-card p:first-child {
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}
.sidebar-footer-card p:last-child {
    font-size: 11px;
    color: var(--color-text-tertiary);
}

/* ========== MAIN LAYOUT ========== */
.app-layout {
    display: flex;
    height: calc(100vh - 64px);
}
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    padding-bottom: 100px;
}

/* ========== CARDS ========== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}
.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.card-padding {
    padding: 24px;
}
.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body {
    padding: 0;
}

/* ========== STAT CARDS ========== */
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
    position: relative;
    transition: all var(--transition-normal);
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
}
.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.stat-detail {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 6px;
    font-weight: 500;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    cursor: pointer;
    transition: all var(--transition-normal);
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: #d1d5db;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.feature-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}
.feature-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ========== HERO CARD ========== */
.hero-card {
    background: var(--color-primary);
    border-radius: var(--radius-2xl);
    padding: 28px 32px;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.hero-value {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hero-detail {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    font-weight: 500;
}
.hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ========== INCOME CARDS ========== */
.income-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px;
}
.income-card-dark {
    background: #1a1a1a;
    border-color: #2d2d2d;
    color: white;
}
.income-card-dark .stat-label {
    color: rgba(255,255,255,0.5);
}
.income-card-dark .stat-value {
    color: white;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text-primary);
    border-color: var(--color-border);
}
.btn-secondary:hover {
    background: #e8e8ed;
}
.btn-success {
    background: var(--color-success);
    color: white;
}
.btn-success:hover {
    filter: brightness(0.9);
}
.btn-warning {
    background: var(--color-warning);
    color: white;
}
.btn-warning:hover {
    filter: brightness(0.9);
}
.btn-danger {
    background: #fff0f0;
    color: var(--color-danger);
    border-color: #fecaca;
}
.btn-danger:hover {
    background: #fee2e2;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== BADGE ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success {
    background: #ecfdf5;
    color: #059669;
}
.badge-warning {
    background: #fffbeb;
    color: #d97706;
}
.badge-danger {
    background: #fef2f2;
    color: #dc2626;
}
.badge-info {
    background: #eff6ff;
    color: #2563eb;
}
.badge-neutral {
    background: var(--color-bg);
    color: var(--color-text-secondary);
}

/* ========== TABLE ========== */
.premium-table {
    width: 100%;
    border-collapse: collapse;
}
.premium-table thead th {
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border-light);
    background: var(--color-bg);
}
.premium-table tbody td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border-light);
}
.premium-table tbody tr {
    transition: background var(--transition-fast);
}
.premium-table tbody tr:hover {
    background: rgba(0,0,0,0.015);
}
.premium-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== FILTER PILLS ========== */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-pill {
    padding: 7px 16px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.filter-pill:hover {
    border-color: #d1d5db;
    background: var(--color-bg);
}
.filter-pill.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ========== SEARCH INPUT ========== */
.search-input-wrapper {
    position: relative;
}
.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    font-size: 14px;
}
.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    outline: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.search-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.search-input::placeholder {
    color: var(--color-text-tertiary);
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 8888;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-content {
    background: var(--color-surface);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    border-radius: var(--radius-2xl);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== LIST ITEMS ========== */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition-fast);
}
.list-item:hover {
    background: rgba(0,0,0,0.015);
}
.list-item:last-child {
    border-bottom: none;
}
.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.list-item-content {
    flex: 1;
    min-width: 0;
    margin-left: 14px;
}
.list-item-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-primary);
}
.list-item-subtitle {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}
.page-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 2px;
    font-weight: 400;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    padding: 48px 24px;
    text-align: center;
}
.empty-state i {
    font-size: 40px;
    color: var(--color-text-tertiary);
    margin-bottom: 12px;
}
.empty-state p {
    color: var(--color-text-tertiary);
    font-size: 14px;
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 1000;
}
.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    transition: all var(--transition-fast);
    flex: 1;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
}
.mobile-nav-btn i {
    font-size: 20px;
}
.mobile-nav-btn.active {
    color: var(--color-primary);
}
.mobile-nav-btn.active i {
    color: var(--color-primary);
}

/* ========== MOBILE FAB ========== */
.mobile-fab-container {
    position: fixed;
    bottom: 80px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.mobile-fab {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    font-size: 18px;
    cursor: pointer;
    transition: transform var(--transition-fast);
    border: none;
}
.mobile-fab:active {
    transform: scale(0.92);
}
.mobile-fab-success {
    background: var(--color-success);
}
.mobile-fab-warning {
    background: var(--color-warning);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .premium-header {
        padding: 0 16px;
        height: 56px;
    }
    .header-subtitle {
        display: none;
    }
    .desktop-only {
        display: none !important;
    }
    .premium-sidebar {
        display: none !important;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .mobile-fab-container {
        display: flex;
    }
    .main-content {
        padding: 16px;
        padding-bottom: 100px;
    }
    .page-title {
        font-size: 20px;
    }
    .stat-value {
        font-size: 22px;
    }
    .hero-value {
        font-size: 28px;
    }
    .hero-card {
        padding: 22px 24px;
    }
}

@media (max-width: 640px) {
    .premium-header {
        height: 52px;
        padding: 0 12px;
    }
    .header-logo {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .header-title {
        font-size: 15px;
    }
    .main-content {
        padding: 12px;
        padding-bottom: 90px;
    }
}

/* ========== GRID HELPERS ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 400px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========== UTILITY ========== */
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-info { color: var(--color-accent); }
.text-muted { color: var(--color-text-tertiary); }
.text-secondary { color: var(--color-text-secondary); }

/* ========== MOBILE SEARCH MODAL ========== */
.mobile-search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 10010;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    animation: fadeIn 0.2s ease;
}

/* ========== HEADER CUSTOMER SUGGESTIONS ========== */
#header-customer-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--color-primary);
    border-radius: var(--radius-2xl);
    padding: 40px;
    color: white;
    text-align: center;
}
.cta-section h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.cta-section p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 24px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ========== SETTINGS SECTION ========== */
.settings-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 24px;
}
.settings-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.settings-title i {
    color: var(--color-text-tertiary);
}

/* ============================================
   TAILWIND UTILITY COMPAT LAYER
   shared.js modal/toast/autocomplete desteği
   ============================================ */

/* --- Position & Display --- */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-2 { top: 0.5rem; }
.top-5 { top: 1.25rem; }
.right-2 { right: 0.5rem; }
.right-5 { right: 1.25rem; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-full { top: 100%; }
.hidden { display: none !important; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.grid { display: grid; }

/* --- Flexbox --- */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* --- Grid --- */
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.col-span-2 { grid-column: span 2 / span 2; }

/* --- Sizing --- */
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.min-w-0 { min-width: 0; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-h-60 { max-height: 15rem; }
.max-h-48 { max-height: 12rem; }
.max-h-64 { max-height: 16rem; }
.max-h-96 { max-height: 24rem; }
.max-h-\[90vh\] { max-height: 90vh; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }

/* --- Spacing (padding) --- */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-0 { padding-top: 0; }
.pt-4 { padding-top: 1rem; }

/* --- Spacing (margin) --- */
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-auto { margin-top: auto; }
.mt-10 { margin-top: 2.5rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* --- Gap --- */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* --- Space & Divide --- */
.space-y-4 > * + * { margin-top: 1rem; }
.divide-y > * + * { border-top: 1px solid #e5e7eb; }
.divide-gray-50 > * + * { border-color: #f9fafb; }
.divide-gray-100 > * + * { border-color: #f3f4f6; }

/* --- Typography --- */
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.whitespace-nowrap, .white-space-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Text Colors --- */
.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-green-400 { color: #4ade80; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-yellow-600 { color: #ca8a04; }
.text-yellow-700 { color: #a16207; }
.text-yellow-800 { color: #854d0e; }
.text-yellow-900 { color: #713f12; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-orange-400 { color: #fb923c; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }
.text-purple-600 { color: #9333ea; }
.text-purple-700 { color: #7e22ce; }
.text-emerald-600 { color: #059669; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-white\/90 { color: rgba(255,255,255,0.9); }

/* --- Background Colors --- */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-400 { background-color: #9ca3af; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-200 { background-color: #bbf7d0; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-600 { background-color: #16a34a; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-yellow-200 { background-color: #fde68a; }
.bg-yellow-200 { background-color: #fef08a; }
.bg-yellow-400 { background-color: #facc15; }
.bg-yellow-500 { background-color: #eab308; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-200 { background-color: #fecaca; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-orange-500 { background-color: #f97316; }
.bg-orange-600 { background-color: #ea580c; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-black\/60 { background-color: rgba(0,0,0,0.6); }
.bg-white\/20 { background-color: rgba(255,255,255,0.2); }
.bg-white\/30 { background-color: rgba(255,255,255,0.3); }
.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-orange-500\/20 { background-color: rgba(249,115,22,0.2); }
.bg-green-100\/80 { background-color: rgba(220,252,231,0.8); }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-pink-600 { background-color: #db2777; }

/* --- Gradients --- */
.bg-gradient-to-r { --tw-gf: #000; --tw-gt: #000; background-image: linear-gradient(to right, var(--tw-gf), var(--tw-gt)); }
.bg-gradient-to-br { --tw-gf: #000; --tw-gt: #000; background-image: linear-gradient(to bottom right, var(--tw-gf), var(--tw-gt)); }
.from-green-500 { --tw-gf: #22c55e; }
.from-emerald-500 { --tw-gf: #10b981; }
.to-emerald-600 { --tw-gt: #059669; }
.from-yellow-500 { --tw-gf: #eab308; }
.to-orange-500 { --tw-gt: #f97316; }
.from-orange-500 { --tw-gf: #f97316; }
.to-red-500 { --tw-gt: #ef4444; }
.from-red-500 { --tw-gf: #ef4444; }
.from-red-600 { --tw-gf: #dc2626; }
.to-red-700 { --tw-gt: #b91c1c; }
.to-rose-600 { --tw-gt: #e11d48; }
.to-pink-600 { --tw-gt: #db2777; }
.from-slate-800 { --tw-gf: #1e293b; }
.to-slate-900 { --tw-gt: #0f172a; }
.from-blue-500 { --tw-gf: #3b82f6; }
.from-blue-600 { --tw-gf: #2563eb; }
.to-blue-700 { --tw-gt: #1d4ed8; }
.to-indigo-600 { --tw-gt: #4f46e5; }

/* --- Border --- */
.border { border: 1px solid #e5e7eb; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-l { border-left: 1px solid #e5e7eb; }
.border-gray-50 { border-color: #f9fafb; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-slate-700 { border-color: #334155; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.last\:border-0:last-child { border: 0; }

/* --- Shadow --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* --- Effects --- */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.transition { transition-property: color, background-color, border-color, box-shadow, opacity, transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }
.outline-none { outline: none; }
.select-none { user-select: none; -webkit-user-select: none; }

/* --- Animations --- */
.animate-pulse { animation: tw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes tw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.animate-bounce { animation: tw-bounce 1s infinite; }
@keyframes tw-bounce { 0%, 100% { transform: translateY(-10%); animation-timing-function: cubic-bezier(0.8,0,1,1); } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); } }

/* --- Z-Index --- */
.z-\[9999\] { z-index: 9999; }
.z-\[10001\] { z-index: 10001; }
.z-\[10002\] { z-index: 10002; }
.z-\[10003\] { z-index: 10003; }
.z-\[10010\] { z-index: 10010; }
.z-\[100001\] { z-index: 100001; }

/* --- Hover States --- */
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-200:hover { background-color: #e5e7eb; }
.hover\:bg-green-200:hover { background-color: #bbf7d0; }
.hover\:bg-green-600:hover { background-color: #16a34a; }
.hover\:bg-yellow-200:hover { background-color: #fde68a; }
.hover\:bg-yellow-500:hover { background-color: #eab308; }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-orange-600:hover { background-color: #ea580c; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-white\/30:hover { background-color: rgba(255,255,255,0.3); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-blue-700:hover { color: #1d4ed8; }
.hover\:text-red-700:hover { color: #b91c1c; }
.hover\:text-orange-600:hover { color: #ea580c; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow:hover { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1); }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:bg-orange-50:hover { background-color: #fff7ed; }
.hover\:bg-orange-100:hover { background-color: #ffedd5; }

/* --- Focus States --- */
.focus\:border-green-500:focus { border-color: #22c55e; }
.focus\:border-orange-500:focus { border-color: #f97316; }
.focus\:border-red-500:focus { border-color: #ef4444; }
.focus\:border-blue-500:focus { border-color: #3b82f6; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(59,130,246,0.3); }
.focus\:ring-white\/50:focus { box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }

/* --- Autocomplete Dropdown --- */
#autocomplete-list {
    position: fixed;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 15rem;
    overflow-y: auto;
    z-index: 10010;
}
#autocomplete-list > div {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
}
#autocomplete-list > div:last-child { border-bottom: none; }
#autocomplete-list > div:hover { background: var(--color-bg); }
#autocomplete-list > div i { color: var(--color-text-tertiary); }

/* --- Responsive hidden/show utilities --- */
@media (min-width: 641px) {
    .sm\:hidden { display: none !important; }
    .sm\:block { display: block; }
}
@media (max-width: 640px) {
    .sm\:hidden { }
    .hidden.sm\:block { display: none !important; }
}
@media (min-width: 769px) {
    .md\:flex { display: flex; }
    .md\:inline { display: inline; }
    .md\:block { display: block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .md\:flex { }
    .hidden.md\:flex { display: none !important; }
    .hidden.md\:inline { display: none !important; }
    .hidden.md\:block { display: none !important; }
}
@media (min-width: 1025px) {
    .lg\:inline { display: inline; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .hidden.lg\:inline { display: none !important; }
}

/* --- Touch Feedback --- */
.touch-feedback { -webkit-tap-highlight-color: transparent; }
.touch-feedback:active { opacity: 0.7; transform: scale(0.97); }
