:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border-color: rgba(0, 0, 0, 0.06);
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.grid { display: grid; gap: 24px; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1200px) { .grid-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 992px) { .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); } }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    line-height: 1.5;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling - Compact Legendary Light */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 12px;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,0.02);
}

.sidebar-header {
    margin-bottom: 24px;
    padding: 0 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span span {
    color: var(--accent-primary);
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 6px;
    border-radius: 10px;
    color: white;
    width: 34px;
    height: 34px;
    box-shadow: 0 4px 10px var(--accent-glow);
}

.sub-logo {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.nav-group-title {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 0 6px 10px;
    font-weight: 800;
    opacity: 0.4;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--accent-glow);
    color: var(--accent-primary);
}

.nav-item-parent .chevron {
    margin-left: auto;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-item-parent.open .chevron {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
    margin-left: 10px;
    border-left: 1px solid var(--border-color);
}

.nav-item-parent.open .submenu {
    max-height: 500px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.submenu-item i {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.submenu-item:hover, .submenu-item.active {
    background: var(--bg-primary);
    color: var(--accent-primary);
}

.has-submenu {
    cursor: pointer;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.03), transparent);
}

.top-bar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 90;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    scroll-behavior: smooth;
}

/* Cards & Layouts */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title-area h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Currency & Badges */
.currency-chip {
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    gap: 6px;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.currency-chip:hover {
    border-color: var(--accent-primary);
    background: white;
}

.stat-badge {
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Tables */
.table-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

th {
    background: #f8fafc;
    padding: 18px 24px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-primary);
}

tr:hover td {
    background-color: #f8fafc;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s;
    position: relative;
}

.btn-icon:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: #f1f5f9;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 650px;
    max-width: 90%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 32px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Loader */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #f1f5f9;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

/* --- Definitions Tab Premium Styles --- */
.definition-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03) !important;
}
.definition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}
.def-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.2s;
}
.def-pill:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}
.def-pill button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    opacity: 0.3;
    transition: opacity 0.2s;
}
.def-pill:hover button {
    opacity: 1;
}
.def-list-scroll::-webkit-scrollbar {
    width: 4px;
}
.def-list-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
/* --- End --- */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.hidden { display: none !important; }

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Gelinlik Modülü Stilleri */
.measurement-chip {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    gap: 6px;
    color: var(--text-primary);
}

.measurement-chip span {
    color: var(--text-secondary);
    font-weight: 500;
}

