/* Recomaze Admin Dashboard - Dark Theme */
:root {
    --bg: #09090b;
    --raised: #111113;
    --bd: #1e1e22;
    --t1: #f4f4f5;
    --t2: #a1a1aa;
    --t3: #63636e;
    --accent: #B7007C;
    --accent-hover: #92005E;
    --accent-purple: #7B3FE4;
    --grad: linear-gradient(135deg, #B7007C, #7B3FE4);
    --green: #22c55e;
    --red: #ef4444;
    --r: 12px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }

/* Cards */
.card {
    background: var(--raised);
    border: 1px solid var(--bd);
    border-radius: var(--r);
}

/* Input fields */
.input-field {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--t1);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(183, 0, 124, 0.15);
}
.input-field::placeholder {
    color: var(--t3);
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 12px rgba(183, 0, 124, 0.25);
}

.btn-sm {
    background: var(--raised);
    border: 1px solid var(--bd);
    color: var(--t2);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.btn-sm:hover {
    border-color: var(--t3);
    color: var(--t1);
    background: rgba(255, 255, 255, 0.03);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: white;
    box-shadow: 0 2px 8px rgba(183, 0, 124, 0.2);
}

/* Navigation */
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--t3);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-link:hover {
    color: var(--t1);
    background: rgba(255, 255, 255, 0.03);
}
.nav-link.active {
    color: var(--t1);
    background: rgba(183, 0, 124, 0.1);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.badge-shopify { background: rgba(149, 191, 71, 0.12); color: #95BF47; }
.badge-wordpress { background: rgba(33, 117, 155, 0.12); color: #21759B; }
.badge-bigcommerce { background: rgba(255, 255, 255, 0.06); color: #b4b4bc; }
.badge-custom { background: rgba(183, 0, 124, 0.12); color: #d946a8; }
.badge-magento { background: rgba(242, 99, 34, 0.12); color: #F26322; }
.badge-nuevem { background: rgba(123, 63, 228, 0.12); color: #a78bfa; }
.badge-shopware { background: rgba(24, 158, 255, 0.12); color: #60a5fa; }
.badge-default { background: rgba(255, 255, 255, 0.04); color: var(--t3); }
.badge-plan { background: rgba(183, 0, 124, 0.12); color: #d946a8; }
.badge-success { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.badge-warning { background: rgba(234, 179, 8, 0.12); color: #eab308; }

/* KPI Cards */
.kpi-card {
    background: var(--raised);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    padding: 16px 20px;
}
.kpi-label {
    font-size: 11px;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 4px;
}
.kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.02em;
}

/* Tabs */
.tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--t3);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab:hover {
    color: var(--t1);
}
.tab-active {
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
}

/* Alpine cloak */
[x-cloak] { display: none !important; }

/* Select styling */
select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2363636e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Table row hover */
table tbody tr {
    transition: background-color 0.15s;
}

/* Checkbox accent */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}
