* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc3545;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --sidebar-width: 250px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background: var(--light-color);
}

/* Admin Container */
.admin-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--dark-color);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    /* NO transition by default - prevents flickering on page load */
    transition: none;
    transform: translateX(0);
}

/* Enable transition only after sidebar is initialized */
.admin-sidebar.sidebar-initialized {
    transition: width 0.3s ease, transform 0.3s ease;
}

/* Sidebar open state - explicit width for desktop */
.admin-sidebar.sidebar-open {
    width: var(--sidebar-width);
}

.admin-sidebar.sidebar-closed {
    width: 70px;
}

/* Sidebar toggle button inside sidebar */
.sidebar-toggle-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease;
    margin-bottom: 1rem;
}

.sidebar-toggle-inner:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar open - toggle button normal padding */
.admin-sidebar.sidebar-open .sidebar-toggle-inner {
    padding: 1rem;
}

.admin-sidebar.sidebar-closed .sidebar-toggle-inner {
    padding: 1rem 0.5rem;
}

/* Mobile: Make sidebar toggle button more visible */
@media (max-width: 768px) {
    .sidebar-toggle-inner {
        background: rgba(255, 255, 255, 0.15);
        padding: 1rem;
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .sidebar-toggle-inner:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    
    /* Hide any duplicate toggle buttons in header or elsewhere */
    .admin-header button[class*="toggle"],
    .admin-header button[id*="toggle"],
    .admin-header button[class*="menu"],
    .admin-header button[id*="menu"] {
        display: none !important;
    }
}

/* Menu Toggle Button - Removed mobile menu toggle button */

/* Hide branding initially to prevent FOUC - will be shown by tenant-branding.js */
.admin-logo:not(.branding-loaded) {
    visibility: hidden;
    opacity: 0;
}

.admin-logo {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: padding 0.3s ease, opacity 0.2s ease-in;
    white-space: nowrap;
    overflow: hidden;
}

.admin-logo img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
    transition: max-width 0.3s ease;
}

/* Sidebar open - show full logo */
.admin-sidebar.sidebar-open .admin-logo {
    padding: 2rem 1.5rem;
    text-align: left;
}

.admin-sidebar.sidebar-open .admin-logo img {
    max-width: 120px;
}

.admin-sidebar.sidebar-closed .admin-logo {
    padding: 2rem 0.5rem;
    text-align: center;
}

/* Sidebar kapalıyken logo yerine tenant isminin ilk harfi */
.admin-logo-initial {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
}

.admin-sidebar.sidebar-closed .admin-logo-initial {
    display: flex;
}

.admin-sidebar.sidebar-closed .admin-logo a {
    display: none !important;
}

.admin-sidebar.sidebar-closed .admin-logo img {
    display: none !important;
}

.admin-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

/* Sidebar open - show logo text */
.admin-sidebar.sidebar-open .admin-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 1;
    width: auto;
    height: auto;
}

.admin-sidebar.sidebar-closed .admin-logo h2 {
    font-size: 0;
    margin: 0;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-logo p {
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

/* Sidebar open - show logo subtitle */
.admin-sidebar.sidebar-open .admin-logo p {
    font-size: 0.875rem;
    opacity: 0.7;
    width: auto;
    height: auto;
}

.admin-sidebar.sidebar-closed .admin-logo p {
    font-size: 0;
    margin: 0;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-sidebar.sidebar-closed .admin-logo-team {
    display: none !important;
}

.admin-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

/* Sidebar open - show full nav items */
.admin-sidebar.sidebar-open .nav-item {
    padding: 1rem 1.5rem;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.admin-sidebar.sidebar-open .nav-item > * {
    display: block !important;
}

.admin-sidebar.sidebar-closed .nav-item {
    padding: 1rem;
    justify-content: center;
    align-items: center;
    gap: 0;
    color: white !important;
}

.admin-sidebar.sidebar-closed .nav-item > *:not(span:first-child) {
    display: none !important;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--primary-color);
}

.admin-sidebar.sidebar-closed .nav-item:hover {
    color: white !important;
}

.admin-sidebar.sidebar-closed .nav-item:hover span {
    filter: grayscale(50%);
    opacity: 1;
}

/* Sidebar open - show active border on left */
.admin-sidebar.sidebar-open .nav-item.active {
    border-left: 3px solid var(--primary-color);
    border-top: none;
    border-bottom: none;
    color: white;
}

.admin-sidebar.sidebar-closed .nav-item.active {
    border-left: none;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    color: white !important;
}

.admin-sidebar.sidebar-closed .nav-item.active span {
    filter: grayscale(0%);
    opacity: 1;
}

.nav-item span {
    font-size: 1.25rem;
    min-width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.admin-sidebar.sidebar-closed .nav-item span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    font-size: 1.5rem;
    filter: grayscale(100%);
    opacity: 0.8;
}

.nav-item .nav-item-text {
    transition: opacity 0.3s ease, width 0.3s ease;
    opacity: 1;
    width: auto;
}

.admin-sidebar.sidebar-closed .nav-item .nav-item-text {
    display: none !important;
    opacity: 0;
    width: 0;
    overflow: hidden;
    visibility: hidden;
}

/* Tooltip for closed sidebar */
.admin-sidebar.sidebar-closed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-left: 0.5rem;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.admin-sidebar.sidebar-closed .nav-item:hover::after {
    opacity: 1;
}

/* Nav Groups */
.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.nav-group-header i {
    font-size: 0.875rem;
    opacity: 0.7;
}

.nav-group-children {
    padding-left: 0;
}

.nav-group-children .nav-item {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

.admin-sidebar.sidebar-closed .nav-group-header {
    display: none;
}

.admin-sidebar.sidebar-closed .nav-group-children .nav-item {
    padding: 1rem;
    justify-content: center;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 70px;
    padding: 1rem;
    padding-top: 1rem;
    transition: margin-left 0.3s ease;
    width: calc(100% - 70px);
}

.admin-sidebar.sidebar-open ~ .admin-main,
.admin-container:has(.admin-sidebar.sidebar-open) .admin-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
    .admin-sidebar.sidebar-open ~ .admin-main {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 1rem;
    border-left: 4px solid var(--primary-color);
    animation: slideInDown 0.5s ease-out;
    position: sticky;
    top: 0;
    z-index: 900;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-header h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

/* Users page tab buttons (Ekip, Müşteriler, Davetler) */
.users-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 0.5rem;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.users-tab:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.users-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
}
.users-tab.active:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
    filter: brightness(1.05);
}

/* Users page tables - modern AI panel look */
.users-panel {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.users-panel table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100%;
}

.users-panel thead tr {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%) !important;
    color: #f8fafc !important;
}

.users-panel thead th {
    background: transparent !important;
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    letter-spacing: 0.01em;
    font-weight: 700 !important;
    font-size: 0.84rem;
    text-transform: uppercase;
}

.users-panel thead th:first-child {
    border-top-left-radius: 12px;
}

.users-panel thead th:last-child {
    border-top-right-radius: 12px;
}

.users-panel tbody tr {
    transition: background-color 0.2s ease;
}

.users-panel tbody tr:hover {
    background: rgba(15, 23, 42, 0.035) !important;
}

/* Shared modern table style for admin pages */
.modern-admin-table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100%;
}

.modern-admin-table thead tr {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%) !important;
    color: #f8fafc !important;
}