.measurement-chip strong {
    color: var(--accent-primary);
    font-weight: 700;
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent-primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.ai-glow {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

/* Modal Form Special Styling */
.modal-form-header {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
}

.modal-form-header i {
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-label-premium {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.form-control-premium {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    outline: none;
}

.form-control-premium:focus {
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 0 0 4px var(--accent-glow);
}
/* Tabbed Modals */
.tab-item-premium {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-item-premium:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

/* --- Sektörel Birleşik Stiller --- */

/* Gelinlik & Randevu Stilleri */
.measurement-chip {
    background: #fffcf0;
    border: 1px solid #fde68a;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    gap: 6px;
    color: #92400e;
}

.measurement-chip span { color: #be123c; font-weight: 500; }
.measurement-chip strong { color: #accent-primary; font-weight: 700; }

/* POS (Hızlı Satış) Stilleri */
.pos-container { display: grid; grid-template-columns: 1fr 380px; gap: 20px; height: calc(100vh - 120px); }
.pos-products { display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.pos-header { background: white; padding: 20px; border-radius: 20px; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.pos-search { width: 100%; padding: 14px 20px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 1rem; background: #f8fafc; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; overflow-y: auto; padding-bottom: 20px; }
.pos-product-card { background: white; border-radius: 12px; padding: 15px; text-align: center; cursor: pointer; transition: 0.2s; border: 1px solid transparent; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.pos-product-card:hover { border-color: var(--accent-primary); transform: translateY(-3px); }
.pos-sidebar { background: white; border-radius: 20px; display: flex; flex-direction: column; box-shadow: 0 10px 25px rgba(0,0,0,0.05); overflow: hidden; }
.pay-btn { padding: 16px; border: none; border-radius: 12px; color: white; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: 0.2s; }
.pay-btn.cash { background: #10b981; }
.pay-btn.card { background: #6366f1; }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 10px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.pos-checkout { padding: 20px; background: #f8fafc; border-top: 1px solid #e2e8f0; }

/* Tabbed Modals */
.tab-item-premium {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-item-premium:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.tab-item-premium.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.prod-step.hidden {
    display: none;
}

.pos-price-input {
    width: 80px;
    padding: 2px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: #f8fafc;
    outline: none;
}

.pos-price-input:focus {
    border-color: var(--accent-primary);
    background: white;
}

/* --- Premium Currency Ticker --- */
.currency-ticker-wrap {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}

.ticker-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ticker-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.ticker-label {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}

.ticker-item.usd .ticker-label { background: #10b981; }
.ticker-item.eur .ticker-label { background: #6366f1; }

.ticker-value {
    padding: 10px 22px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

/* --- Hero Stat Cards --- */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.hero-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
}

.hero-card.revenue::before { background: linear-gradient(90deg, #10b981, #34d399); }
.hero-card.collection::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.hero-card.stock-value::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.hero-card.stock-value .hero-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.hero-icon i { width: 32px; height: 32px; }

.hero-info span {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 5px 0;
}

.hero-sub {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* --- Top Bar Clock --- */
.top-clock {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.top-clock i {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.clock-divider {
    color: #e2e8f0;
    margin: 0 4px;
}

#clock-time {
    color: var(--accent-primary);
    font-variant-numeric: tabular-nums;
}

/* --- Elite Dashboard --- */
.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.welcome-text h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 5px;
}

.chart-card {
    padding: 25px;
    border-radius: 24px;
    background: white;
    border: 1px solid #e2e8f0;
}

.dashboard-layout {
    display: flex;
    gap: 25px;
}

/* --- Compact Dashboard Layout --- */
.dashboard-header-elite {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.welcome-mini h1 { font-size: 1.4rem; font-weight: 800; }
.welcome-mini p { font-size: 0.8rem; color: var(--text-secondary); }

.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-card.mini { padding: 15px 20px; border-radius: 16px; gap: 15px; }
.hero-value.small { font-size: 1.4rem; }
.hero-icon.small { width: 40px; height: 40px; }
.hero-icon.small i { width: 20px; height: 20px; }

.mini-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mini-stat {
    background: white;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.mini-stat span { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }
.mini-stat strong { font-size: 1rem; margin-top: 2px; }

.dashboard-grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.chart-card-compact { padding: 15px; border-radius: 16px; }

.compact-list div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8rem;
}

.compact-list div:last-child { border: none; }

.ai-glow.mini { padding: 12px; }

/* --- Ekran Kilidi (Lock Screen) --- */
#lock-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9); /* Daha koyu ve güvenli arka plan */
    backdrop-filter: blur(100px); /* Maksimum fluluk için artırıldı */
    -webkit-backdrop-filter: blur(100px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#lock-screen.hidden {
    display: none !important;
}

.lang-option:hover {
    background: var(--accent-glow);
    color: var(--accent-primary);
}

.hidden {
    display: none !important;
}

.lock-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 80px;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(1);
    animation: lockScale 0.4s ease-out;
}

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

#lock-clock {
    font-size: 6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -3px;
    margin-bottom: 20px;
    line-height: 1;
}

.lock-input-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

#lock-password {
    flex: 1;
    padding: 18px 25px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    font-size: 1.2rem;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

#lock-password:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* --- Premium Role Modal Styles --- */
.perm-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.perm-card:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.perm-card input {
    display: none;
}

.perm-card.selected {
    background: white;
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.perm-card .check-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.perm-card.selected .check-circle {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.perm-card.selected .check-circle::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

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

/* --- Sales History Styles --- */
.sales-item-row {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sales-item-row:hover {
    background: var(--bg-primary);
    transform: translateX(4px);
}

.sale-id {
    font-family: monospace;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sale-price {
    font-weight: 800;
    color: var(--accent-primary);
}

.sale-customer {
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 4px;
}

.sale-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --- POS Premium Terminal Styles --- */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    height: calc(100vh - 100px);
    margin: -24px; /* Container padding'i sıfırla */
    background: #f1f5f9;
}

.pos-products {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.pos-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pos-search {
    background: white !important;
    border: none !important;
    padding: 18px 24px !important;
    border-radius: 20px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    width: 100%;
    transition: all 0.3s;
}

.pos-search:focus {
    box-shadow: 0 8px 25px var(--accent-glow) !important;
    transform: translateY(-2px);
}

.cat-chip {
    padding: 10px 20px;
    background: white;
    border: none;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.cat-chip.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    overflow-y: auto;
    padding-bottom: 20px;
}

.pos-product-card {
    background: white;
    border-radius: 24px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.pos-product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
}

.pos-prod-img {
    height: 100px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.pos-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-top: 5px;
}

.pos-sidebar {
    background: white;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.03);
}

.pos-cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 20px;
    margin-bottom: 12px;
    transition: 0.2s;
}

.cart-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pos-checkout {
    padding: 24px;
    background: #f8fafc;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.pos-grand-total {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 2px dashed #cbd5e1;
}

.pos-grand-total span:last-child {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-primary);
}

.pos-pay-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pay-btn {
    padding: 20px;
    border: none;
    border-radius: 20px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-btn.cash { background: #10b981; color: white; }
.pay-btn.card { background: #6366f1; color: white; }

.pay-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pos-price-input {
    background: transparent;
    border: none;
    font-weight: 700;
    color: var(--text-primary);
    width: 80px;
    padding: 0;
}


/* --- Logo Navigation Styles --- */
.sidebar-logo-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: inherit;
}

.sidebar-logo-link:hover {
    filter: brightness(1.15);
    transform: translateX(3px);
}

.sidebar-logo-link:active {
    transform: scale(0.97) translateX(2px);
}

.sidebar-logo-link .sidebar-header {
    cursor: pointer;
}
/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--accent-primary);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast.success .toast-icon { background: rgba(16,185,129,0.1); color: var(--success); }
.toast.danger .toast-icon { background: rgba(239,68,68,0.1); color: var(--danger); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0,0,0,0.05);
    width: 100%;
}

.toast.success .toast-progress-bar { background: var(--success); }
.toast.danger .toast-progress-bar { background: var(--danger); }

.toast-progress-bar {
    height: 100%;
    width: 0;
}
