/* =======================================================
   MEŞHUR MALATYA ASPAVA - ADMIN PANEL STYLESHEET
   Luxury Obsidian & Gold Management Interface
   ======================================================= */

:root {
    --bg-main: #0c0d12;
    --bg-sidebar: #12141c;
    --bg-card: #181b26;
    --bg-card-hover: #1f2333;
    --bg-input: #10121a;

    --gold: #d4af37;
    --gold-light: #f5e4ab;
    --gold-dark: #a67c13;
    --gold-subtle: rgba(212, 175, 55, 0.12);

    --burgundy: #85141d;
    --ruby: #a51d28;
    --crimson: #c02836;

    --text-main: #fcfbf9;
    --text-dim: #9da3b4;
    --text-muted: #646a7c;

    --border: rgba(212, 175, 55, 0.2);
    --border-dim: rgba(255, 255, 255, 0.08);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    border-color: #22c55e;
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-color: #ef4444;
    border-left: 4px solid #ef4444;
}

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

/* ===== LOGIN SCREEN ===== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1b1e2c 0%, #0c0d12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10000;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.admin-login-logo {
    height: 60px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.logo-subtitle {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.login-form {
    text-align: left;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    padding: 14px 48px 14px 16px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.password-wrapper input:focus {
    border-color: var(--gold);
}

.toggle-password-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-btn:hover {
    color: var(--gold);
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 8px;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input {
    border-color: #ef4444;
}

/* ===== ADMIN LAYOUT ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 270px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-dim);
}

.sidebar-logo-img {
    height: 44px;
    object-fit: contain;
}

.sidebar-nav {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--gold);
    background: var(--gold-subtle);
}

.nav-item.active {
    background: var(--gold-subtle);
    border: 1px solid var(--border);
    color: var(--gold-light);
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--border-dim);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ruby);
    border: 1px solid var(--gold);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #ffffff;
}

.profile-role {
    font-size: 0.78rem;
    color: var(--gold);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg-main);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 600;
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.content-body {
    padding: 32px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Stats Panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper.gold {
    background: var(--gold-subtle);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.stat-icon-wrapper.red {
    background: rgba(165, 29, 40, 0.2);
    color: #ef4444;
    border: 1px solid rgba(165, 29, 40, 0.5);
}

.stat-icon-wrapper.orange {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
}

/* Sections Header */
.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-section-title {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 700;
}

.panel-section-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    padding: 12px 16px 12px 42px;
    color: #ffffff;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--gold);
}

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

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.category-tab.active {
    background: var(--gold);
    color: #121318;
    border-color: var(--gold);
}

/* Data Table */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.menu-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.menu-table th {
    background: rgba(14, 16, 23, 0.85);
    padding: 16px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-light);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.92rem;
    vertical-align: middle;
}

.menu-table tr:hover {
    background: rgba(212, 175, 55, 0.04);
}

.thumbnail-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-dim);
}

.item-name-cell {
    font-weight: 600;
    color: #ffffff;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.price-text {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.05rem;
}

.badge-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-tag.popular {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.badge-tag.chef {
    background: rgba(165, 29, 40, 0.3);
    color: #f87171;
    border: 1px solid rgba(165, 29, 40, 0.6);
}

.badge-tag.none {
    color: var(--text-muted);
}

.description-text {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dim);
}

.actions-col {
    text-align: right;
}

.actions-wrapper {
    display: inline-flex;
    gap: 8px;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dim);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn span {
    display: none;
}

.action-btn.edit {
    color: var(--gold);
}

.action-btn.edit:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
}

