/**
 * Luxe Souvenir - Next-Generation Admin Dashboard CSS
 * Sleek, Modern, Minimalist & Enterprise-Grade
 */

:root {
    --admin-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --admin-font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* Dark Sidebar Palette */
    --admin-sidebar-bg: #0b0f19;
    --admin-sidebar-surface: #111827;
    --admin-sidebar-hover: #1e293b;
    --admin-sidebar-border: rgba(255, 255, 255, 0.08);
    --admin-sidebar-text: #94a3b8;
    --admin-sidebar-text-hover: #f1f5f9;
    --admin-sidebar-text-active: #ffffff;
    --admin-sidebar-active: #10b981;

    /* Canvas & Surface */
    --admin-bg: #f8fafc;
    --admin-card-bg: #ffffff;
    --admin-border: #e2e8f0;
    --admin-border-subtle: #f1f5f9;
    --admin-border-focus: #0f172a;

    /* Typography */
    --admin-text-main: #0f172a;
    --admin-text-muted: #64748b;
    --admin-text-subtle: #94a3b8;

    /* Brand Accents */
    --admin-brand: #16a34a;
    --admin-brand-dark: #15803d;
    --admin-brand-light: #ecfdf5;
    --admin-primary: #0f172a;
    --admin-primary-hover: #1e293b;

    /* Theme Accents */
    --admin-emerald: #10b981;
    --admin-blue: #2563eb;
    --admin-indigo: #4f46e5;
    --admin-purple: #7c3aed;
    --admin-amber: #d97706;
    --admin-rose: #e11d48;

    /* Geometry & Elevation */
    --admin-radius-sm: 6px;
    --admin-radius: 10px;
    --admin-radius-lg: 14px;
    --admin-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --admin-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --admin-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --admin-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}

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

body {
    font-family: var(--admin-font);
    background-color: var(--admin-bg);
    color: var(--admin-text-main);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Layout Architecture
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.admin-sidebar {
    width: 260px;
    background-color: var(--admin-sidebar-bg);
    color: var(--admin-sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
    border-right: 1px solid var(--admin-sidebar-border);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--admin-sidebar-border);
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--admin-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.sidebar-brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.sidebar-brand-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 10px;
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-heading {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 14px 12px 6px;
    margin-top: 4px;
}

.sidebar-item {
    margin-bottom: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    border-radius: var(--admin-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sidebar-link:hover {
    background-color: var(--admin-sidebar-surface);
    color: var(--admin-sidebar-text-hover);
}

.sidebar-link:hover svg {
    opacity: 1;
}

.sidebar-link.active {
    background-color: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.sidebar-link.active svg {
    opacity: 1;
    color: #34d399;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #10b981;
}

.sidebar-link .badge-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
}

.sidebar-link.active .badge-count {
    background: #10b981;
    color: #ffffff;
}

.sidebar-user-box {
    padding: 14px 16px;
    border-top: 1px solid var(--admin-sidebar-border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    overflow: hidden;
    flex-grow: 1;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Main Canvas Area */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar Header */
.admin-topbar {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 40;
}

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

.topbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--admin-text-main);
    letter-spacing: -0.01em;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-topbar-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-main);
    border-radius: var(--admin-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    box-shadow: var(--admin-shadow-sm);
}

.btn-topbar-action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-topbar-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-topbar-primary {
    background: var(--admin-primary);
    color: #ffffff;
    border-color: var(--admin-primary);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
}

.btn-topbar-primary:hover {
    background: var(--admin-primary-hover);
    border-color: var(--admin-primary-hover);
    color: #ffffff;
}

.btn-logout {
    color: #e11d48;
    background: #fff1f2;
    border-color: #ffe4e6;
}

.btn-logout:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #be123c;
}

/* Page Body Container */
.admin-content {
    padding: 24px 28px;
    flex-grow: 1;
}

/* Page Header Row */
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--admin-text-main);
    letter-spacing: -0.02em;
}

.page-desc {
    font-size: 0.84rem;
    color: var(--admin-text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Stat Cards Grid (Dashboard)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 20px;
    box-shadow: var(--admin-shadow);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--admin-primary);
}

.stat-card.card-purple::before { background: var(--admin-purple); }
.stat-card.card-blue::before { background: var(--admin-blue); }
.stat-card.card-amber::before { background: var(--admin-amber); }
.stat-card.card-emerald::before { background: var(--admin-emerald); }

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--admin-text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--admin-text-main);
    line-height: 1.15;
    font-family: var(--admin-font-display);
    letter-spacing: -0.02em;
}

