@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");

:root {
    --body-bg: #f8f9fa;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.82);
    --text: #344767;
    --heading: #252f40;
    --muted: #67748e;
    --line: #e9ecef;
    --primary: #cb0c9f;
    --primary-dark: #7928ca;
    --info: #17c1e8;
    --success: #82d616;
    --danger: #ea0606;
    --danger-dark: #b02a37;
    --shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);
    --radius: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--body-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 249, 250, 0) 17rem),
        var(--body-bg);
    font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: 0;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--heading);
    font-weight: 700;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.2;
}

h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.soft-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 17.125rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

.soft-sidebar {
    position: sticky;
    top: 1rem;
    height: calc(100vh - 2rem);
    padding: 1.25rem 1rem;
    overflow-y: auto;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.soft-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3rem;
    margin: 0 0 1rem;
    padding: 0 0.45rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.soft-brand-mark {
    width: 2rem;
    height: 2rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.65rem;
    color: #ffffff;
    background-image: linear-gradient(310deg, var(--primary-dark), var(--primary));
    box-shadow: 0 0.25rem 0.65rem rgba(203, 12, 159, 0.28);
    font-size: 0.8rem;
    font-weight: 800;
}

.soft-nav {
    display: grid;
    gap: 0.25rem;
}

.soft-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.675rem 1rem;
    border-radius: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.soft-nav-icon {
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    margin-right: 0.7rem;
    border-radius: 0.6rem;
    color: var(--primary);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.soft-nav-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.soft-nav a:hover,
.soft-nav a.is-active {
    color: var(--heading);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateX(1px);
}

.soft-nav a.is-active .soft-nav-icon {
    color: #ffffff;
    background: linear-gradient(310deg, var(--primary-dark), var(--primary));
    box-shadow: 0 0.25rem 0.65rem rgba(203, 12, 159, 0.28);
}

.soft-nav a:hover .soft-nav-icon {
    color: #ffffff;
    background: linear-gradient(310deg, var(--primary-dark), var(--primary));
}

.soft-main {
    min-width: 0;
    padding: 1.25rem 0.5rem 2rem 0;
}

.soft-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 4.5rem;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.soft-kicker {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.soft-card {
    border: 0;
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: var(--shadow);
    backdrop-filter: saturate(180%) blur(1.875rem);
}

.soft-form {
    padding: 1.5rem;
}

.soft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

label {
    display: grid;
    gap: 0.45rem;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d2d6da;
    border-radius: 0.5rem;
    color: #495057;
    background: #ffffff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.035);
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #adb5bd;
}

input:focus,
textarea:focus {
    outline: 0;
    border-color: var(--info);
    box-shadow: 0 0 0 2px rgba(23, 193, 232, 0.18);
}

button,
.soft-button {
    min-height: 2.5rem;
    padding: 0.625rem 1.5rem;
    border: 0;
    border-radius: 0.5rem;
    color: #ffffff;
    background-image: linear-gradient(310deg, var(--primary-dark), var(--primary));
    box-shadow: 0 3px 5px -1px rgba(203, 12, 159, 0.2), 0 2px 3px -1px rgba(203, 12, 159, 0.12);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

button:hover,
.soft-button:hover {
    box-shadow: 0 14px 26px -12px rgba(203, 12, 159, 0.55);
    opacity: 0.92;
    transform: translateY(-1px);
}

.soft-button-danger,
button.danger {
    background-image: linear-gradient(310deg, var(--danger-dark), var(--danger));
    box-shadow: 0 3px 5px -1px rgba(234, 6, 6, 0.2), 0 2px 3px -1px rgba(234, 6, 6, 0.12);
}

button.danger:hover,
.soft-button-danger:hover {
    box-shadow: 0 14px 26px -12px rgba(234, 6, 6, 0.55);
}

.soft-table-wrap {
    margin-top: 1.5rem;
    overflow: auto;
}

table {
    width: 100%;
    min-width: 47.5rem;
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: #8392ab;
    background: transparent;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    color: var(--text);
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 600;
}

tbody tr {
    transition: background 160ms ease;
}

tbody tr:hover {
    background: rgba(248, 249, 250, 0.86);
}

tbody tr:last-child td {
    border-bottom: 0;
}

td form {
    margin: 0;
}

td button {
    min-height: 2rem;
    padding: 0.45rem 0.9rem;
}

.soft-thumb {
    width: 4rem;
    height: 4rem;
    display: block;
    margin-bottom: 0.4rem;
    border-radius: 0.5rem;
    object-fit: cover;
    background: var(--line);
    box-shadow: var(--shadow-soft);
}

.soft-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        linear-gradient(310deg, rgba(33, 82, 255, 0.1), rgba(203, 12, 159, 0.08)),
        var(--body-bg);
}

.soft-login-card {
    width: min(26.25rem, 100%);
    padding: 2rem;
}

.soft-login-card .soft-brand {
    margin-bottom: 1.25rem;
}

.soft-login-card h1 {
    margin-bottom: 0.35rem;
}

.soft-login-card p {
    color: var(--muted);
}

.soft-login-card label {
    margin-top: 1rem;
}

.soft-login-card button {
    width: 100%;
    margin-top: 1.25rem;
}

.soft-error {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #a30101;
    background: #fef3f2;
    font-weight: 600;
}

.soft-home {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 1.75rem;
    background: var(--body-bg);
}

.soft-home-panel {
    width: min(47.5rem, 100%);
    padding: 2rem;
}

code {
    display: inline-block;
    padding: 0.2rem 0.45rem;
    border-radius: 0.45rem;
    color: var(--primary);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
    .soft-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem;
    }

    .soft-sidebar {
        position: static;
        height: auto;
    }

    .soft-nav {
        grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    }

    .soft-main {
        padding: 0 0 1rem;
    }

    .soft-page-head {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .soft-form,
    .soft-login-card,
    .soft-home-panel {
        padding: 1.25rem;
    }
}