.modern-admin-table thead th {
    background: transparent !important;
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    letter-spacing: 0.01em;
    font-weight: 700 !important;
    font-size: 0.84rem;
    text-transform: uppercase;
}

.modern-admin-table thead th:first-child {
    border-top-left-radius: 12px;
}

.modern-admin-table thead th:last-child {
    border-top-right-radius: 12px;
}

/* Dark / siyah arka plan (data-theme="dark"): sekmeler okunabilir */
body[data-theme="dark"] .users-tab {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
}
body[data-theme="dark"] .users-tab:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--primary-color);
    color: #fff;
}
body[data-theme="dark"] .users-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
}

/* Sistem gece modu: header koyuysa sekmeler okunabilir */
@media (prefers-color-scheme: dark) {
    body[data-theme="dark"] .users-tab:not(.active) {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #e2e8f0;
    }
}

/* Davetler paneli: başlık ve etiketler her temada okunabilir */
#invite-form-section,
#invite-form-section h3,
#invite-form-section label {
    color: #1e293b !important;
}
#invite-form-section input,
#invite-form-section select {
    background: #fff !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}
body[data-theme="dark"] #invite-form-section,
body[data-theme="dark"] #invite-form-section h3,
body[data-theme="dark"] #invite-form-section label {
    color: #e2e8f0 !important;
}
body[data-theme="dark"] #invite-form-section input,
body[data-theme="dark"] #invite-form-section select {
    background: rgba(15, 23, 42, 0.8) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
body[data-theme="dark"] #invite-form-section {
    background: rgba(255, 255, 255, 0.06) !important;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons - Enhanced */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.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.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #475569 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Bulk actions: clear selection button (red) */
#bulk-clear-selection-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    border-color: #b91c1c !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
#bulk-clear-selection-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* Bulk actions wrap: attention effect when first shown */
#bulk-actions-wrap.bulk-actions-wrap-just-shown {
    animation: bulk-actions-attention 1.2s ease-out;
}
@keyframes bulk-actions-attention {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
        transform: scale(1);
    }
    15% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.25);
        transform: scale(1.02);
    }
    40% {
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
    }
    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* Search Section */
