:root {
    --lc-admin-yellow: #e0b620;
    --lc-admin-green: #0d6b68;
    --lc-admin-green-deep: #103734;
    --lc-admin-ink: #1f2a2a;
    --lc-admin-muted: #4b5a59;
    --lc-admin-border: rgba(13, 107, 104, 0.15);
    --lc-admin-shadow: 0 20px 42px rgba(13, 47, 44, 0.12);
}

body.lc-theme-admin {
    background:
        radial-gradient(circle at top left, rgba(224, 182, 32, 0.14), transparent 32%),
        linear-gradient(135deg, #f7f2e8 0%, #fffdf8 52%, #f3fbfb 100%);
    color: var(--lc-admin-ink);
}

body.lc-theme-admin::before {
    content: "";
    position: fixed;
    top: -8rem;
    right: -6rem;
    width: 24rem;
    height: 24rem;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    background: rgba(224, 182, 32, 0.16);
    pointer-events: none;
    z-index: 0;
}

body.lc-theme-admin::after {
    content: "";
    position: fixed;
    bottom: -8rem;
    left: -6rem;
    width: 22rem;
    height: 22rem;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    background: rgba(13, 107, 104, 0.1);
    pointer-events: none;
    z-index: 0;
}

body.lc-theme-admin .admin-wrapper,
body.lc-theme-admin .admin-shell,
body.lc-theme-admin .admin-sidebar {
    position: relative;
    z-index: 1;
}

body.lc-theme-admin .admin-sidebar {
    background: linear-gradient(180deg, #0f5552 0%, #0c3431 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(10, 30, 28, 0.28);
}

@media (min-width: 1025px) {
    body.lc-theme-admin .admin-wrapper:has(.admin-sidebar) {
        display: block;
        min-height: 100vh;
        padding-left: 244px;
        box-sizing: border-box;
    }

    body.lc-theme-admin .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 20;
        width: 244px;
        box-sizing: border-box;
        gap: 1rem;
        padding: 1.15rem 1rem;
        overflow-y: auto;
    }

    body.lc-theme-admin .sidebar-brand {
        gap: 0.35rem;
        padding-bottom: 0.55rem;
    }

    body.lc-theme-admin .sidebar-brand img {
        width: 92px;
    }

    body.lc-theme-admin .sidebar-brand__title {
        font-size: 0.88rem;
        letter-spacing: 0.06em;
    }

    body.lc-theme-admin .sidebar-brand__subtitle {
        font-size: 0.75rem;
    }

    body.lc-theme-admin .sidebar-nav {
        gap: 0.22rem;
    }

    body.lc-theme-admin .sidebar-nav a {
        min-height: 36px;
        box-sizing: border-box;
        padding: 0.48rem 0.68rem;
        border-radius: 10px;
        font-size: 0.84rem;
        line-height: 1.2;
        letter-spacing: 0.01em;
    }

    body.lc-theme-admin .sidebar-nav-divider {
        margin: 0.45rem 0;
    }

    body.lc-theme-admin .sidebar-nav-section {
        gap: 0.22rem;
    }

    body.lc-theme-admin .sidebar-nav-section-title {
        padding: 0 0.68rem;
        margin-bottom: 0.1rem;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

    body.lc-theme-admin .sidebar-footer {
        margin-top: auto;
        padding-top: 0.65rem;
    }

    body.lc-theme-admin .sidebar-footer > div {
        margin-bottom: 0.55rem !important;
        padding: 0.5rem 0.6rem !important;
        font-size: 0.78rem !important;
    }

    body.lc-theme-admin .sidebar-footer input.secondary {
        padding: 0.52rem 0.8rem;
        font-size: 0.78rem;
    }

    body.lc-theme-admin .admin-shell {
        margin: 1.15rem;
        padding: clamp(1.35rem, 2.4vw, 2.2rem);
    }
}

@media (max-width: 1024px) {
    body.lc-theme-admin .admin-sidebar {
        position: relative;
        width: auto;
        max-height: none;
        overflow: visible;
    }
}

body.lc-theme-admin .sidebar-brand img {
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

body.lc-theme-admin .sidebar-nav a {
    border: 1px solid transparent;
    border-radius: 12px;
}

body.lc-theme-admin .sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

body.lc-theme-admin .sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(224, 182, 32, 0.22), rgba(224, 182, 32, 0.08));
    border-color: rgba(224, 182, 32, 0.4);
}

body.lc-theme-admin .admin-shell {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--lc-admin-border);
    box-shadow: 0 30px 70px rgba(13, 47, 44, 0.18);
}

