/* Styles spécifiques pour l'administration Shopify Stock Sync */

:root {
    --shopify-green: #008060;
    --shopify-green-light: #f0fdf4;
    --shopify-green-border: #86efac;
    --shopify-dark: #202223;
}

body {
    background-color: #f8fafc;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
}

/* Sidebar & Navigation */
.shopify-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.shopify-main {
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
}

@media (max-width: 992px) {
    .shopify-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .shopify-sidebar.show {
        transform: translateX(0);
    }
    .shopify-main {
        margin-left: 0;
        padding: 16px;
    }
}

.sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #008060, #059669);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 128, 96, 0.25);
}

.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: #008060;
    background: #f0fdf4;
}

.nav-link-custom.active {
    color: #008060;
    background: #f0fdf4;
    border-left-color: #008060;
}

/* Cards & Widgets */
.kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-custom {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Badges de Statut Shopify */
.badge-shopify-active {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
}

.badge-shopify-draft {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
}

.badge-shopify-archived {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
}

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

.table-custom thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
}

.table-custom tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

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

/* Segmented Sub-Tabs pour Anomalies */
.segmented-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.segmented-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.segmented-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.segmented-tab-btn .badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 10px;
}

/* Toasts & Alerts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1055;
}