.search-section {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-section input {
    transition: border-color 0.3s;
}

.search-section input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Filter Buttons */
.filter-section {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* AI filter live progress badge */
.filter-btn[data-filter="ai"] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ai-filter-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  background: #dc2626;
  color: #fff;
}

.filter-btn.active .ai-filter-badge {
  background: #ffffff;
  color: var(--primary-color, #dc2626);
}

/* Dashboard quick links (Sipariş Talebi, Mesajlar, Yorumlar, Sorular, Aktif Sipariş) */
.dashboard-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-quick-link-card {
    display: block;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #e5e7eb);
    text-decoration: none;
    color: var(--text-color, #1f2937);
    transition: all 0.2s ease;
}

.dashboard-quick-link-card:hover {
    border-color: var(--primary-color, #dc2626);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    color: var(--text-color, #1f2937);
}

.dashboard-quick-link-card .quick-link-new {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

/* Sıkıntı yok (0 bekleyen) */
.dashboard-quick-link-card--ok .quick-link-new {
    color: #059669;
}

/* Bakılması gereken (1-2) */
.dashboard-quick-link-card--attention .quick-link-new {
    color: #d97706;
}

/* Acil (3+) */
.dashboard-quick-link-card--urgent .quick-link-new {
    color: var(--primary-color, #dc2626);
}

.dashboard-quick-link-card .quick-link-total {
    font-size: 0.8125rem;
    color: var(--text-light, #6b7280);
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* KPI Cards */
.kpi-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kpi-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.kpi-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.kpi-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-card-header h3 {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.stat-card-header i {
    font-size: 1.25rem;
    opacity: 0.7;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: white;
}

.stat-change {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
    color: white;
}

.stat-card,
.card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Enhanced card for product edit page */
.card {
    animation: fadeInUp 0.6s ease-out;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.card:hover::after {
    opacity: 1;
}

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

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-products-card,
.trending-products-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.products-mini-list {
    max-height: 400px;
    overflow-y: auto;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Table */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table td a {
    transition: color 0.3s;
    color: var(--text-color);
}

table td a:hover {
    color: var(--dark-color) !important;
}

thead {
    background: var(--light-color);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Products table: softer checkbox + clickable cell area */
.product-checkbox-cell {
    cursor: pointer;
    text-align: center;
}

.product-category-cell {
    cursor: pointer;
}

.product-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.product-category-cell .category-edit-hint {
    opacity: 0;
    transform: translateY(1px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    font-size: 0.72rem;
    color: var(--text-light, #64748b);
}

.product-category-cell:hover .category-edit-hint,
.product-category-cell:active .category-edit-hint {
    opacity: 1;
    transform: translateY(0);
}

#products-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #7c83ff;
    border-radius: 5px;
}

#products-table input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(124, 131, 255, 0.35);
    outline-offset: 2px;
}

#blog-table input[type="checkbox"],
#banners-table input[type="checkbox"],
#pages-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #7c83ff;
    border-radius: 5px;
}

#blog-table input[type="checkbox"]:focus-visible,
#banners-table input[type="checkbox"]:focus-visible,
#pages-table input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(124, 131, 255, 0.35);
    outline-offset: 2px;
}

/* ========== Admin bulk selection standard (ürünler, özellikler, vb. tablolarda ortak) ========== */
.admin-bulk-checkbox-cell {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    cursor: pointer;
    text-align: center;
    vertical-align: middle !important;
}
.admin-bulk-checkbox-cell input[type="checkbox"],
input.admin-bulk-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #7c83ff;
    border-radius: 5px;
}
.admin-bulk-checkbox-cell input[type="checkbox"]:focus-visible,
input.admin-bulk-checkbox:focus-visible {
    outline: 2px solid rgba(124, 131, 255, 0.35);
    outline-offset: 2px;
}
.admin-bulk-bar {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--light-color, #f5f5f5);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 0.5rem;
}
.admin-bulk-bar.admin-bulk-bar-visible {
    display: inline-flex;
}

tbody tr:hover {
    background: var(--light-color);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

/* Öne çıkan hücresi: kapalıyken gri arka plan */
.status-badge.featured-off {
    background: #e5e7eb;
    color: #6b7280;
}

.status-badge.product-list-featured-toggle {
    cursor: pointer;
    min-width: 2rem;
    min-height: 1.5rem;
    text-align: center;
    transition: background 0.2s ease;
}

.status-badge.product-list-featured-toggle:hover {
    opacity: 0.9;
}

.status-inactive {
    background: #ef4444;
    color: white;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-large {
    max-width: 900px;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-color);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    padding-right: 3rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.modal-header h2 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
    flex: 1;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--danger-color);
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.modal-close:active {
    transform: scale(0.9);
}

/* Form */
.form-group {
    margin-bottom: 2rem;
    position: relative;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.form-group:hover {
    background: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(220, 53, 69, 0.3);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }
.form-group:nth-child(8) { animation-delay: 0.45s; }
.form-group:nth-child(9) { animation-delay: 0.5s; }
.form-group:nth-child(10) { animation-delay: 0.55s; }
.form-group:nth-child(11) { animation-delay: 0.6s; }
.form-group:nth-child(12) { animation-delay: 0.65s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Quill Editor Styles - Enhanced */
#product-description-editor {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    border: 2px solid var(--border-color);
    position: relative;
}

#product-description-editor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

#product-description-editor:hover {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
    border-color: rgba(220, 53, 69, 0.3);
}

#product-description-editor:hover::before {
    opacity: 1;
}

#product-description-editor:focus-within {
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
}

#product-description-editor:focus-within::before {
    opacity: 1;
}

#product-description-editor .ql-editor {
    min-height: 300px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

#product-description-editor .ql-toolbar {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    border: 2px solid var(--border-color);
    border-bottom: none;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#product-description-editor .ql-toolbar .ql-formats {
    margin-right: 1rem;
}

#product-description-editor .ql-toolbar button {
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
}

#product-description-editor .ql-toolbar button:hover,
#product-description-editor .ql-toolbar button.ql-active {
    color: var(--primary-color);
    background: rgba(220, 53, 69, 0.15);
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

#product-description-editor .ql-container {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    border: 2px solid var(--border-color);
    border-top: none;
    transition: all 0.3s ease;
    background: white;
}

#product-description-editor:focus-within .ql-container {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    position: relative;
    padding-left: 0.75rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.form-group:focus-within label {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.form-group label::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    pointer-events: none;
}

.form-group:focus-within label::before {
    opacity: 1;
    transform: translateX(-3px);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.1);
    transform: translateY(-1px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1), 0 6px 16px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(135deg, white 0%, #fef2f2 100%);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown),
.form-group select:valid {
    border-color: var(--success-color);
    background: linear-gradient(135deg, white 0%, #f0fdf4 100%);
}

.form-group input:invalid:not(:placeholder-shown):not(:focus),
.form-group textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, white 0%, #fef2f2 100%);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.7;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.form-group textarea:focus::placeholder {
    opacity: 0.3;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23dc3545' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    appearance: none;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

.form-group small strong {
    color: var(--primary-color);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-color);
    border-radius: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid var(--border-color);
    appearance: none;
    background: white;
}

.form-group input[type="checkbox"]::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.form-group input[type="checkbox"]:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    border-color: var(--primary-color);
}

.form-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.form-group input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

.form-group input[type="checkbox"]:checked:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.form-group label[for*="product-"] {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.form-group label[for*="product-"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.form-group label[for*="product-"]:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.03) 100%);
    transform: translateX(8px);
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.form-group label[for*="product-"]:hover::before {
    width: 100%;
}

.form-group input[type="checkbox"]:checked ~ label[for*="product-"],
.form-group label[for*="product-"]:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

/* Product edit: "Aktif" should use success green (not warning red) */
#product-active {
    accent-color: #16a34a !important;
}

.form-group label[for="product-active"]:has(#product-active:checked) {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0.05) 100%);
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.18);
}

/* Öne Çıkan / Slider / Aktif: tıklanabilir kalması için */
.product-checkboxes-group input[type="checkbox"] {
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
}

.product-checkboxes-group input[type="checkbox"] {
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin-right: 0.5rem !important;
}

/* Banner modal: Gösterim Yeri ve Aktif checkbox'ları tıklanabilir */
#banner-modal input[type="checkbox"] {
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
    cursor: pointer;
}
#banner-modal input[type="checkbox"] {
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin-right: 0.5rem !important;
}

/* Campaign modal: Aktif checkbox tıklanabilir ve native görünür olsun */
#campaign-modal input[type="checkbox"] {
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
    cursor: pointer;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin-right: 0.25rem !important;
}

/* Ürün içe/dışa aktar modal: Dry Run ve Hatalı satırları atla tıklanabilir olsun */
#products-import-export-modal input[type="checkbox"] {
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
    cursor: pointer;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin-right: 0.35rem !important;
}

