/* TEMPORARY admin styles — colors from sloggate-v2-frontend */
:root {
    /* primary scale from src/style/app.css */
    --temp-primary-50: #eef2ff;
    --temp-primary-100: #e0e7ff;
    --temp-primary-500: #6366f1;
    --temp-primary-600: #4f46e5;
    --temp-primary-700: #4338ca;
    --temp-primary-800: #3730a3;

    /* sidebar matches SGSidebar (bg-slate-900) */
    --temp-sidebar: #0f172a;
    --temp-sidebar-hover: #334155;
    --temp-sidebar-text: #94a3b8;
    --temp-sidebar-active: #6366f1;

    --temp-bg: #f9fafb;
    --temp-accent: #4f46e5;
    --temp-accent-hover: #4338ca;
    --temp-primary-light: #e0e7ff;
    --temp-primary-dark: #3730a3;
    --temp-card: #ffffff;
    --temp-border: #e5e7eb;
    --temp-text: #111827;
    --temp-muted: #6b7280;
    --temp-danger: #ef4444;
}

* { box-sizing: border-box; }

body.temp-body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--temp-text);
    background: var(--temp-bg);
    min-height: 100vh;
}

.temp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    background: var(--temp-sidebar);
    color: var(--temp-sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
}

.temp-brand {
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid #1e293b;
}

.temp-logo {
    height: 40px;
    width: auto;
    display: block;
}

.temp-nav {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem .75rem;
    flex: 1;
}

.temp-nav a {
    color: var(--temp-sidebar-text);
    text-decoration: none;
    padding: .55rem .75rem;
    border-radius: 6px;
    font-size: .92rem;
}

.temp-nav a:hover {
    background: var(--temp-sidebar-hover);
    color: #e2e8f0;
}

.temp-nav a.active {
    background: var(--temp-sidebar-hover);
    color: var(--temp-sidebar-active);
}

.temp-nav-group {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-top: .75rem;
}

.temp-nav-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    padding: .35rem .75rem;
}

.temp-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #1e293b;
}

.temp-main {
    margin-left: 240px;
    min-height: 100vh;
}

.temp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--temp-card);
    border-bottom: 1px solid var(--temp-border);
}

.temp-topbar h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.temp-content {
    padding: 1.5rem;
}

.temp-muted { color: var(--temp-muted); }

.temp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: 1px solid var(--temp-border);
    background: #fff;
    color: var(--temp-text);
    padding: .5rem .9rem;
    border-radius: 6px;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
}

.temp-btn:hover { background: #f3f4f6; }
.temp-btn:disabled { opacity: .6; cursor: not-allowed; }

.temp-btn-primary {
    background: var(--temp-accent);
    border-color: var(--temp-accent);
    color: #fff;
}
.temp-btn-primary:hover { background: var(--temp-accent-hover); border-color: var(--temp-accent-hover); }

.temp-btn-ghost {
    background: transparent;
    border-color: #475569;
    color: #e2e8f0;
    width: 100%;
}
.temp-btn-ghost:hover { background: var(--temp-sidebar-hover); }

.temp-btn-danger { color: var(--temp-danger); border-color: #fecaca; }
.temp-btn-sm { padding: .3rem .55rem; font-size: .8rem; }

.temp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.temp-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--temp-card);
    border: 1px solid var(--temp-border);
    border-radius: 8px;
}

.temp-filters label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .88rem;
    font-weight: 500;
    min-width: 160px;
}

.temp-filters select,
.temp-filters input[type="date"],
.temp-filters input[type="text"] {
    padding: .55rem .7rem;
    border: 1px solid var(--temp-border);
    border-radius: 6px;
    font: inherit;
}

.temp-filter-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding-bottom: 1px;
}

.temp-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.temp-table-wrap {
    background: var(--temp-card);
    border: 1px solid var(--temp-border);
    border-radius: 8px;
    overflow: auto;
}

.temp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.temp-table th,
.temp-table td {
    text-align: left;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--temp-border);
}

.temp-table th {
    background: var(--temp-primary-50);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--temp-primary-800);
}

.temp-row-actions {
    display: flex;
    gap: .4rem;
    justify-content: flex-end;
}

.temp-form {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    max-width: 360px;
}

.temp-form-wide {
    max-width: 480px;
    background: var(--temp-card);
    border: 1px solid var(--temp-border);
    border-radius: 8px;
    padding: 1.25rem;
}

.temp-form label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .88rem;
    font-weight: 500;
}

.temp-form input[type="text"],
.temp-form input[type="email"],
.temp-form input[type="password"],
.temp-form input[type="url"],
.temp-form select {
    padding: .55rem .7rem;
    border: 1px solid var(--temp-border);
    border-radius: 6px;
    font: inherit;
}

.temp-form input:focus,
.temp-form select:focus {
    outline: none;
    border-color: var(--temp-primary-500);
    box-shadow: 0 0 0 1px var(--temp-primary-500);
}

.temp-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: .5rem !important;
    font-weight: 400 !important;
}

.temp-flash {
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.temp-flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.temp-flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.temp-flash-info { background: var(--temp-primary-50); color: var(--temp-primary-800); border: 1px solid var(--temp-primary-100); }

body.temp-guest {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0f172a 0%, #312e81 50%, #4f46e5 100%);
}

.temp-login-wrap { width: 100%; padding: 1.5rem; }
.temp-login-card {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.temp-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: .35rem;
}
.temp-login-logo img {
    height: 48px;
    width: auto;
}
.temp-login-product {
    margin: 0 0 .35rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--temp-primary-600);
}
.temp-login-card .temp-muted {
    text-align: center;
    margin: 0 0 1rem;
}

@media (max-width: 800px) {
    .temp-sidebar { width: 100%; position: relative; }
    .temp-main { margin-left: 0; }
}
