:root {
    --lp-bg: #0f172a;
    --lp-sidebar: #111827;
    --lp-accent: #f97316;
    --lp-text: #e5e7eb;
    --lp-text-muted: #9ca3af;
    --lp-surface: #1f2937;
    --lp-border: #374151;
    --lp-danger: #ef4444;
    --lp-success: #22c55e;
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f3f4f6;
    color: #111827;
}

.lp-shell {
    display: flex;
    min-height: 100vh;
}

.lp-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--lp-sidebar);
    color: var(--lp-text);
    padding: 1.25rem 0.75rem;
}

.lp-brand {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 0.5rem 1rem;
    color: white;
}
.lp-brand span { color: var(--lp-accent); }

.lp-nav { display: flex; flex-direction: column; gap: 0.15rem; }

.lp-nav-link {
    display: block;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    color: var(--lp-text-muted);
    text-decoration: none;
    font-size: 0.92rem;
}
.lp-nav-link:hover { background: #1e293b; color: white; }
.lp-nav-link.active { background: var(--lp-accent); color: #111827; font-weight: 600; }

.lp-main { flex: 1; display: flex; flex-direction: column; }

.lp-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.lp-content { padding: 1.5rem; }

.lp-link-btn {
    background: none;
    border: none;
    color: var(--lp-accent);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
}

.lp-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.lp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lp-kpi-value { font-size: 1.9rem; font-weight: 700; }
.lp-kpi-label { color: #6b7280; font-size: 0.85rem; }

table.lp-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
table.lp-table th, table.lp-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}
table.lp-table th { color: #6b7280; font-weight: 600; }

.lp-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.lp-badge-pending { background: #fef3c7; color: #92400e; }
.lp-badge-approved { background: #dcfce7; color: #166534; }
.lp-badge-rejected { background: #fee2e2; color: #991b1b; }

.lp-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.4rem;
}
.lp-btn-approve { background: var(--lp-success); color: white; }
.lp-btn-reject { background: var(--lp-danger); color: white; }

.lp-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-bg);
}
.lp-login-card {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    width: 320px;
}
.lp-login-card input {
    width: 100%;
    padding: 0.55rem 0.6rem;
    margin: 0.4rem 0 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}
.lp-login-card button {
    width: 100%;
    padding: 0.6rem;
    background: var(--lp-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.lp-error-text { color: var(--lp-danger); font-size: 0.85rem; margin-bottom: 0.75rem; }

.lp-placeholder {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}
