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

:root {
    /* Renk Paleti (Varsayılan Açık Tema - Warm Cream & Coffee) */
    --bg-color: #FAF6F0;
    --panel-bg: rgba(255, 255, 255, 0.85);
    --panel-border: rgba(198, 139, 89, 0.2);
    --card-bg: #FFFFFF;
    --card-hover-bg: #FDFBF9;
    --text-primary: #2C221E;
    --text-secondary: #7A6960;
    --text-muted: #A3938B;
    
    --accent: #C68B59;
    --accent-hover: #B37947;
    --accent-light: rgba(198, 139, 89, 0.1);
    --accent-glow: rgba(198, 139, 89, 0.25);
    
    --status-empty: #619A82;
    --status-empty-bg: rgba(97, 154, 130, 0.12);
    --status-occupied: #D36349;
    --status-occupied-bg: rgba(211, 99, 73, 0.12);
    --status-billing: #E0944F;
    --status-billing-bg: rgba(224, 148, 79, 0.12);
    
    --shadow-sm: 0 2px 8px rgba(44, 34, 30, 0.04);
    --shadow-md: 0 8px 24px rgba(44, 34, 30, 0.08);
    --shadow-lg: 0 16px 40px rgba(44, 34, 30, 0.14);
    
    --glass-blur: 15px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Renk Paleti (Koyu Tema - Deep Espresso & Amber) */
    --bg-color: #120E0D;
    --panel-bg: rgba(24, 18, 16, 0.85);
    --panel-border: rgba(212, 163, 115, 0.15);
    --card-bg: #1A1412;
    --card-hover-bg: #221A18;
    --text-primary: #F7F3F0;
    --text-secondary: #BFAFA8;
    --text-muted: #8E7E77;
    
    --accent: #D4A373;
    --accent-hover: #E5BA8F;
    --accent-light: rgba(212, 163, 115, 0.12);
    --accent-glow: rgba(212, 163, 115, 0.35);
    
    --status-empty: #81B29A;
    --status-empty-bg: rgba(129, 178, 154, 0.16);
    --status-occupied: #E07A5F;
    --status-occupied-bg: rgba(224, 122, 95, 0.16);
    --status-billing: #F4A261;
    --status-billing-bg: rgba(244, 162, 97, 0.16);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: var(--transition);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: var(--panel-bg);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(var(--glass-blur));
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: #FFF;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn-secondary {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: #FFF;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Ana İçerik Alanı */
main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    position: relative;
}

@media(min-width: 1024px) {
    main {
        grid-template-columns: 1fr 400px;
    }
    
    main.sidebar-collapsed {
        grid-template-columns: 1fr;
    }
}

/* Masa Grid Bölümü */
.tables-container {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(var(--glass-blur));
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.stat-dot.empty { background-color: var(--status-empty); }
.stat-dot.occupied { background-color: var(--status-occupied); }
.stat-dot.billing { background-color: var(--status-billing); }

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

@media(min-width: 640px) {
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 20px;
    }
}

/* Masa Kartı */
.table-card {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: var(--transition);
}

/* Durumlara Göre Kart Renkleri */
.table-card.status-empty::before { background-color: var(--status-empty); }
.table-card.status-empty { background-color: var(--status-empty-bg); }

.table-card.status-occupied::before { background-color: var(--status-occupied); }
.table-card.status-occupied { background-color: var(--card-bg); }

.table-card.status-billing::before { background-color: var(--status-billing); }
.table-card.status-billing { 
    background-color: var(--status-billing-bg); 
    animation: pulseBilling 1.5s infinite alternate;
}

@keyframes pulseBilling {
    0% {
        box-shadow: var(--shadow-sm);
        border-color: var(--panel-border);
    }
    100% {
        box-shadow: 0 0 12px rgba(224, 148, 79, 0.4);
        border-color: var(--status-billing);
    }
}

.table-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.table-card.active-table {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.table-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.table-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-empty .table-status-badge { background-color: var(--status-empty); color: #FFF; }
.status-occupied .table-status-badge { background-color: var(--status-occupied); color: #FFF; }
.status-billing .table-status-badge { background-color: var(--status-billing); color: #FFF; }

.table-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.table-price {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

.table-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Yan Sipariş Paneli */
.order-sidebar {
    background: var(--panel-bg);
    border-left: 1px solid var(--panel-border);
    backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    z-index: 90;
    transition: right 0.3s ease;
}

@media(min-width: 1024px) {
    .order-sidebar {
        position: static;
        width: auto;
        height: auto;
    }
}

.order-sidebar.sidebar-open {
    right: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.close-sidebar-btn {
    display: inline-flex;
}

@media(min-width: 1024px) {
    .close-sidebar-btn {
        display: none;
    }
}

/* Sipariş Listesi */
.order-items-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-order-placeholder {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-weight: 500;
}

.no-order-placeholder i {
    font-size: 48px;
    color: var(--accent-light);
}

.order-item-card {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.order-item-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.order-item-name {
    font-size: 14px;
    font-weight: 600;
}

.order-item-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}

.order-item-note-row {
    font-size: 12px;
    color: var(--accent-hover);
    font-style: italic;
}

.order-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    background-color: var(--bg-color);
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}

.qty-val {
    width: 32px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.item-action-btns {
    display: flex;
    gap: 8px;
}

/* Sidebar Footer & Toplamlar */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--panel-border);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px dashed var(--panel-border);
    padding-top: 12px;
    margin-top: 4px;
}

.summary-row.total .total-val {
    color: var(--accent);
}

.sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sidebar-actions .btn-pay {
    grid-column: span 2;
}

/* Modallar */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 14, 13, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-box {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
    opacity: 1;
}

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

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--panel-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--card-bg);
}

/* Sipariş Ekleme Modalı & Menü Grid */
/* Sipariş Ekleme Modalı & Menü Grid */
.menu-picker-layout {
    display: flex;
    flex-direction: column;
    height: 480px;
    overflow: hidden;
}

.menu-categories-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    white-space: nowrap;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--panel-border);
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.menu-categories-list::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.menu-categories-list {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.menu-category-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--panel-border);
    background: var(--card-bg);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.menu-category-btn.active {
    background-color: var(--accent);
    color: #FFF;
    border-color: var(--accent);
}

@media(min-width: 768px) {
    .menu-picker-layout {
        display: grid;
        grid-template-columns: 160px 1fr;
    }
    
    .menu-categories-list {
        flex-direction: column;
        border-right: 1px solid var(--panel-border);
        border-bottom: none;
        padding: 16px 12px;
        overflow-y: auto;
        overflow-x: hidden;
        white-space: normal;
    }
    
    .menu-category-btn {
        border-radius: var(--radius-sm);
        border: none;
        background: none;
        text-align: left;
        padding: 10px 12px;
        width: 100%;
    }
}

.menu-items-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.menu-search-bar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    gap: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--panel-border);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.menu-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    display: grid;
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    align-content: start; /* Prevent items from stretching vertically */
}