.action-btn.delete {
    color: #ef4444;
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.no-results {
    padding: 60px 20px;
    text-align: center;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: inline-block;
}

.no-results h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.no-results p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Export & Import Grid */
.export-import-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.settings-card.full-width {
    grid-column: span 2;
}

.settings-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.settings-icon.gold {
    background: var(--gold-subtle);
    color: var(--gold);
}

.settings-icon.red {
    background: rgba(165, 29, 40, 0.2);
    color: #ef4444;
}

.settings-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.settings-title {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.settings-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.file-input {
    display: none;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

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

.modal-title {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dim);
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

/* Image Upload Preview Box */
.image-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.image-preview-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

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

.upload-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.upload-tip {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-dim);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Confirm Dialog */
.modal-confirm {
    max-width: 440px;
    text-align: center;
}

.modal-body {
    padding: 24px;
}

.confirm-message {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.6;
}

.header-no-border, .footer-no-border {
    border: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: #121318;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-dim);
}

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

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

/* Footer */
.admin-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -270px;
        top: 0;
        height: 100%;
    }

    .sidebar.open {
        transform: translateX(270px);
    }

    .sidebar-toggle {
        display: block;
    }

    .stats-panel,
    .export-import-grid {
        grid-template-columns: 1fr;
    }

    .settings-card.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    /* Header & General Layout */
    .main-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .header-left {
        width: 100%;
        gap: 12px;
    }

    .header-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .live-indicator {
        font-size: 0.76rem;
    }

    .content-body {
        padding: 16px 14px 30px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Stats Panel */
    .stats-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .stat-card {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Title & New Item Button */
    .section-title-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .panel-section-title {
        font-size: 1.25rem;
    }

    #addNewItemBtn {
        width: 100%;
        padding: 13px 20px;
        font-size: 0.95rem;
    }

    /* Filters & Search */
    .filter-bar {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .category-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        padding-bottom: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.84rem;
    }

    /* ===== MENU TABLE -> MOBILE CARDS TRANSFORMATION ===== */
    .table-container {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .menu-table,
    .menu-table tbody,
    .menu-table tr,
    .menu-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-table thead {
        display: none;
    }

    .menu-table tr {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-bottom: 14px;
        box-shadow: var(--shadow-sm);
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-table tr:hover {
        background: var(--bg-card);
        border-color: var(--gold-subtle);
    }

    .menu-table td {
        padding: 0;
        border: none;
        width: 100%;
    }

    /* Top Row: Thumbnail Image */
    .menu-table td[data-label="Görsel"] {
        float: left;
        width: 64px;
        margin-right: 14px;
        margin-bottom: 8px;
    }

    .thumbnail-img {
        width: 64px;
        height: 64px;
        border-radius: var(--radius-sm);
    }

    /* Dish Name */
    .menu-table td[data-label="Lezzet Adı"] {
        font-size: 1.05rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 4px;
        line-height: 1.35;
        width: auto;
    }

    /* Price */
    .menu-table td[data-label="Fiyat (TL)"] {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--gold);
        margin-bottom: 6px;
        width: auto;
    }

    /* Category Tag */
    .menu-table td[data-label="Kategori"] {
        display: inline-block;
        width: auto;
        margin-right: 6px;
        margin-bottom: 6px;
    }

    /* Badge Tag */
    .menu-table td[data-label="Rozet"] {
        display: inline-block;
        width: auto;
        margin-bottom: 6px;
    }

    /* Description */
    .menu-table td[data-label="Açıklama"] {
        clear: both;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        margin-bottom: 12px;
        width: 100%;
    }

    .description-text {
        max-width: 100%;
        white-space: normal;
        font-size: 0.84rem;
        line-height: 1.5;
        color: var(--text-dim);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Actions Footer */
    .menu-table td[data-label="İşlemler"] {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        padding-top: 12px;
        width: 100%;
    }

    .actions-wrapper {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .action-btn {
        width: auto;
        flex: 1;
        height: 40px;
        padding: 0 16px;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.88rem;
        font-weight: 600;
    }

    .action-btn span {
        display: inline;
    }

    .action-btn.edit {
        background: rgba(212, 175, 55, 0.12);
        border-color: var(--gold);
        color: var(--gold);
    }

    .action-btn.delete {
        background: rgba(239, 68, 68, 0.12);
        border-color: rgba(239, 68, 68, 0.4);
        color: #ef4444;
    }

    /* ===== MODAL POPUP (MOBILE FIRST) ===== */
    .modal {
        padding: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .modal-content {
        max-height: 88vh;
        max-height: 88dvh;
        height: auto;
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-md);
        width: 100%;
        max-width: 500px;
        overflow: hidden;
        margin: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
        border: 1px solid var(--border);
    }

    .modal-header {
        padding: 14px 18px;
        flex-shrink: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-dim);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .modal-title {
        font-size: 1.15rem;
    }

    .modal-close {
        font-size: 1.8rem;
        padding: 4px 8px;
    }

    .modal-form {
        padding: 16px 18px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        min-height: 0;
        gap: 14px;
        box-sizing: border-box;
    }

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

    .form-group label {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents auto-zoom in iOS Safari */
        font-family: inherit;
    }

    .form-group textarea {
        min-height: 80px;
        resize: vertical;
        line-height: 1.5;
    }

    .image-upload-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .image-preview-box {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .upload-controls {
        flex: 1;
    }

    .upload-buttons {
        display: flex;
        gap: 8px;
        margin-bottom: 6px;
    }

    .upload-buttons .btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .modal-footer {
        padding: 14px 18px;
        flex-shrink: 0;
        display: flex;
        gap: 10px;
        background: #181b27;
        border-top: 1px solid var(--border-dim);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
        width: 100%;
        box-sizing: border-box;
    }

    .modal-footer .btn {
        flex: 1;
        padding: 12px;
        font-size: 0.95rem;
    }

    .modal-confirm .modal-footer {
        display: flex;
        gap: 10px;
    }

    .modal-confirm .modal-footer .btn {
        flex: 1;
    }

    .admin-footer {
        padding: 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 8px;
    }

    .modal-content {
        max-height: 92vh;
        max-height: 92dvh;
    }

    .modal-form {
        padding: 14px;
        gap: 12px;
    }

    .modal-header,
    .modal-footer {
        padding: 12px 14px;
    }

    .content-body {
        padding: 14px 10px 24px;
    }

    .menu-table tr {
        padding: 14px;
    }
}
