/* admin.css - Mellow Moss Coffee Premium Yönetim Paneli Stilleri */

:root {
    --bg-dark: #0c140e;
    --bg-sidebar: #111e13;
    --bg-card: #162619;
    --bg-card-hover: #1c3020;
    --bg-input: #0f1c11;
    
    --gold: #d4af37;
    --gold-light: #e5c566;
    --gold-dark: #b89326;
    --gold-rgb: 212, 175, 55;
    
    --moss: #1c3020;
    --cream: #f7f4ed;
    --cream-rgb: 247, 244, 237;
    --text-main: #f0ece1;
    --text-muted: #9eb5a3;
    --text-dim: #6b8270;
    
    --danger: #e74c3c;
    --danger-bg: rgba(231, 76, 60, 0.15);
    --success: #2ecc71;
    --success-bg: rgba(46, 204, 113, 0.15);
    --warning: #f39c12;
    --info: #3498db;
    
    --border-color: rgba(212, 175, 55, 0.15);
    --border-subtle: rgba(247, 244, 237, 0.08);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.6);
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    --radius: 12px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Utilities */
.hidden { display: none !important; }
.mt-4 { margin-top: 1rem; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gold { color: var(--gold); }

/* Buttons & Inputs Base */
button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

input, select, textarea {
    font-family: var(--font-body);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--cream);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.2);
}

/* ==========================================================================
   1. PIN KİLİT EKRANI (PIN SCREEN)
   ========================================================================== */
.pin-screen-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at center, #1b2e20 0%, #0a110b 100%);
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
}

.pin-card {
    background: rgba(22, 38, 25, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    backdrop-filter: blur(12px);
    text-align: center;
    animation: fadeInScale 0.4s ease;
}

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

.pin-brand {
    margin-bottom: 1.8rem;
}

.pin-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.pin-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
}

.pin-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.pin-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    text-align: left;
}

.pin-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.pin-input-wrapper input {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
    padding: 0.7rem;
    border-radius: 12px;
}

.pin-visibility-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 6px;
}

.pin-visibility-btn:hover {
    color: var(--gold);
}