.menu-item-button {
    background-color: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    min-height: 125px; /* Uniform card height */
}

.menu-item-button:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background-color: var(--card-hover-bg);
}

.menu-item-button-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.menu-item-button-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

/* Ödeme Seçenekleri & Parçalı Ödeme */
.payment-summary {
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.payment-type-card {
    border: 1px solid var(--panel-border);
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.payment-type-card i {
    font-size: 22px;
    color: var(--accent);
}

.payment-type-card:hover, .payment-type-card.active {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}

.split-payment-wrapper {
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    background-color: var(--card-bg);
    overflow: hidden;
    margin-top: 16px;
}

.split-items-list {
    max-height: 180px;
    overflow-y: auto;
}

.split-item-row {
    padding: 12px 16px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

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

.split-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.split-qty-input {
    width: 50px;
    padding: 4px;
    text-align: center;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid var(--panel-border);
    margin-left: 8px;
}

/* Fiş Modalı */
.receipt-paper {
    background-color: #FFF;
    color: #000;
    padding: 30px 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.4;
    max-width: 380px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
}

.receipt-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.receipt-divider {
    border-bottom: 1px dashed #000;
    margin: 12px 0;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.receipt-total-section {
    border-top: 1px dashed #000;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
}

/* Rapor Modalı Kartları */
.report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.report-card {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.report-card.span-2 {
    grid-column: span 2;
}

.report-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.report-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.report-list-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--panel-border);
}

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

/* Ayarlar / Ürün Yönetimi Panel Tabları */
.settings-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 16px;
}

.settings-tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.settings-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.settings-pane {
    display: none;
}

.settings-pane.active {
    display: block;
}

.settings-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    background-color: var(--card-bg);
    margin-bottom: 10px;
}

/* Yazıcı Görünümü (Adisyon Yazdırmak İçin) */
@media print {
    body * {
        visibility: hidden;
    }
    
    .receipt-paper, .receipt-paper * {
        visibility: visible;
    }
    
    .receipt-paper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        padding: 0;
    }
}

/* Premium Login Arayüzü */
.login-body {
    background: radial-gradient(circle at 50% 50%, #201511 0%, #0c0807 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Arka Plan Glow Efektleri */
.login-background-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(198, 139, 89, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulseGlow 8s infinite alternate;
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(211, 99, 73, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: pulseGlow 12s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(4%, 4%); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
}

.login-card {
    background: rgba(20, 15, 13, 0.65);
    border: 1px solid rgba(212, 163, 115, 0.25);
    backdrop-filter: blur(30px) saturate(170%);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 50px rgba(212, 163, 115, 0.08);
    color: #F7F3F0;
    transition: var(--transition);
}

.login-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75), 0 0 60px rgba(212, 163, 115, 0.15);
    border-color: rgba(212, 163, 115, 0.35);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFF, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #BFAFA8;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: #8E7E77;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper:focus-within i {
    color: var(--accent);
    transform: scale(1.15);
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #8E7E77;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: var(--transition);
    z-index: 10;
}

.password-toggle-btn:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.input-wrapper .form-control {
    padding-left: 42px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(18, 14, 13, 0.6);
    border-color: rgba(212, 163, 115, 0.2);
    color: #FFF;
}

.input-wrapper .form-control:focus {
    border-color: var(--accent);
    background: rgba(18, 14, 13, 0.9);
}

.error-message {
    color: #E07A5F;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 20px;
    text-align: center;
}

.btn-block {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
}

/* Captcha Responsive ve Mobil Uyumluluk Kuralları */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }
    
    .captcha-question {
        text-align: center;
        width: 100%;
    }
}

/* Tablet Görünümü Yan Panel İyileştirmesi */
@media (min-width: 640px) and (max-width: 1023px) {
    .order-sidebar {
        width: 400px !important;
        right: -400px;
    }
    
    .order-sidebar.sidebar-open {
        right: 0 !important;
    }
}
