/* ============================================================
   Shop Fusion Operations - Custom Styles
   ============================================================ */

/* ---- Typography ---- */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
}

/* ---- Auth Pages ---- */
.sfo-auth-bg {
    background: linear-gradient(135deg, #052e16 0%, #064e3b 50%, #0f5132 100%);
    min-height: 100vh;
}

.sfo-auth-bg .card {
    border: none;
    border-radius: 12px;
    border-top: 4px solid #1cc88a !important;
}

.sfo-auth-bg .card-footer a {
    color: #1a7a4a;
}

.sfo-auth-bg .card-footer a:hover {
    color: #0f5132;
}

/* ---- Sidebar customization ---- */
.sidebar {
    min-height: 100vh;
}

.sidebar .sidebar-brand {
    background: rgba(0,0,0,.2);
}

.sidebar .nav-item .nav-link {
    font-size: 13px;
    padding: .65rem 1rem;
}

.sidebar .nav-item .nav-link i {
    font-size: 13px;
}

.sidebar-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1rem;
    color: rgba(255,255,255,.4);
    padding: .5rem 1rem;
    text-transform: uppercase;
}

/* ---- Cards ---- */
.card {
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* ---- Stat Cards ---- */
.border-left-primary  { border-left: 4px solid #4e73df !important; }
.border-left-success  { border-left: 4px solid #1cc88a !important; }
.border-left-info     { border-left: 4px solid #36b9cc !important; }
.border-left-warning  { border-left: 4px solid #f6c23e !important; }
.border-left-danger   { border-left: 4px solid #e74a3b !important; }
.border-left-dark     { border-left: 4px solid #343a40 !important; }
.border-left-secondary{ border-left: 4px solid #858796 !important; }

/* ---- Tables ---- */
.table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05rem;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

/* ---- Badges ---- */
.badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03rem;
    padding: .35em .6em;
}

/* ---- Buttons ---- */
.btn {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01rem;
}

.btn-sm {
    font-size: 12px;
}

/* ---- Topbar Plan Badge ---- */
.topbar .badge {
    font-size: 12px;
    border-radius: 20px;
}

/* ---- Topbar Profile Image fallback ---- */
.img-profile {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

/* ---- Activation Page ---- */
.activation-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
}

/* ---- Footer ---- */
.sticky-footer {
    border-top: 1px solid #e3e6f0;
    padding: .75rem 0;
}

.sticky-footer .copyright {
    font-size: 12px;
    color: #858796;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ---- Progress bars ---- */
.progress {
    height: 6px;
    border-radius: 10px;
}

/* ---- DataTables override ---- */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: .25rem .5rem;
    font-size: 12px;
}

/* ---- Alert styling ---- */
.alert {
    border-radius: 8px;
    font-size: 14px;
}

/* ---- Custom Switch ---- */
.custom-switch .custom-control-label::before {
    border-radius: 1rem;
}

/* ---- Sidebar dark gradient ---- */
.bg-gradient-dark {
    background: linear-gradient(180deg, #052e16 10%, #064e3b 100%) !important;
}

/* ---- Store connected indicator ---- */
.store-connected-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1cc88a;
    display: inline-block;
    margin-right: 4px;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* ---- Shopify green accent ---- */
.shopify-green { color: #96bf48; }
.text-shopify  { color: #96bf48 !important; }
.bg-shopify    { background-color: #96bf48 !important; }

/* ---- Utility ---- */
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.cursor-pointer { cursor: pointer; }
