/* ====================================
   Navita Balık — Admin Panel v2.0
   Modern Premium Design System
   ==================================== */

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

/* ---- CSS Custom Properties ---- */
:root {
    --primary: #1e3a5f;
    --primary-light: #2a5298;
    --primary-dark: #0f1f3a;
    --accent: #4f8cff;
    --accent-glow: rgba(79, 140, 255, 0.25);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);

    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --bg-input: #f7f8fa;
    --bg-table-header: #f8fafc;

    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base Reset & Typography ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* ---- Admin Sidebar Layout ---- */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: #ffffff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 1px 0 0 #e2e8f0, 4px 0 16px rgba(0, 0, 0, 0.04);
    border-right: 1px solid #e2e8f0;
}

.sidebar-header {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-brand { display: flex; align-items: center; text-decoration: none; }
.sidebar-logo { height: 120px; width: auto; object-fit: contain; }

.sidebar-close {
    display: none;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(79,140,255,0.12), rgba(79,140,255,0.06));
    color: var(--accent);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer {
    padding: 0.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link.external { color: var(--accent); }
.sidebar-link.external:hover { color: #2563eb; background: rgba(79,140,255,0.06); }

.sidebar-link.logout { color: #ef4444; opacity: 0.7; }
.sidebar-link.logout:hover { opacity: 1; background: rgba(239,68,68,0.06); }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    opacity: 0;
}

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

/* Mobile hamburger toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1050;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.sidebar-toggle:hover { transform: scale(1.05); }

/* Main content offset */
body:not(.login-page) {
    margin-left: 240px;
}

/* ---- LEGACY: Keep .admin-navbar hidden (for pages not yet migrated) ---- */
.admin-navbar { display: none !important; }

/* ---- Responsive Sidebar ---- */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .sidebar-close { display: block; }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    
    body:not(.login-page) {
        margin-left: 0;
        padding-top: 3.5rem; /* hamburger buton alanı */
    }
}

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

/* ---- Page Header ---- */
.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---- Cards ---- */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 1.5rem;
}

.card-header .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.card-header .card-title i {
    font-size: 1.1rem;
    color: var(--accent);
}

.card-body {
    padding: 1.5rem;
}

/* ---- Form Elements ---- */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    background-color: var(--bg-input);
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.form-control:hover,
.form-select:hover {
    border-color: #cbd5e1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background-color: #fff;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.input-group-text {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-left: none;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ---- Buttons ---- */
.btn {
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.25rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, var(--success));
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #15803d, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.btn-outline-primary {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.btn-outline-danger {
    color: var(--danger);
    border: 1.5px solid var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
}

/* ---- Tables ---- */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--bg-table-header);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}

.table tbody td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.table-hover tbody tr {
    transition: background-color var(--transition-fast);
}

.table-hover tbody tr:hover {
    background-color: rgba(79, 140, 255, 0.03);
}

/* ---- Product List Specific ---- */
.product-img-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.product-img-thumb:hover {
    transform: scale(1.15);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.product-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    max-width: 220px;
}

.ck.ck-editor {
    max-width: 100%;
}

.ck-editor__editable_inline {
    min-height: 120px;
}

.product-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    white-space: nowrap;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(79, 140, 255, 0.08);
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(79, 140, 255, 0.15);
}

/* ---- Drag & Drop (Sortable) ---- */
.product-row {
    cursor: default;
    transition: all var(--transition-normal);
}

.product-row:hover {
    background-color: rgba(79, 140, 255, 0.03);
}

.drag-handle {
    cursor: grab;
    padding: 0.5rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-handle:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.35;
    background: rgba(79, 140, 255, 0.06) !important;
    border: 2px dashed var(--accent) !important;
    border-radius: var(--radius-sm);
}

.sortable-chosen {
    box-shadow: var(--shadow-lg);
    background: #fff;
}

/* ---- Modals ---- */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 1.5rem;
    background: var(--bg-table-header);
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-backdrop.show {
    backdrop-filter: blur(8px);
}

.btn-close {
    opacity: 0.5;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* ---- Login Page ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f1f3a 0%, #1e3a5f 40%, #2a5298 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* ---- Dashboard / Home ---- */
.hover-card {
    transition: all var(--transition-slow);
    border: 1px solid var(--border-light);
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 140, 255, 0.2);
}

.icon-wrapper {
    height: 80px;
    width: 80px;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.08), rgba(79, 140, 255, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all var(--transition-slow);
}

.hover-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.3);
}

.hover-card:hover .icon-wrapper i {
    color: #fff !important;
}

/* ---- Stats Cards ---- */
.stat-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.stat-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.stat-accent {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.stat-success {
    background: linear-gradient(135deg, #059669, var(--success));
}

/* ---- Badges ---- */
.badge {
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
}

/* ---- Sort Info ---- */
.sort-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(79, 140, 255, 0.06);
    border: 1px solid rgba(79, 140, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1rem;
    font-weight: 500;
}

/* ---- Utilities ---- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider-vertical {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .card-body {
        padding: 1.25rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .product-img-thumb {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 767.98px) {
    .page-header h2 {
        font-size: 1.35rem;
    }
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-delay-1 {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* ====================================
   Kalori & Alerjen Sistemi
   ==================================== */

/* ---- Nutrition Section Header ---- */
.nutrition-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.nutrition-section-header i {
    font-size: 1rem;
    color: var(--accent);
}

.nutrition-section-header span {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.nutrition-section-header .badge-new {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: auto;
}

/* ---- Calorie Input ---- */
.calorie-input-wrap {
    position: relative;
}

.calorie-input-wrap .form-control {
    padding-left: 2.5rem;
}

.calorie-input-wrap .calorie-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.calorie-input-wrap .input-group-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ---- Allergen Grid ---- */
.allergen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* ---- Allergen Tag ---- */
.allergen-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-full);
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.allergen-tag:hover {
    border-color: var(--accent);
    background: rgba(79, 140, 255, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.1);
}

.allergen-tag .allergen-emoji {
    font-size: 0.9rem;
    line-height: 1;
}

.allergen-tag .allergen-check {
    display: none;
    font-size: 0.65rem;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--success);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.allergen-tag.selected {
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.1), rgba(99, 102, 241, 0.08));
    border-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.allergen-tag.selected .allergen-check {
    display: inline-flex;
}

.allergen-tag:active {
    transform: scale(0.96);
}

/* ---- Nutrition Badges in Product Table ---- */
.nutrition-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.calorie-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.15);
    font-size: 0.72rem;
    font-weight: 600;
    color: #ea580c;
    white-space: nowrap;
}

.calorie-badge-sm .fire-icon {
    font-size: 0.7rem;
}

.allergen-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(79, 140, 255, 0.08);
    border: 1px solid rgba(79, 140, 255, 0.12);
    font-size: 0.7rem;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
}

.allergen-badge-sm:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.2);
    z-index: 2;
}

.allergen-badge-sm[title]::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.allergen-badge-sm:hover[title]::after {
    opacity: 1;
    visibility: visible;
}

/* ---- Modal Nutrition Section ---- */
.modal-nutrition-section {
    background: linear-gradient(135deg, #f8fafc, #f0f4ff);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(79, 140, 255, 0.08);
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .allergen-tag {
        padding: 0.35rem 0.55rem;
        font-size: 0.72rem;
    }
    
    .allergen-tag .allergen-emoji {
        font-size: 0.8rem;
    }
    
    .allergen-grid {
        gap: 0.35rem;
    }
    
    .nutrition-badges {
        gap: 0.2rem;
    }
    
    .allergen-badge-sm {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}