/* Kategori modal: Aktif checkbox tıklanabilir olsun */
#category-modal input[type="checkbox"] {
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
    cursor: pointer;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin-right: 0.35rem !important;
}

#products-import-export-modal .form-group label {
    cursor: pointer;
}

/* Product Images Gallery */
.product-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    border: 2px dashed var(--border-color);
    min-height: 150px;
    transition: all 0.3s ease;
}

.product-images-gallery:has(.product-image-item:hover) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
}

.product-image-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
    border: 2px solid var(--primary-color);
}

.product-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-image-item:hover img {
    transform: scale(1.1);
}

.remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    font-weight: bold;
    line-height: 1;
}

.remove-image-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.remove-image-btn:active {
    transform: scale(0.95) rotate(90deg);
}

/* Recent Section */
.recent-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recent-section h2 {
    margin-bottom: 1.5rem;
}

/* Order Detail */
.order-detail {
    padding: 1rem 0;
}

.order-detail h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.order-detail p {
    margin: 0.5rem 0;
}

.order-totals {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.order-totals p {
    margin: 0.5rem 0;
    font-size: 1.125rem;
}

/* Sipariş evrakı – resmi belge görünümü */
.order-doc {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.order-doc-header {
    background: #1e293b;
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.order-doc-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-doc-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.order-doc-ref {
    font-size: 0.9rem;
    opacity: 0.95;
}

.order-doc-ref strong {
    font-weight: 600;
    margin-left: 0.25rem;
}

.order-doc-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.order-doc-qrcode {
    padding: 4px;
    background: #fff;
    border-radius: 4px;
}

.order-doc-qrcode img,
.order-doc-qrcode canvas {
    display: block;
    border-radius: 2px;
}

.order-doc-qr-note {
    margin: 0.25rem 0 0 0;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.order-doc-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.875rem;
}

.order-doc-meta-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.order-doc-meta-value {
    color: #0f172a;
    font-weight: 600;
}

.order-doc-section {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.order-doc-section:last-of-type {
    border-bottom: none;
}

.order-doc-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #cbd5e1;
}

.order-doc-section-body {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}

.order-doc-section-body .order-doc-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.order-doc-section-body .order-doc-row .label {
    min-width: 5rem;
    color: #64748b;
}

.order-doc-table-wrap {
    overflow-x: auto;
    border-top: 1px solid #e2e8f0;
}

.order-doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.order-doc-table th {
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.6rem 0.75rem;
    text-align: left;
    border: 1px solid #1e293b;
}

.order-doc-table th:last-child,
.order-doc-table td:last-child {
    text-align: right;
}

.order-doc-table th:nth-child(2),
.order-doc-table td:nth-child(2) {
    text-align: center;
}

.order-doc-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.order-doc-table tbody tr:last-child td {
    border-bottom: 2px solid #1e293b;
}

.order-doc-table .order-doc-table-product {
    font-weight: 600;
    color: #0f172a;
}

.order-doc-totals {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 2px solid #1e293b;
}

.order-doc-totals-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.order-doc-totals-row.total-final {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #cbd5e1;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.order-doc-totals-row .label {
    min-width: 7rem;
    text-align: right;
    color: #64748b;
}

.order-doc-totals-row .value {
    min-width: 6rem;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.order-doc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.order-doc-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.order-doc-status-select {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    min-width: 10rem;
}

.order-doc-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid transparent;
}

.order-doc-btn-secondary {
    background: #e2e8f0;
    color: #334155;
    border-color: #cbd5e1;
}

.order-doc-btn-secondary:hover {
    background: #cbd5e1;
}

.order-doc-btn-danger {
    background: #b91c1c;
    color: #fff;
    border-color: #991b1b;
}

.order-doc-btn-danger:hover {
    background: #991b1b;
}

.order-doc-btn-success,
a.order-doc-btn-success {
    background: #15803d;
    color: #fff !important;
    border-color: #166534;
}

.order-doc-btn-success:hover,
a.order-doc-btn-success:hover {
    background: #166534;
    color: #fff !important;
}

.order-doc-deleted {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
}

/* Sipariş evrakı yazdırma: sadece evrak, arayüz gizli */
@media print {
    .admin-header,
    .admin-sidebar,
    .sidebar-overlay,
    .order-doc-actions {
        display: none !important;
    }
    body * {
        visibility: hidden;
    }
    .admin-container,
    .admin-main,
    .admin-content,
    #order-detail-content,
    #order-detail-content * {
        visibility: visible;
    }
    #order-detail-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        background: #fff;
        box-shadow: none;
    }
    .order-doc {
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #333;
    }
    /* Ink saver: header ve tablo başlığı koyu arka plan yerine açık */
    .order-doc-header {
        background: #fff !important;
        color: #1e293b !important;
        border-bottom: 2px solid #1e293b;
    }
    .order-doc-title,
    .order-doc-ref,
    .order-doc-ref strong {
        color: #1e293b !important;
        opacity: 1;
    }
    .order-doc-table th {
        background: #fff !important;
        color: #1e293b !important;
        border: 1px solid #334155;
    }
}

/* Featured/Trending Products Cards */
.featured-trending-section h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--dark-color);
}

