﻿:root {
    --lp-bg: #fdfbf7;
    --lp-bg-soft: #f7f1e8;
    --lp-surface: rgba(255,255,255,0.92);
    --lp-surface-2: #fffdf9;
    --lp-gold-light: #e9d9be;
    --lp-gold: #c9a96a;
    --lp-gold-deep: #a8823e;
    --lp-brown: #4a3728;
    --lp-brown-soft: #7b6856;
    --lp-sidebar-1: #3b3128;
    --lp-sidebar-2: #4a3b2f;
    --lp-border: rgba(201,169,106,0.18);
    --lp-shadow: 0 12px 30px rgba(168,130,62,0.10);
}

/* ===== Base ===== */

html, body {
    margin: 0;
    padding: 0;
    background: var(--lp-bg);
    color: var(--lp-brown);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img, svg {
    max-width: 100%;
}

a {
    color: inherit;
}

/* ===== Layout ===== */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 100%;
    min-width: 0;
    background: linear-gradient(180deg, var(--lp-sidebar-1) 0%, var(--lp-sidebar-2) 100%);
    color: #f8f3ea;
}

.content {
    width: 100%;
}

@media (min-width: 992px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 290px;
        min-width: 290px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-y: auto;
    }
}

/* ===== Header ===== */

.lp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 84px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lp-border);
    background: linear-gradient(180deg, #fffdf9 0%, #fbf7f1 100%);
    flex-wrap: wrap;
}

.lp-header-left,
.lp-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lp-brand {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: 0.14em;
    font-weight: 500;
    color: var(--lp-brown);
}

.lp-brand-subtitle {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lp-gold-deep);
    font-weight: 600;
}

.lp-user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--lp-border);
    box-shadow: 0 8px 24px rgba(176,138,70,0.08);
    min-width: 0;
}

.lp-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d7bb81 0%, #b9934b 100%);
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.lp-user-meta {
    min-width: 0;
}

.lp-user-name,
.lp-user-role {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-user-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--lp-brown);
}

.lp-user-role {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--lp-gold-deep);
    font-weight: 600;
}

/* ===== Buttons ===== */

.lp-btn {
    border: none;
    border-radius: 16px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

    .lp-btn:hover {
        transform: translateY(-1px);
        opacity: .96;
    }

.lp-btn-danger,
.lp-btn-primary {
    background: linear-gradient(135deg, var(--lp-gold) 0%, var(--lp-gold-deep) 100%);
    color: white;
}

.lp-btn-secondary {
    background: #f4ebdd;
    color: #6e5639;
}

.lp-btn-outline {
    background: transparent;
    color: var(--lp-gold-deep);
    border: 1px solid var(--lp-gold);
}

/* ===== Nav ===== */

.lp-nav-shell {
    height: 100%;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lp-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lp-nav-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    /*background: linear-gradient(135deg, #d8bc83 0%, #b58d48 100%);*/
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.lp-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.lp-nav-subtitle {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #dcc38f;
}

.lp-nav-section-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #d8bf8a;
    font-weight: 700;
    margin: 6px 0 8px;
}

.lp-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f5efe6;
    padding: 12px 14px;
    border-radius: 14px;
    min-height: 48px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    line-height: 1.2;
}

    .lp-nav-link i {
        font-size: 1rem;
        width: 18px;
        min-width: 18px;
        text-align: center;
        color: #e9d9be;
    }

    .lp-nav-link:hover {
        background: rgba(255,255,255,0.08);
        color: white;
        transform: translateX(2px);
    }

    .lp-nav-link.active {
        background: linear-gradient(135deg, #e9d9be 0%, #c9a96a 100%);
        color: var(--lp-brown);
        font-weight: 600;
    }

        .lp-nav-link.active i {
            color: var(--lp-brown);
        }

.lp-nav-footer {
    margin-top: auto;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ===== Dashboard ===== */

.lp-shell {
    padding: 16px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--lp-bg) 0%, var(--lp-bg-soft) 100%);
}

.lp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lp-kicker,
.lp-label {
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    color: var(--lp-gold-deep);
    font-weight: 700;
}

.lp-topbar h1,
.lp-hero h2 {
    margin: 0;
    color: var(--lp-brown);
}

.lp-topbar h1 {
    font-size: 2rem;
}

.lp-hero h2 {
    font-size: 1.7rem;
}

.lp-muted {
    color: var(--lp-brown-soft);
    margin: 6px 0 0;
}

.lp-grid,
.lp-grid-main,
.lp-grid-cards,
.lp-grid-bottom,
.lp-mini-grid {
    display: grid;
    gap: 16px;
}

.lp-grid-main,
.lp-grid-cards,
.lp-grid-bottom,
.lp-mini-grid {
    grid-template-columns: 1fr;
}

.lp-card {
    background: var(--lp-surface);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--lp-shadow);
    border: 1px solid var(--lp-border);
    min-width: 0;
}

.lp-hero {
    background: linear-gradient(135deg, #fffdf9 0%, #f2e7d3 100%);
}

.lp-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.lp-badge {
    background: linear-gradient(135deg, #e9d9be 0%, #c9a96a 100%);
    color: var(--lp-brown);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 700;
}

.lp-stat {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(201,169,106,0.15);
    border-radius: 16px;
    padding: 14px;
}

.lp-stat-label {
    display: block;
    font-size: 12px;
    color: #8b745f;
    margin-bottom: 6px;
}

.lp-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .lp-actions .lp-btn {
        width: 100%;
        min-height: 52px;
    }

.lp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.lp-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0e5d5;
}

.lp-list-item,
.lp-card,
.lp-user-name,
.lp-user-role {
    overflow-wrap: anywhere;
}

.lp-todo {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #6e5a45;
}

    .lp-todo li {
        margin-bottom: 10px;
    }

/* ===== Status ===== */

.lp-status {
    padding: 10px 18px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.lp-status-active {
    background: linear-gradient(135deg, #E6F4EA 0%, #7FBF8E 100%);
    color: #1F4D2E;
}

.lp-status-pending {
    background: linear-gradient(135deg, #E9D9BE 0%, #C9A96A 100%);
    color: #5A4522;
}

.lp-status-inactive {
    background: linear-gradient(135deg, #F6E4E2 0%, #C97A6A 100%);
    color: #5A2A22;
}

/* ===== Breakpoints ===== */

@media (min-width: 768px) {
    .lp-shell {
        padding: 22px;
    }

    .lp-header {
        padding: 16px 24px;
    }

    .lp-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .lp-grid-main {
        grid-template-columns: 2fr 1fr;
    }

    .lp-grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-grid-bottom {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-topbar h1 {
        font-size: 2.2rem;
    }
}