.pin-error-msg {
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Numpad Keypad */
.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.keypad-btn {
    background: rgba(247, 244, 237, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--cream);
    font-size: 1.3rem;
    font-weight: 600;
    height: 52px;
    border-radius: 10px;
    transition: var(--transition);
}

.keypad-btn:hover, .keypad-btn:active {
    background: rgba(var(--gold-rgb), 0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(0.97);
}

.keypad-action {
    color: var(--text-muted);
}

.keypad-submit {
    background: var(--gold);
    color: var(--bg-dark);
}

.keypad-submit:hover {
    background: var(--gold-light);
    color: var(--bg-dark);
}

.remember-row {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
}

.pin-hint {
    display: none !important;
}

/* ==========================================================================
   2. GENEL BUTONLAR & BİLEŞENLER
   ========================================================================== */
.btn-primary-action {
    background: var(--gold);
    color: var(--bg-dark);
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary-action:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.3);
}

.btn-secondary-action {
    background: rgba(var(--gold-rgb), 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-secondary-action:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn-outline-action {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--cream);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-action:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-danger-action {
    background: var(--danger);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-danger-action:hover {
    background: #c0392b;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cream);
}

.btn-block { width: 100%; justify-content: center; }

.btn-sm-action {
    background: rgba(var(--gold-rgb), 0.12);
    border: 1px solid var(--border-color);
    color: var(--gold);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-sm-action:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn-link {
    background: transparent;
    color: var(--gold);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Custom Checkbox */
.checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--gold);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--gold);
    border-color: var(--gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid var(--bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-danger input:checked ~ .checkmark {
    background-color: var(--danger);
    border-color: var(--danger);
}

.checkbox-danger input:checked ~ .checkmark:after {
    border-color: #fff;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: var(--cream);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--gold);
    border-color: var(--gold);
}

input:checked + .slider:before {
    transform: translateX(21px);
    background-color: var(--bg-dark);
}

/* ==========================================================================
   3. ANA DÜZEN (LAYOUT)
   ========================================================================== */
.admin-app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Üst Başlık (Top Bar) */
.admin-header {
    background: rgba(17, 30, 19, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle-btn {
    display: none;
    background: transparent;
    color: var(--cream);
    font-size: 1.3rem;
    padding: 6px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mini-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    object-fit: cover;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
    display: block;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: block;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-local {
    background: rgba(243, 156, 18, 0.15);
    border: 1px solid rgba(243, 156, 18, 0.4);
    color: var(--warning);
}

.status-local .status-dot {
    background: var(--warning);
    box-shadow: 0 0 6px var(--warning);
}

.status-cloud {
    background: var(--success-bg);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: var(--success);
}

.status-cloud .status-dot {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-action-btn {
    background: rgba(247, 244, 237, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--cream);
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-action-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.1);
}

.logout-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-bg);
}

/* Duyuru Üst Bandı */
.admin-announcement-banner {
    background: linear-gradient(90deg, #b89326 0%, #e5c566 50%, #b89326 100%);
    color: #0c140e;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-tag {
    background: #0c140e;
    color: var(--gold);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.banner-quick-edit {
    background: rgba(0, 0, 0, 0.15);
    color: #0c140e;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.banner-quick-edit:hover {
    background: #0c140e;
    color: var(--gold);
}

/* Ana Düzen (Sidebar + Content) */
.admin-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 65px);
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem 0.8rem;
    transition: var(--transition);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.nav-tab-btn i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--cream);
}

.nav-tab-btn.active {
    background: rgba(var(--gold-rgb), 0.15);
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    font-weight: 600;
}

.sidebar-footer {
    padding: 1rem 0.5rem 0;
    border-top: 1px solid var(--border-subtle);
}

.quick-save-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.quick-save-indicator i {
    color: var(--success);
}

/* Main Content */
.admin-content {
    flex: 1;
    background: var(--bg-dark);
    padding: 2rem 2.5rem;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

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

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

.pane-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.pane-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1.2;
}

.pane-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* ==========================================================================
   4. DASHBOARD SEKME STİLLERİ
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.icon-coffee { background: rgba(var(--gold-rgb), 0.15); color: var(--gold); }
.icon-categories { background: rgba(52, 152, 219, 0.15); color: var(--info); }
.icon-featured { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.icon-outofstock { background: var(--danger-bg); color: var(--danger); }

.stat-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.2;
}

.stat-alert-card {
    border-color: rgba(231, 76, 60, 0.3);
}

/* Dashboard Hızlı Fiyat Barı */
.dashboard-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

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

.card-header-row h3 {
    font-size: 1.2rem;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header-row p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.quick-search-wrapper {
    position: relative;
    max-width: 600px;
}

.quick-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.quick-search-wrapper input {
    padding-left: 2.5rem;
    font-size: 1.05rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.quick-search-results {
    margin-top: 0.8rem;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.quick-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: var(--bg-card);
    transition: var(--transition);
}

.quick-result-item:hover {
    background: var(--bg-card-hover);
}

.quick-item-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.quick-item-img {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
}

.quick-item-name {
    font-weight: 600;
    color: var(--cream);
    display: block;
}

.quick-item-cat {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quick-price-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-price-input {
    width: 90px;
    padding: 0.4rem 0.6rem;
    text-align: right;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gold);
}

/* Featured Quick Grid */
.featured-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.featured-quick-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    transition: var(--transition);
}

.featured-quick-card:hover {
    border-color: var(--gold);
    background: rgba(var(--gold-rgb), 0.05);
}

.featured-quick-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.featured-quick-details {
    flex: 1;
}

.featured-quick-title {
    font-weight: 600;
    color: var(--cream);
    font-size: 0.95rem;
}

.featured-quick-price {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}

/* ==========================================================================
   5. MENÜ & ÜRÜN YÖNETİMİ SEKME STİLLERİ
   ========================================================================== */
.menu-control-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    padding-left: 2.3rem;
    padding-right: 2rem;
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-dim);
    padding: 4px;
}

.clear-btn:hover { color: var(--cream); }

.filter-category-select-wrapper, .stock-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-category-select-wrapper label, .stock-filter-wrapper label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.table-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auto-save-tip {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.auto-save-tip i {
    color: var(--success);
}

/* Ürün Grid Kartları */
.items-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.item-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.item-admin-card:hover {
    border-color: rgba(var(--gold-rgb), 0.4);
    box-shadow: var(--shadow-md);
}

.item-admin-card.is-outofstock {
    opacity: 0.65;
    border-color: rgba(231, 76, 60, 0.4);
}

.item-card-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.item-card-img-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
}

.item-card-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.item-badge-featured {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--bg-dark);
    font-size: 0.65rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.item-card-text {
    flex: 1;
    overflow: hidden;
}

.item-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-card-cat {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

.item-card-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fiyat ve Aksiyonlar Satırı */
.item-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-subtle);
    gap: 0.6rem;
}

.inline-price-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.inline-price-input {
    width: 85px;
    padding: 0.35rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    text-align: right;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
}

.save-price-tick-btn {
    background: rgba(var(--gold-rgb), 0.15);
    color: var(--gold);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.save-price-tick-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.item-card-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stock-pill-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    transition: var(--transition);
}

.stock-in {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.stock-out {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.icon-action-btn {
    background: rgba(247, 244, 237, 0.05);
    color: var(--text-muted);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.icon-action-btn:hover {
    color: var(--gold);
    background: rgba(var(--gold-rgb), 0.15);
}

.icon-action-btn.btn-delete:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.icon-action-btn.is-active-star {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.15);
}

/* ==========================================================================
   6. TOPLU ZAM / FİYAT SİHİRBAZI STİLLERİ
   ========================================================================== */
.wizard-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wizard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.wizard-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

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

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.4);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.15rem;
    color: var(--cream);
    margin-bottom: 0.2rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.wizard-select {
    max-width: 450px;
    font-size: 1rem;
    font-weight: 500;
}

.wizard-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card-body {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    transition: var(--transition);
}

.radio-card-body i {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.radio-card-body strong {
    color: var(--cream);
    font-size: 0.95rem;
}

.radio-card-body span {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.radio-card input:checked + .radio-card-body {
    background: rgba(var(--gold-rgb), 0.12);
    border-color: var(--gold);
}

.amount-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.amount-field-wrapper {
    position: relative;
    width: 140px;
}

.amount-field-wrapper input {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
    padding-right: 2.2rem;
    color: var(--gold);
}

.amount-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.rounding-toggle-group {
    margin-top: 0.8rem;
}

/* Önizleme Tablosu Paneli */
.preview-panel {
    background: var(--bg-card);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.3s ease;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.preview-table th, .preview-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.preview-table th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    position: sticky;
    top: 0;
}

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

.preview-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.old-price-strike {
    color: var(--text-dim);
    text-decoration: line-through;
}

.new-price-highlight {
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
}

.diff-tag-up {
    color: var(--success);
    font-weight: 600;
    font-size: 0.8rem;
}

.diff-tag-down {
    color: var(--danger);
    font-weight: 600;
    font-size: 0.8rem;
}

/* ==========================================================================
   7. KATEGORİ YÖNETİMİ SEKME STİLLERİ
   ========================================================================== */
.categories-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.category-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.category-admin-card:hover {
    border-color: var(--gold);
}

.cat-title-wrap h4 {
    font-size: 1.05rem;
    color: var(--cream);
    margin-bottom: 0.2rem;
}

.cat-item-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8. KAFE BİLGİLERİ SEKME STİLLERİ
   ========================================================================== */
.info-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.form-card h3 {
    font-size: 1.15rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

/* ==========================================================================
   9. GÜNÜN DUYURUSU SEKME STİLLERİ
   ========================================================================== */
.announcement-editor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    max-width: 800px;
}

.announcement-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.switch-info strong {
    font-size: 1.1rem;
    color: var(--cream);
    display: block;
}

.switch-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.announcement-live-preview {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-subtle);
}

.announcement-live-preview label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: block;
}

.preview-banner-box {
    background: linear-gradient(90deg, #b89326 0%, #e5c566 50%, #b89326 100%);
    color: #0c140e;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.p-badge {
    background: #0c140e;
    color: var(--gold);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Kampanya Yönetimi Stilleri */
.campaign-item-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    background: rgba(247, 244, 237, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    transition: var(--transition);
}
.campaign-item-row:hover {
    border-color: rgba(203, 168, 118, 0.3);
}
.campaign-item-row .c-title-input {
    flex: 2;
}
.campaign-item-row .c-price-input {
    flex: 1;
}
.preview-campaigns-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.8rem;
}
.preview-campaign-card {
    background: rgba(203, 168, 118, 0.08);
    border: 1px solid var(--gold);
    padding: 1.2rem;
    text-align: center;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.preview-campaign-card h4 {
    font-size: 0.95rem;
    color: var(--cream);
    text-transform: uppercase;
    margin: 0;
}
.preview-campaign-card span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 600;
}

/* ==========================================================================
   10. AYARLAR & BULUT VERİTABANI STİLLERİ
   ========================================================================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-icon-title {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.card-icon-title i {
    font-size: 1.5rem;
    margin-top: 3px;
}

.card-icon-title h3 {
    font-size: 1.15rem;
    color: var(--cream);
}

.card-icon-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.cloud-status-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.card-actions-row {
    margin-top: 1.2rem;
}

.backup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.danger-card {
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.04);
}

/* ==========================================================================
   11. MODALLAR (MODALS)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-lg {
    max-width: 780px;
}

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

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

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-close-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 4px;
}

.modal-close-btn:hover {
    color: var(--cream);
}

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

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.modal-toggles-row {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Görsel Seçici Bileşeni */
.image-picker-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.image-preview-box {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-picker-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.image-picker-btns {
    display: flex;
    gap: 0.6rem;
}

.upload-label {
    cursor: pointer;
}

.hidden-file-input {
    display: none;
}

/* Galeri Grid */
.gallery-category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.gallery-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.gallery-tab-btn.active, .gallery-tab-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.3rem;
}

.gallery-thumb-card {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1/1;
    background: #000;
}

.gallery-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-card:hover {
    transform: scale(1.04);
    border-color: var(--gold);
}

/* ==========================================================================
   12. TOAST BİLDİRİMLERİ (TOASTS)
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--cream);
    font-size: 0.9rem;
    min-width: 260px;
    max-width: 360px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 4px solid var(--success); }
.toast-success i { color: var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-error i { color: var(--danger); }
.toast-info { border-left: 4px solid var(--gold); }
.toast-info i { color: var(--gold); }

/* ==========================================================================
   13. MOBİL VE TABLET UYUMU (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        bottom: 0;
        z-index: 95;
        box-shadow: var(--shadow-lg);
    }

    .admin-sidebar.open {
        left: 0;
    }

    .mobile-toggle-btn {
        display: block;
    }

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

@media (max-width: 600px) {
    .header-center {
        display: none;
    }

    .action-btn-text {
        display: none;
    }

    .header-action-btn {
        padding: 0.5rem;
    }

    .pane-header h1 {
        font-size: 1.7rem;
    }

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

    .items-grid-view {
        grid-template-columns: 1fr;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }
}