/* Orders Calendar */
.orders-calendar {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-top: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.calendar-day {
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 1rem;
    min-height: 200px;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    background: rgba(220, 53, 69, 0.05);
}

.calendar-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.calendar-day-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.calendar-day-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.calendar-day-month {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.calendar-day.today .calendar-day-number {
    color: var(--primary-color);
}

.calendar-day-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.calendar-day-orders {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.calendar-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 1rem 0;
}

.calendar-order-item {
    background: white;
    border-radius: 0.375rem;
    padding: 0.75rem;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.calendar-order-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateX(2px);
}

.calendar-order-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calendar-order-info {
    margin-bottom: 0.5rem;
}

.calendar-order-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.calendar-order-customer {
    font-size: 0.75rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.calendar-order-total {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calendar-order-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.calendar-order-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.calendar-order-status.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.calendar-order-status.status-shipped {
    background: #e9d5ff;
    color: #6b21a8;
}

.calendar-order-status.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.calendar-order-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive calendar */
@media (max-width: 1200px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-day {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Kanban Board Styles */
.kanban-container {
    display: none;
    padding: 1rem 0;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.kanban-column {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 600px;
    border: 1px solid var(--border-color);
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.kanban-column-title {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.kanban-column-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.kanban-column.pending .kanban-column-header {
    border-bottom-color: #f59e0b;
}

.kanban-column.pending .kanban-column-count {
    background: #f59e0b;
}

.kanban-column.processing .kanban-column-header {
    border-bottom-color: #3b82f6;
}

.kanban-column.processing .kanban-column-count {
    background: #3b82f6;
}

.kanban-column.shipped .kanban-column-header {
    border-bottom-color: #8b5cf6;
}

.kanban-column.shipped .kanban-column-count {
    background: #8b5cf6;
}

.kanban-column.delivered .kanban-column-header {
    border-bottom-color: #10b981;
}

.kanban-column.delivered .kanban-column-count {
    background: #10b981;
}

.kanban-column.cancelled .kanban-column-header {
    border-bottom-color: #ef4444;
}

.kanban-column.cancelled .kanban-column-count {
    background: #ef4444;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.kanban-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: move;
    transition: all 0.3s ease;
    border-left: 4px solid var(--border-color);
    user-select: none;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    cursor: grabbing;
}

.kanban-cards.drag-over {
    background: rgba(34, 197, 94, 0.15);
    border: 2px dashed var(--primary-color);
    border-radius: 0.5rem;
    min-height: 200px;
    box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.2);
}

.kanban-cards.drag-over .kanban-empty-placeholder {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    border: 2px dashed var(--primary-color);
    padding: 2rem;
    border-radius: 0.5rem;
    background: rgba(34, 197, 94, 0.05);
}

.kanban-card.pending {
    border-left-color: #f59e0b;
}

.kanban-card.processing {
    border-left-color: #3b82f6;
}

.kanban-card.shipped {
    border-left-color: #8b5cf6;
}

.kanban-card.delivered {
    border-left-color: #10b981;
}

.kanban-card.cancelled {
    border-left-color: #ef4444;
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.kanban-card-order-number {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-color);
}

.kanban-card-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.kanban-card-customer {
    margin-bottom: 0.75rem;
}

.kanban-card-customer-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.kanban-card-customer-email {
    font-size: 0.75rem;
    color: var(--text-light);
}

.kanban-card-total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.kanban-card-payment {
    margin-bottom: 0.75rem;
}

.kanban-card-payment-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-card-payment-badge.paid {
    background: #10b981;
    color: white;
}

.kanban-card-payment-badge.pending {
    background: #f59e0b;
    color: white;
}

.kanban-card-payment-badge.failed {
    background: #ef4444;
    color: white;
}

.kanban-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.kanban-card-status-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    background: white;
    cursor: pointer;
}

.kanban-card-detail-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.kanban-card-detail-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Desktop: View Toggle */
@media (min-width: 769px) {
    .mobile-orders-view {
        display: none;
    }
    
    /* Default: Hide both, show based on view class */
    .desktop-table-view {
        display: none;
    }
    
    .desktop-kanban-view {
        display: none;
    }
    
    /* Default: Show Kanban */
    .desktop-orders-view.view-kanban .desktop-kanban-view {
        display: block !important;
    }
    
    .desktop-orders-view.view-kanban .desktop-table-view {
        display: none !important;
    }
    
    /* Show List */
    .desktop-orders-view.view-list .desktop-kanban-view {
        display: none !important;
    }
    
    .desktop-orders-view.view-list .desktop-table-view {
        display: block !important;
    }
    
    /* View toggle buttons */
    .view-toggle-btn {
        transition: all 0.3s ease;
    }
    
    .view-toggle-btn.active {
        background: var(--primary-color) !important;
        color: white !important;
        border-color: var(--primary-color) !important;
    }
    
    .view-toggle-btn:not(.active) {
        background: white !important;
        color: var(--text-color) !important;
    }
    
    .view-toggle-btn:not(.active):hover {
        background: var(--light-color) !important;
    }
    
    /* Dashboard view toggle styles */
    .dashboard-view-toggle-btn {
        padding: 0.5rem 1rem;
        border: 1px solid var(--border-color);
        background: white;
        cursor: pointer;
        font-size: 0.875rem;
        transition: all 0.3s ease;
    }

    .dashboard-view-toggle-btn.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    .dashboard-view-toggle-btn:not(.active) {
        background: white;
        color: var(--text-color);
    }

    .dashboard-view-toggle-btn:not(.active):hover {
        background: var(--light-color);
    }

    .dashboard-view-toggle-container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Dashboard orders container */
    .dashboard-orders-container {
        position: relative;
    }
    
    .dashboard-orders-container.view-calendar .dashboard-calendar-view {
        display: block;
    }
    
    .dashboard-orders-container.view-calendar .dashboard-list-view {
        display: none;
    }
    
    .dashboard-orders-container.view-list .dashboard-list-view {
        display: block;
    }
    
    .dashboard-orders-container.view-list .dashboard-calendar-view {
        display: none;
    }
    
    /* Dashboard orders list table */
    .dashboard-orders-list table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .dashboard-orders-list table thead tr {
        background: var(--primary-color);
        color: white;
    }
    
    .dashboard-orders-list table tbody tr:hover {
        background: var(--light-color);
    }
}

/* Hide view toggle on mobile */
@media (max-width: 768px) {
    .view-toggle-container {
        display: none !important;
    }
    
    /* Dashboard view toggle - hide on mobile */
    .dashboard-view-toggle-container {
        display: none !important;
    }
    
    /* Dashboard - always show list view on mobile */
    .dashboard-orders-container.view-calendar .dashboard-list-view {
        display: block !important;
    }
    
    .dashboard-orders-container.view-calendar .dashboard-calendar-view {
        display: none !important;
    }
}

/* Mobile: Show Table, Hide Kanban */
@media (max-width: 768px) {
    .desktop-orders-view {
        display: none;
    }
    
    .mobile-orders-view {
        display: block;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.sidebar-open,
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-sidebar.sidebar-open ~ .admin-main,
    .admin-sidebar.mobile-open ~ .admin-main {
        margin-left: 0;
    }

    .admin-main {
        margin-left: 0;
        padding: 1rem;
        padding-top: 1rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem;
        width: calc(100% + 2rem);
        margin: -1rem -1rem 1rem;
        border-radius: 0;
        top: 0;
    }
    
    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--primary-color) !important;
        color: white !important;
        border: none;
        padding: 0.75rem 1rem;
        border-radius: 0.25rem;
        cursor: pointer;
        font-size: 1.25rem;
        transition: background 0.3s ease;
        z-index: 1001;
    }
    
    .mobile-menu-toggle:hover {
        background: #c82333 !important;
    }
    
    .admin-header > div {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .admin-header h1 {
        margin: 0;
        flex: 1;
    }

    .admin-header h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    .admin-header .btn {
        width: 100%;
    }
    
    /* Hide noisy action buttons in header on mobile (keep nav toggles visible) */
    .admin-header button[class*="toggle"],
    .admin-header button[id*="toggle"],
    .admin-header button[class*="menu"],
    .admin-header button[id*="menu"],
    .admin-header button[style*="primary"],
    .admin-header button[style*="#dc3545"] {
        display: none !important;
    }
    .admin-header #mobile-menu-toggle,
    .admin-header #admin-mobile-nav-toggle {
        display: inline-flex !important;
    }

    .admin-mobile-nav-wrap {
        width: 100%;
        position: relative;
    }
    #admin-mobile-nav-toggle {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
        gap: 0.5rem;
        font-size: 0.95rem;
        border: 1px solid var(--border-color, #e2e8f0);
        border-radius: 0.5rem;
        background: #fff;
        color: var(--dark-color, #1e293b);
        padding: 0.7rem 0.85rem;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    }
    #admin-mobile-nav-toggle .mobile-nav-toggle-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #admin-mobile-nav-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 0;
        right: 0;
        z-index: 1100;
        background: #fff;
        border: 1px solid var(--border-color, #e2e8f0);
        border-radius: 0.65rem;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
        max-height: min(62vh, 420px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    #admin-mobile-nav-dropdown.open {
        display: block;
    }
    .admin-mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.75rem 0.85rem;
        text-decoration: none;
        color: var(--dark-color, #1e293b);
        border-bottom: 1px solid rgba(148, 163, 184, 0.22);
        font-size: 0.92rem;
    }
    .admin-mobile-nav-link:last-child {
        border-bottom: none;
    }
    .admin-mobile-nav-link.active {
        background: rgba(59, 130, 246, 0.08);
        color: var(--primary-color, #2563eb);
        font-weight: 600;
    }
    .admin-mobile-nav-link .nav-link-icon {
        width: 1.15rem;
        text-align: center;
        opacity: 0.92;
    }

    .admin-logo {
        padding: 1.5rem 1rem;
    }

    .admin-logo h2 {
        font-size: 1.25rem;
    }

    .nav-item {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .nav-item span {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card p {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    table {
        font-size: 0.8rem;
        min-width: 600px;
        width: 100%;
    }

    th, td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }

    /* Better table scrolling indicator */
    .table-container::-webkit-scrollbar {
        height: 8px;
    }

    .table-container::-webkit-scrollbar-track {
        background: var(--light-color);
    }

    .table-container::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 4px;
    }

    .table-container::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    .search-section {
        padding: 0.75rem;
    }

    .search-section input {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
        padding-right: 2.5rem;
    }

    .filter-section {
        padding: 0.75rem;
        overflow-x: auto;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .featured-trending-section {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .featured-products-card,
    .trending-products-card {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
        max-height: 85vh;
    }

    .admin-user {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .admin-user button {
        width: 100%;
    }

    /* Product edit page specific */
    #product-description-editor {
        height: 250px;
    }

    #product-description-editor .ql-editor {
        min-height: 200px;
        font-size: 0.875rem;
    }

    #product-description-editor .ql-toolbar {
        padding: 0.5rem;
        flex-wrap: wrap;
    }

    #product-description-editor .ql-toolbar .ql-formats {
        margin-right: 0.5rem;
        margin-bottom: 0.25rem;
    }

    /* Form buttons on mobile */
    .form-group[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .form-group[style*="display: flex"] .btn {
        width: 100%;
    }

    /* Modal improvements */
    .modal-content h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .modal-header {
        padding-right: 2.5rem;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 2rem;
        right: 0.5rem;
        top: 0.5rem;
    }

    /* Status badges on mobile */
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    animation: fadeInUp 0.3s ease-out;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: var(--danger-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: var(--warning-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Loading spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toggle Switch for Price Display and Pages */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 160px;
    height: 36px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    z-index: 3;
    cursor: pointer;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    border-radius: 18px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 76px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 14px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + label {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + label:before {
    transform: translateX(76px);
}

.toggle-label-left,
.toggle-label-right {
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
    transition: color 0.3s;
    width: 76px;
    text-align: center;
}

/* Unchecked state: Pasif (left) is active */
.toggle-switch input:not(:checked) + label .toggle-label-left {
    color: var(--text-color);
    font-weight: 600;
}

.toggle-switch input:not(:checked) + label .toggle-label-right {
    color: #475569;
}

/* Checked state: Aktif (right) is active */
.toggle-switch input:checked + label .toggle-label-left {
    color: rgba(255,255,255,0.85);
}

.toggle-switch input:checked + label .toggle-label-right {
    color: #fff;
    font-weight: 600;
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.chart-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.chart-period-toggle {
    display: flex;
    gap: 0.5rem;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.period-btn:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
}

.period-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chart-card canvas {
    max-height: 400px;
}

/* Stock Alerts */
.stock-alerts-section {
    margin-top: 2rem;
}

.stock-alerts-list {
    max-height: 500px;
    overflow-y: auto;
}

.stock-alerts-list table {
    width: 100%;
    border-collapse: collapse;
}

.stock-alerts-list thead {
    position: sticky;
    top: 0;
    background: var(--light-color);
    z-index: 10;
}

.stock-alerts-list th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.stock-alerts-list td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.stock-alerts-list tr:hover {
    background: var(--light-color);
}

/* Responsive Charts */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .chart-period-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .period-btn {
        flex: 1;
        text-align: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* Bildirim / Toast (product-edit ve admin sayfaları) */
.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}
.notification {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    border-left: 4px solid var(--primary-color);
}
.notification.show {
    opacity: 1;
    transform: translateX(0);
}
.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}
.notification-icon { font-size: 1.25rem; font-weight: bold; flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.notification-message { flex: 1; color: #1f2937; font-size: 0.95rem; }
.notification-close { background: none; border: none; font-size: 1.5rem; color: #9ca3af; cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; line-height: 1; }
.notification-close:hover { background: rgba(0,0,0,0.05); color: #374151; }
.notification-success { border-left-color: var(--success-color); }
.notification-success .notification-icon { background: rgba(16,185,129,0.15); color: var(--success-color); }
.notification-error { border-left-color: var(--danger-color); }
.notification-error .notification-icon { background: rgba(239,68,68,0.15); color: var(--danger-color); }
.notification-warning { border-left-color: #f59e0b; }
.notification-warning .notification-icon { background: rgba(245,158,11,0.15); color: #b45309; }
.notification-info { border-left-color: #6b7280; }
.notification-info .notification-icon { background: rgba(107,114,128,0.15); color: #4b5563; }

/* AI Run Popup – tema uyumlu (light/dark) */
.ai-run-popup-overlay { background: rgba(0,0,0,0.5); }
.ai-run-popup-panel {
    background: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.ai-run-popup-close {
    position: absolute; top: 0.75rem; right: 0.75rem;
    background: none; border: none; font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer; padding: 0.25rem; line-height: 1;
}
.ai-run-popup-close:hover { color: var(--text-color); }
.ai-run-popup-title { display: block; margin-bottom: 1rem; font-size: 1.1rem; color: var(--text-color); }
.ai-run-popup-muted { color: var(--text-light); }
.ai-run-popup-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-color); }
.ai-run-popup-textarea {
    width: 100%; padding: 0.75rem;
    border: 1px solid var(--border-color); border-radius: 0.5rem; font-size: 0.9rem;
    background: var(--light-color);
    color: var(--text-color);
}
.ai-run-popup-textarea::placeholder { color: var(--text-light); }
.ai-run-popup-pre {
    margin: 0; padding: 1rem; border-radius: 0.5rem; font-size: 0.8rem;
    max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.ai-run-popup-loading { margin-bottom: 1rem; text-align: center; padding: 1rem; color: var(--text-light); font-size: 0.9rem; }
.ai-run-popup-loading i { font-size: 2rem; color: var(--primary-color); display: block; margin-bottom: 0.5rem; }
.ai-run-popup-loading p { margin: 0; color: var(--text-light); }
.ai-run-popup-error {
    margin-bottom: 1rem; padding: 0.75rem; border-radius: 0.5rem; font-size: 0.9rem;
    background: rgba(239,68,68,0.12);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}
.ai-run-popup-run-btn { padding: 0.75rem 1.5rem; color: #fff !important; }
/* Gece modu (varsayılan admin tema) */
body[data-theme="dark"] .ai-run-popup-panel { background: #1e293b; color: #e2e8f0; border-color: rgba(255,255,255,0.12); }
body[data-theme="dark"] .ai-run-popup-close { color: rgba(255,255,255,0.6); }
body[data-theme="dark"] .ai-run-popup-close:hover { color: #e2e8f0; }
body[data-theme="dark"] .ai-run-popup-title,
body[data-theme="dark"] .ai-run-popup-label { color: #e2e8f0; }
body[data-theme="dark"] .ai-run-popup-muted { color: rgba(255,255,255,0.6); }
body[data-theme="dark"] .ai-run-popup-textarea {
    background: #0f172a; border-color: rgba(255,255,255,0.14); color: #e2e8f0;
}
body[data-theme="dark"] .ai-run-popup-textarea::placeholder { color: rgba(255,255,255,0.5); }
body[data-theme="dark"] .ai-run-popup-pre {
    background: #0f172a; border-color: rgba(255,255,255,0.14); color: #e2e8f0;
}
body[data-theme="dark"] .ai-run-popup-loading,
body[data-theme="dark"] .ai-run-popup-loading p { color: rgba(255,255,255,0.7); }
body[data-theme="dark"] .ai-run-popup-run-btn { color: #fff !important; }

/* Blog list – categories under title */
#blog-table .blog-list-categories {
  font-size: 0.875rem;
  color: var(--secondary-color, #64748b);
  font-weight: normal;
}

#blog-table .blog-list-slug {
  font-size: 0.875rem;
  color: var(--secondary-color, #64748b);
  font-weight: normal;
}

#blog-table .blog-list-seo-desc {
  font-size: 0.8125rem;
  color: var(--secondary-color, #64748b);
  font-weight: normal;
  display: block;
  margin-top: 0.25rem;
}

#blog-table .blog-list-tags {
  margin: 0.35rem 0 0 0;
  font-size: 0.8125rem;
}

#blog-table .blog-list-tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.15rem 0.4rem;
  background: var(--light-color, #f1f5f9);
  border-radius: 0.25rem;
  color: var(--text-color, #334155);
}

#blog-table .blog-list-cover {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.35rem;
  display: block;
  border: 1px solid var(--border-color, #e2e8f0);
  background: #fff;
}

#blog-table .blog-list-cover--empty {
  width: 64px;
  height: 40px;
  border-radius: 0.35rem;
  border: 1px dashed var(--border-color, #e2e8f0);
  color: var(--text-light, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.blog-import-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.blog-import-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.blog-import-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-import-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.blog-import-result {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.5rem;
  padding: 0.85rem;
  background: #f8fafc;
}

.blog-import-result-success {
  color: #166534;
  margin-bottom: 0.4rem;
}

.blog-import-result-error {
  color: #b91c1c;
  margin-bottom: 0.4rem;
}

.blog-import-errors {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  max-height: 180px;
  overflow: auto;
  font-size: 0.9rem;
}

.blog-duplicate-list {
  max-height: 52vh;
  overflow: auto;
  display: grid;
  gap: 0.7rem;
}

.blog-duplicate-group {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #fff;
}

.blog-duplicate-group-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.blog-duplicate-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.4rem;
  padding: 0.5rem;
  background: #f8fafc;
}

.blog-duplicate-item small {
  color: var(--text-light, #64748b);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.blog-pagination .blog-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 0.55rem;
  border: 1px solid var(--border-color, #e2e8f0);
  background: #fff;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.blog-pagination .blog-page-btn.active {
  background: var(--primary-color, #b21117);
  color: #fff;
  border-color: var(--primary-color, #b21117);
}

.blog-pagination .blog-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.blog-slug-conflict-list {
  max-height: 52vh;
  overflow: auto;
  display: grid;
  gap: 0.7rem;
}

.blog-slug-conflict-item {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #fff;
}

.blog-slug-conflict-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.blog-slug-conflict-item-title {
  font-weight: 600;
}

.blog-slug-conflict-item-slug {
  font-size: 0.85rem;
  color: var(--text-light, #64748b);
}

.blog-slug-conflict-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.blog-slug-conflict-col {
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.4rem;
  padding: 0.5rem;
  font-size: 0.87rem;
}

.blog-slug-conflict-col strong {
  display: block;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .blog-slug-conflict-columns {
    grid-template-columns: 1fr;
  }
}

/* AI güncelleme overlay – butona basıldığında 2 sn */
.ai-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(55, 48, 163, 0.15);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ai-update-overlay.ai-overlay-visible {
  opacity: 1;
  visibility: visible;
}
.ai-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95));
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.4);
  animation: ai-overlay-pulse 0.6s ease-out;
}
.ai-overlay-icon {
  font-size: 2.5rem;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  animation: ai-overlay-sparkle 1.2s ease-in-out infinite;
}
.ai-overlay-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
@keyframes ai-overlay-pulse {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ai-overlay-sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.1); }
}

/* AI işlenen ürün adı hücresi – sihirbaz benzeri shimmer efekti */
.product-name-cell.ai-processing-name {
  position: relative;
  border-radius: 0.5rem;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 35%,
    rgba(99, 102, 241, 0.18) 50%,
    rgba(255,255,255,0) 65%,
    rgba(255,255,255,0) 100%
  );
  background-size: 220% 100%;
  animation: ai-name-shimmer 1.3s ease-in-out infinite;
}

@keyframes ai-name-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tamamlanan ürün satırı: kısa odak + glow */
.product-name-cell.ai-complete-focus {
  border-radius: 0.5rem;
  animation: ai-complete-flash 1s ease-out;
}

@keyframes ai-complete-flash {
  0% {
    background: rgba(99, 102, 241, 0.26);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45);
  }
  70% {
    background: rgba(99, 102, 241, 0.18);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

body[data-theme="dark"] .product-name-cell.ai-processing-name {
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 35%,
    rgba(99, 102, 241, 0.32) 50%,
    rgba(0,0,0,0) 65%,
    rgba(0,0,0,0) 100%
  );
}

/* Products table image hover preview */
.product-image-hover-preview {
  position: fixed;
  z-index: 4000;
  width: 240px;
  height: 240px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e7eb);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  display: none;
}

.product-image-hover-preview.visible {
  display: block;
}

.product-image-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg-light, #f9fafb);
}

/* Banners table image hover preview */
.banner-image-hover-preview {
  position: fixed;
  z-index: 4000;
  width: 280px;
  height: 180px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border-color, #e5e7eb);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  display: none;
}

.banner-image-hover-preview.visible {
  display: block;
}

.banner-image-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg-light, #f9fafb);
}

/* Users table: contact info under name with click-to-reveal blur */
.user-contact-lines {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.2rem;
}

.contact-reveal-btn {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--text-light, #64748b);
  font-size: 0.82rem;
  line-height: 1.25;
}

.contact-reveal-btn:hover .contact-label {
  color: var(--text-color, #334155);
}

.contact-label {
  font-weight: 600;
}

.contact-value {
  transition: filter 0.2s ease;
}

.contact-value--blurred {
  filter: blur(5px);
  user-select: none;
}

/* Admin products: Hemen üst çık (scroll to top) – sağ altta, soft */
.admin-scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 999;
}

.admin-scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.admin-scroll-to-top.visible {
  opacity: 0.78;
  visibility: visible;
}

.admin-scroll-to-top.visible:hover {
  opacity: 1;
}

/* Filtreleri kaldır – dikkat çeken renk ve yumuşak blink */
#clear-filters-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
  border-color: #ea580c !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  animation: clear-filters-blink 2s ease-in-out infinite;
}

#clear-filters-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 100%) !important;
  border-color: #ea580c !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

@keyframes clear-filters-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

/* Admin products table: fiyat ve stok hücreleri vurgulu */
#products-table .product-list-price-cell,
#products-table .product-list-stock-cell {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.5rem 0.65rem !important;
  border-radius: 6px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #166534;
  border: 1px solid #bbf7d0;
  min-width: 4.5rem;
}

#products-table .product-list-stock-cell {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border-color: #bfdbfe;
}

#products-table .product-list-price-cell.product-list-editable,
#products-table .product-list-stock-cell.product-list-editable {
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#products-table .product-list-price-cell.product-list-editable:hover,
#products-table .product-list-stock-cell.product-list-editable:hover {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

#products-table .product-list-stock-cell.product-list-editable:hover {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

#products-table .product-list-price-cell .product-list-edit-input,
#products-table .product-list-stock-cell .product-list-edit-input {
  width: 100%;
  min-width: 4rem;
  max-width: 7rem;
  padding: 0.35rem 0.5rem;
  font-weight: 700;
  font-size: inherit;
  text-align: right;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  background: #fff;
}

#products-table .product-list-price-cell.product-list-cell-saving,
#products-table .product-list-stock-cell.product-list-cell-saving,
#products-table .product-list-featured-toggle.product-list-cell-saving {
  opacity: 0.75;
  pointer-events: none;
}
