@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --wel-bg-1: #f6f4ef;
    --wel-bg-2: #e8efe6;
    --wel-ink: #0f2f2d;
    --wel-border: rgba(15, 47, 45, 0.12);
    --wel-header-bg: #1f6f64;
    --wel-header-bg-strong: #2d7d71;
    --wel-header-bg-rgb: 31, 111, 100;
    --wel-header-ink: #f2fbf8;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--wel-ink);
    background:
        radial-gradient(circle at 5% 0%, rgba(50, 133, 109, 0.22), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(234, 111, 45, 0.18), transparent 35%),
        linear-gradient(140deg, var(--wel-bg-1), var(--wel-bg-2));
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.hero-panel,
.dashboard-card,
.status-card,
.entity-form,
.entity-list,
.entity-details,
.entity-dialog {
    border: 1px solid var(--wel-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(3px);
}

.hero-panel {
    padding: 1.5rem;
}

.hero-text {
    margin-top: 0.65rem;
    max-width: 65ch;
}

.hero-meta {
    margin-top: 0.85rem;
    color: #2f6b62;
    font-weight: 500;
}

.dashboard-card {
    min-height: 190px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

.entity-form,
.entity-list,
.entity-details,
.entity-dialog {
    padding: 1rem;
}

.app-validation-summary {
    margin-top: 0.75rem;
    color: #8f2e0e;
}

.member-row {
    width: 100%;
}

.clickable-row {
    width: 100%;
    border-radius: 10px;
    padding: 0.35rem 0.45rem;
    cursor: pointer;
    transition: background-color 120ms ease;
    outline: none;
}

.clickable-row:hover {
    background: rgba(var(--wel-header-bg-rgb), 0.08);
}

.clickable-row:focus-visible {
    box-shadow: 0 0 0 2px rgba(var(--wel-header-bg-rgb), 0.45);
}

.clickable-row--selected {
    background: rgba(var(--wel-header-bg-rgb), 0.14);
}

.login-card {
    margin-top: 3.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.login-form label {
    font-size: 0.85rem;
    font-weight: 600;
}

.login-form input {
    border-radius: 10px;
    border: 1px solid var(--wel-border);
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--wel-ink);
}

.module-tree-card {
    max-width: 760px;
}

.module-tree-card .mud-treeview {
    padding-top: 0.4rem;
}

.module-tree-card .mud-treeview-item-content {
    border-radius: 10px;
    transition: background-color 120ms ease;
}

.module-tree-card .mud-treeview-item-content:hover {
    background: rgba(var(--wel-header-bg-rgb), 0.08);
}

.module-tree-card .mud-treeview-item-label {
    font-weight: 600;
}

.module-tree-card .mud-treeview-item-icon {
    color: var(--wel-header-bg);
}

.mud-button-root {
    text-transform: none;
}

a {
    color: inherit;
}

.night-mode {
    --wel-bg-1: #101b18;
    --wel-bg-2: #152320;
    --wel-ink: #deece8;
    --wel-border: rgba(165, 203, 191, 0.2);
    --wel-header-bg: #1a3e37;
    --wel-header-bg-strong: #214740;
    --wel-header-bg-rgb: 26, 62, 55;
}

.night-mode .hero-panel,
.night-mode .dashboard-card,
.night-mode .status-card,
.night-mode .entity-form,
.night-mode .entity-list,
.night-mode .entity-details,
.night-mode .entity-dialog {
    background: rgba(14, 25, 22, 0.82);
    border-color: rgba(165, 203, 191, 0.2);
}

.night-mode .hero-meta {
    color: #8ebcb1;
}

.night-mode .app-validation-summary {
    color: #f2ab8d;
}

.night-mode .mud-typography,
.night-mode .mud-input-label,
.night-mode .mud-input-slot,
.night-mode .mud-input > input {
    color: #deece8 !important;
}

.night-mode .mud-list-item-text {
    color: #deece8;
}

.night-mode .module-tree-card .mud-treeview-item-content:hover {
    background: rgba(210, 240, 230, 0.08);
}

.night-mode .module-tree-card .mud-treeview-item-label {
    color: #deece8;
}

.night-mode .module-tree-card .mud-treeview-item-icon {
    color: #8ebcb1;
}

.night-mode .clickable-row:hover {
    background: rgba(210, 240, 230, 0.08);
}

.night-mode .clickable-row--selected {
    background: rgba(210, 240, 230, 0.14);
}

.night-mode .login-form input {
    background: rgba(14, 25, 22, 0.86);
    border-color: rgba(165, 203, 191, 0.2);
    color: #deece8;
}

@media (max-width: 768px) {
    .hero-panel {
        padding: 1rem;
    }
}

.mud-tab .mud-disabled
{
    display: none;
}