.stat-growth {
    font-size: 0.74rem;
    color: #10b981;
    font-weight: 700;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--admin-radius-sm);
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.card-purple .stat-icon { background: #f5f3ff; color: #7c3aed; }
.card-blue .stat-icon { background: #eff6ff; color: #2563eb; }
.card-amber .stat-icon { background: #fffbeb; color: #d97706; }
.card-emerald .stat-icon { background: #ecfdf5; color: #10b981; }

/* ==========================================================================
   Admin Cards & Panels
   ========================================================================== */
.admin-card {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    margin-bottom: 22px;
    overflow: hidden;
}

.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff;
}

.admin-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--admin-text-main);
    letter-spacing: -0.01em;
}

.admin-card-body {
    padding: 20px;
}

/* ==========================================================================
   Modern Data Tables
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.admin-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 11px 16px;
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}

.admin-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--admin-border-subtle);
    vertical-align: middle;
    color: var(--admin-text-main);
}

.admin-table tbody tr {
    transition: background-color 0.1s ease;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Product Thumbnail Cell */
.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--admin-radius-sm);
    object-fit: cover;
    border: 1px solid var(--admin-border);
    background: #f8fafc;
    flex-shrink: 0;
}

.product-name-title {
    font-weight: 700;
    color: var(--admin-text-main);
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.product-name-title:hover {
    color: var(--admin-brand-dark);
}

.product-meta-sub {
    font-size: 0.72rem;
    color: var(--admin-text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Refined Status Badges (NO EMOJIS - Clean Pill with SVG or Micro-Dot)
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    display: inline-block;
    flex-shrink: 0;
}

.badge-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.badge-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.badge-danger {
    background: #fff1f2;
    color: #9f1239;
    border-color: #fecdd3;
}

.badge-info {
    background: #f0f9ff;
    color: #075985;
    border-color: #bae6fd;
}

.badge-purple {
    background: #f5f3ff;
    color: #5b21b6;
    border-color: #ddd6fe;
}

.badge-neutral {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

/* Action Buttons */
.btn-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sm-action {
    padding: 6px 10px;
    border-radius: var(--admin-radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    border: 1px solid var(--admin-border);
    background: #ffffff;
    color: var(--admin-text-main);
    transition: all 0.15s ease;
    box-shadow: var(--admin-shadow-sm);
}

.btn-sm-action svg {
    width: 13px;
    height: 13px;
}

.btn-sm-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-sm-primary {
    background: var(--admin-primary);
    color: #ffffff;
    border-color: var(--admin-primary);
}

.btn-sm-primary:hover {
    background: var(--admin-primary-hover);
    border-color: var(--admin-primary-hover);
    color: #ffffff;
}

.btn-sm-brand {
    background: var(--admin-brand);
    color: #ffffff;
    border-color: var(--admin-brand);
}

.btn-sm-brand:hover {
    background: var(--admin-brand-dark);
    color: #ffffff;
}

.btn-sm-danger {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

.btn-sm-danger:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #be123c;
}

/* ==========================================================================
   Modern Forms & Inputs
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--admin-text-main);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.form-hint {
    font-size: 0.72rem;
    color: var(--admin-text-muted);
    margin-top: 4px;
}

.form-control {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--admin-text-main);
    background: #ffffff;
    outline: none;
    transition: all 0.15s ease;
    box-shadow: var(--admin-shadow-sm);
}

.form-control:focus {
    border-color: var(--admin-border-focus);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

textarea.form-control {
    line-height: 1.5;
    resize: vertical;
}

select.form-control {
    background-image: url("data:image/svg2+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
}

/* ==========================================================================
   WooCommerce / Modern Tab Systems
   ========================================================================== */
.woo-tabs-container {
    display: grid;
    grid-template-columns: 210px 1fr;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: #ffffff;
    overflow: hidden;
}

.woo-tabs-nav {
    list-style: none;
    background: #f8fafc;
    border-right: 1px solid var(--admin-border);
}

.woo-tab-item {
    border-bottom: 1px solid var(--admin-border-subtle);
}

.woo-tab-btn {
    width: 100%;
    text-align: left;
    padding: 13px 18px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--admin-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}

.woo-tab-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}

.woo-tab-btn:hover {
    background: #f1f5f9;
    color: var(--admin-text-main);
}

.woo-tab-btn.active {
    background: #ffffff;
    color: var(--admin-text-main);
    border-left: 3px solid var(--admin-primary);
    margin-right: -1px;
}

.woo-tab-btn.active svg {
    opacity: 1;
    color: var(--admin-primary);
}

.woo-tab-content-area {
    padding: 22px;
}

.woo-tab-pane {
    display: none;
}

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

/* ==========================================================================
   Customizer Nav Tabs (Landing Page Editor)
   ========================================================================== */
.customizer-nav-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 1px solid var(--admin-border);
    padding-bottom: 10px;
    margin-bottom: 22px;
}

.customizer-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--admin-radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid transparent;
    background: #ffffff;
    color: var(--admin-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.customizer-tab-btn svg {
    width: 15px;
    height: 15px;
    opacity: 0.7;
}

.customizer-tab-btn:hover {
    background: #f1f5f9;
    color: var(--admin-text-main);
}

.customizer-tab-btn.active {
    background: var(--admin-primary);
    color: #ffffff;
    border-color: var(--admin-primary);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
}

.customizer-tab-btn.active svg {
    opacity: 1;
    color: #ffffff;
}

.tab-pane-content {
    display: none;
}

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

.editor-section-card {
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: var(--admin-shadow);
}

.editor-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--admin-border-subtle);
    gap: 12px;
    flex-wrap: wrap;
}

.editor-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--admin-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--admin-text-muted);
}