body.lc-theme-admin .admin-head h1,
body.lc-theme-admin h1,
body.lc-theme-admin h2,
body.lc-theme-admin h3,
body.lc-theme-admin h4 {
    color: var(--lc-admin-green-deep);
}

body.lc-theme-admin .admin-head__meta,
body.lc-theme-admin p,
body.lc-theme-admin .info-value,
body.lc-theme-admin .empty-state {
    color: var(--lc-admin-muted);
}

body.lc-theme-admin .messages .msg {
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(13, 47, 44, 0.08);
}

body.lc-theme-admin .dashboard-card,
body.lc-theme-admin .stat-card,
body.lc-theme-admin .card,
body.lc-theme-admin .config-section,
body.lc-theme-admin .setting-card,
body.lc-theme-admin .recent-users,
body.lc-theme-admin .container,
body.lc-theme-admin .section {
    border-radius: 20px;
    border: 1px solid var(--lc-admin-border);
    box-shadow: var(--lc-admin-shadow);
    background: rgba(255, 255, 255, 0.96);
}

body.lc-theme-admin table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--lc-admin-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(13, 47, 44, 0.1);
}

body.lc-theme-admin table th {
    background: rgba(13, 107, 104, 0.08);
    color: var(--lc-admin-green-deep);
    font-weight: 700;
}

body.lc-theme-admin table th,
body.lc-theme-admin table td {
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid rgba(13, 107, 104, 0.12);
}

body.lc-theme-admin table tr:last-child td {
    border-bottom: 0;
}

body.lc-theme-admin .button-link,
body.lc-theme-admin .btn,
body.lc-theme-admin .button,
body.lc-theme-admin .save-button,
body.lc-theme-admin input[type="submit"],
body.lc-theme-admin button {
    border-radius: 999px;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.lc-theme-admin .button-link,
body.lc-theme-admin .btn-primary,
body.lc-theme-admin .button-primary,
body.lc-theme-admin .save-button,
body.lc-theme-admin input[type="submit"],
body.lc-theme-admin button:not(.button-secondary):not(.btn-secondary):not(.button-danger) {
    background: linear-gradient(135deg, var(--lc-admin-green), #12837f);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 14px 30px rgba(13, 107, 104, 0.25);
}

body.lc-theme-admin .button-secondary,
body.lc-theme-admin .btn-secondary,
body.lc-theme-admin .secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--lc-admin-green-deep);
    border: 1px solid rgba(13, 107, 104, 0.28);
}

body.lc-theme-admin .button-danger {
    background: linear-gradient(135deg, #c81e1e, #ef4444);
    color: #fff;
    border: 1px solid transparent;
}

body.lc-theme-admin .button-link:hover,
body.lc-theme-admin .btn:hover,
body.lc-theme-admin .button:hover,
body.lc-theme-admin input[type="submit"]:hover,
body.lc-theme-admin button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(13, 47, 44, 0.22);
}

body.lc-theme-admin input[type="text"],
body.lc-theme-admin input[type="email"],
body.lc-theme-admin input[type="password"],
body.lc-theme-admin input[type="date"],
body.lc-theme-admin input[type="number"],
body.lc-theme-admin input[type="tel"],
body.lc-theme-admin select,
body.lc-theme-admin textarea {
    border-radius: 12px;
    border: 1px solid rgba(13, 107, 104, 0.22);
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.lc-theme-admin input:focus,
body.lc-theme-admin select:focus,
body.lc-theme-admin textarea:focus {
    outline: none;
    border-color: rgba(13, 107, 104, 0.62);
    box-shadow: 0 0 0 3px rgba(13, 107, 104, 0.16);
}

body.lc-theme-admin .status-badge,
body.lc-theme-admin .badge-role,
body.lc-theme-admin .status-tag,
body.lc-theme-admin .payment-badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

@media (max-width: 1024px) {
    body.lc-theme-admin .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }
}