/* ==========================================================================
   Toggle Switches
   ========================================================================== */
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

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

.slider-switch {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .25s ease;
    border-radius: 22px;
}

.slider-switch:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .slider-switch {
    background-color: var(--admin-brand);
}

input:checked + .slider-switch:before {
    transform: translateX(18px);
}

/* ==========================================================================
   Alert Notifications & Toast
   ========================================================================== */
.admin-alert {
    padding: 13px 16px;
    border-radius: var(--admin-radius-sm);
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.admin-alert-danger {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.admin-alert-info {
    background: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

/* Pulsing Status Dot */
.pulse-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: pulseAnim 2s infinite ease-out;
}

@keyframes pulseAnim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   Tags Selection & Swatches
   ========================================================================== */
.tags-selection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.tag-checkbox-card {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    border: 1.5px solid transparent;
    position: relative;
}

.tag-checkbox-card input[type="checkbox"] {
    display: none;
}

.tag-checkbox-card .tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-checkbox-card .tag-check-icon {
    display: none;
    font-size: 0.75rem;
    font-weight: 800;
}

.tag-checkbox-card.selected {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.tag-checkbox-card.selected .tag-check-icon {
    display: inline;
}

.tag-delete-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    margin-left: 3px;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
}

.tag-delete-btn:hover {
    color: #e11d48;
}

.color-swatches-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.color-swatch-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    padding: 0;
}

.color-swatch-btn:hover {
    transform: scale(1.15);
}

.color-swatch-btn.active {
    box-shadow: 0 0 0 2.5px #0f172a;
    transform: scale(1.12);
}

.color-custom-input {
    width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: var(--admin-radius-sm);
    padding: 1px;
    cursor: pointer;
    background: #ffffff;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
    }
    .admin-sidebar.open {
        left: 0;
    }
    .woo-tabs-container {
        grid-template-columns: 1fr;
    }
    .woo-tabs-nav {
        border-right: none;
        border-bottom: 1px solid var(--admin-border);
        display: flex;
        overflow-x: auto;
    }
    .woo-tab-btn {
        white-space: nowrap;
        border-left: none !important;
        border-bottom: 3px solid transparent;
    }
    .woo-tab-btn.active {
        border-bottom-color: var(--admin-primary);
    }
}
