:root {
    /*
    |--------------------------------------------------------------------------
    | FiF Padel – färgtema
    |--------------------------------------------------------------------------
    */

    --background: #F4FAFE;
    --background-soft: #E0F2FE;

    --surface: #FFFFFF;
    --surface-light: #F8FCFF;
    --surface-border: #D7E6EE;

    --primary: #C2185B;
    --primary-hover: #A9144E;
    --primary-dark: #8F1043;

    --primary-soft: #FCE7F0;
    --primary-soft-strong: #F8D7E4;

    --blue: #E0F2FE;
    --blue-soft: #F2FAFE;
    --blue-strong: #BAE6FD;

    --text: #24313D;
    --text-muted: #70808D;
    --text-dark: #19252E;

    --danger: #D9534F;
    --danger-background: #FFF1F1;
    --danger-border: #F3C5C5;

    --success: #26784A;
    --success-background: #EFFAF4;
    --success-border: #BFE6CF;

    --shadow:
        0 12px 30px
        rgba(24, 49, 66, 0.07);

    --shadow-large:
        0 20px 55px
        rgba(24, 49, 66, 0.10);

    --radius-large: 28px;
    --radius-medium: 16px;
    --radius-small: 10px;

    --font:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* ==========================================================================
   Base
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(194, 24, 91, 0.08),
            transparent 34%
        ),
        var(--background);

    color: var(--text);

    font-family: var(--font);
    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* ==========================================================================
   Login
   ========================================================================== */

.login-page {
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at top left,
            rgba(194, 24, 91, 0.18),
            transparent 34%
        ),
        #111820;
}

.login-layout {
    display: grid;

    grid-template-columns:
        minmax(420px, 1.05fr)
        minmax(460px, 0.95fr);

    min-height: 100vh;
}


/* ==========================================================================
   Login – vänster panel
   ========================================================================== */

.login-brand-panel {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 100vh;

    padding:
        70px
        clamp(50px, 7vw, 120px);

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(194, 24, 91, 0.20),
            transparent 48%
        ),
        linear-gradient(
            180deg,
            #17232D 0%,
            #0F171E 100%
        );

    border-right:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.login-brand-panel::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 2;

    max-width: 620px;
}

.login-logo,
.login-mobile-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.login-logo-mark {
    color: #F75C98;

    font-size: 40px;
    font-weight: 900;
    letter-spacing: -3px;
}

.login-logo-text {
    color: #FFFFFF;

    font-size: 20px;
    font-weight: 800;
    letter-spacing: 7px;
}

.login-brand-label,
.login-eyebrow {
    margin: 28px 0 12px;

    color: #F75C98;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.login-brand-panel h1 {
    max-width: 600px;

    margin: 0;

    color: #FFFFFF;

    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -3px;
}

.login-brand-description {
    max-width: 560px;

    margin: 28px 0 0;

    color: #B6C3CC;

    font-size: 18px;
    line-height: 1.75;
}

.login-brand-features {
    display: grid;
    gap: 16px;

    margin-top: 42px;
}

.login-brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;

    color: #E5EDF2;

    font-size: 15px;
    font-weight: 600;
}

.feature-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border:
        1px solid
        rgba(247, 92, 152, 0.38);

    border-radius: 50%;

    background:
        rgba(194, 24, 91, 0.18);

    color: #F75C98;
}

.login-brand-decoration {
    position: absolute;

    border:
        1px solid
        rgba(247, 92, 152, 0.14);

    border-radius: 50%;

    pointer-events: none;
}

.login-ball-one {
    right: -130px;
    bottom: -180px;

    width: 480px;
    height: 480px;

    box-shadow:
        inset 0 0 80px
        rgba(194, 24, 91, 0.07);
}

.login-ball-two {
    top: 65px;
    right: 80px;

    width: 120px;
    height: 120px;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(247, 92, 152, 0.24),
            rgba(194, 24, 91, 0.03)
        );
}


/* ==========================================================================
   Login – formulärpanel
   ========================================================================== */

.login-form-panel {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding: 44px 30px;

    background:
        radial-gradient(
            circle at bottom right,
            rgba(224, 242, 254, 0.11),
            transparent 40%
        ),
        #111820;
}

.login-card {
    width: min(100%, 470px);

    padding: 42px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius:
        var(--radius-large);

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.045),
            transparent
        ),
        rgba(22, 32, 41, 0.94);

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.38);

    backdrop-filter: blur(18px);
}

.login-mobile-logo {
    display: none;

    margin-bottom: 34px;
}

.login-mobile-logo .login-logo-mark {
    font-size: 30px;
}

.login-mobile-logo .login-logo-text {
    font-size: 15px;
}

.login-card-header h2 {
    margin: 0;

    color: #FFFFFF;

    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1.3px;
}

.login-card-header > p:last-child {
    margin: 14px 0 0;

    color: #9DAEB9;

    font-size: 15px;
    line-height: 1.65;
}

.login-eyebrow {
    margin-top: 0;
}


/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 25px;
    padding: 15px 16px;

    border-radius:
        var(--radius-small);

    font-size: 14px;
    font-weight: 600;
}

.alert-error {
    border:
        1px solid
        var(--danger-border);

    background:
        var(--danger-background);

    color: #9F2F2F;
}

.alert-icon {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;

    border-radius: 50%;

    background:
        rgba(217, 83, 79, 0.12);

    color:
        var(--danger);

    font-size: 12px;
    font-weight: 900;
}


/* ==========================================================================
   Login form
   ========================================================================== */

.login-form {
    display: grid;
    gap: 21px;

    margin-top: 30px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    color: #DDE7ED;

    font-size: 14px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    min-height: 54px;

    padding:
        0
        72px
        0
        47px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    border-radius: 13px;

    outline: none;

    background:
        rgba(7, 14, 20, 0.58);

    color: #FFFFFF;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.input-wrapper input::placeholder {
    color: #687986;
}

.input-wrapper input:hover {
    border-color:
        rgba(255, 255, 255, 0.18);
}

.input-wrapper input:focus {
    border-color:
        rgba(247, 92, 152, 0.75);

    background:
        rgba(10, 18, 24, 0.82);

    box-shadow:
        0 0 0 4px
        rgba(194, 24, 91, 0.14);
}

.input-icon {
    position: absolute;

    z-index: 1;

    top: 50%;
    left: 17px;

    color: #7D8D98;

    font-size: 14px;
    font-weight: 800;

    transform:
        translateY(-50%);

    pointer-events: none;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 14px;

    padding: 7px 8px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #F75C98;

    font-size: 12px;
    font-weight: 800;

    transform:
        translateY(-50%);
}

.password-toggle:hover {
    background:
        rgba(194, 24, 91, 0.14);
}

.login-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.checkbox-label {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #CDD8DF;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.checkbox-label input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 6px;

    background:
        rgba(7, 14, 20, 0.55);
}

.checkbox-label input:checked
+ .custom-checkbox {
    border-color:
        #F75C98;

    background:
        #F75C98;
}

.checkbox-label input:checked
+ .custom-checkbox::after {
    content: "";

    width: 5px;
    height: 9px;

    border-right:
        2px solid
        #30101E;

    border-bottom:
        2px solid
        #30101E;

    transform:
        rotate(45deg)
        translate(-1px, -1px);
}

.checkbox-label input:focus-visible
+ .custom-checkbox {
    box-shadow:
        0 0 0 4px
        rgba(194, 24, 91, 0.18);
}

.login-security-text {
    color: #778893;

    font-size: 12px;
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 54px;

    padding: 0 22px;

    border: 0;

    border-radius: 13px;

    font-size: 15px;
    font-weight: 800;

    transition:
        transform 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.button-primary {
    background:
        var(--primary);

    color: #FFFFFF;

    box-shadow:
        0 14px 30px
        rgba(194, 24, 91, 0.22);
}

.button-primary:hover {
    background:
        var(--primary-hover);

    transform:
        translateY(-1px);
}

.button-primary:active {
    transform:
        translateY(0);
}

.button-full {
    width: 100%;
}

.login-card-footer {
    margin-top: 26px;
    padding-top: 24px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.login-card-footer p {
    margin: 0;

    color: #778893;

    font-size: 12px;
    line-height: 1.6;

    text-align: center;
}

.login-copyright {
    margin: 28px 0 0;

    color: #6F808B;

    font-size: 12px;
}


/* ==========================================================================
   Login responsive
   ========================================================================== */

@media (max-width: 980px) {

    .login-layout {
        display: block;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding:
            max(28px, env(safe-area-inset-top))
            20px
            max(28px, env(safe-area-inset-bottom));
    }

    .login-mobile-logo {
        display: inline-flex;
    }
}

@media (max-width: 520px) {

    .login-card {
        padding:
            30px
            22px;

        border-radius: 22px;
    }

    .login-card-header h2 {
        font-size: 29px;
    }

    .login-options {
        align-items: flex-start;

        flex-direction: column;

        gap: 11px;
    }

    .login-security-text {
        padding-left: 30px;
    }
}


/* ==========================================================================
   Admin layout
   ========================================================================== */

.admin-page {
    min-height: 100vh;

    background:
        var(--background);

    color:
        var(--text);
}

.admin-page .alert-error {
    border-color:
        var(--danger-border);

    background:
        var(--danger-background);

    color: #9F2F2F;
}

.admin-layout {
    display: flex;

    min-height: 100vh;
}


/* ==========================================================================
   Sidebar
   ========================================================================== */

.admin-sidebar {
    position: fixed;

    z-index: 50;

    top: 0;
    bottom: 0;
    left: 0;

    display: flex;

    flex-direction: column;

    width: 260px;

    padding:
        26px
        18px
        20px;

    border-right:
        1px solid
        #D4E4EC;

    background:
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #F7FCFF 100%
        );

    box-shadow:
        7px 0 30px
        rgba(40, 70, 90, 0.025);
}

.sidebar-header {
    padding:
        2px
        10px
        24px;
}

.sidebar-logo {
    display: inline-flex;

    align-items: baseline;

    gap: 8px;

    color: inherit;

    text-decoration: none;
}

.sidebar-logo-mark {
    color:
        var(--primary);

    font-size: 29px;
    font-weight: 900;
    letter-spacing: -2px;
}

.sidebar-logo-text {
    color:
        var(--text-dark);

    font-size: 14px;
    font-weight: 850;
    letter-spacing: 5px;
}

.sidebar-label {
    display: block;

    margin-top: 5px;

    color: #94A5B0;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 3px;
}

.sidebar-navigation {
    display: grid;

    gap: 4px;
}

.sidebar-section-label {
    margin:
        19px
        13px
        6px;

    color: #9AAAB5;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.7px;
}

.sidebar-link {
    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 44px;

    padding:
        0
        13px;

    border-radius: 10px;

    color: #657985;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.sidebar-link:hover {
    background:
        var(--blue);

    color:
        var(--text-dark);

    transform:
        translateX(1px);
}

.sidebar-link.active {
    background:
        var(--primary-soft);

    color:
        var(--primary-dark);
}

.sidebar-link-disabled {
    cursor: default;

    opacity: 0.55;
}

.sidebar-link-disabled:hover {
    background: transparent;

    color: #657985;

    transform: none;
}

.sidebar-icon {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    width: 22px;

    color: #8094A0;
}

.sidebar-link.active .sidebar-icon {
    color:
        var(--primary);
}

.sidebar-icon svg,
.module-icon svg,
.stat-icon svg {
    display: block;

    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-badge {
    margin-left: auto;

    padding:
        3px
        7px;

    border-radius: 999px;

    background:
        var(--blue);

    color: #668298;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;

    text-transform: uppercase;
}


/* ==========================================================================
   Sidebar footer
   ========================================================================== */

.sidebar-footer {
    margin-top: auto;

    padding-top: 18px;

    border-top:
        1px solid
        #E3EDF2;
}

.sidebar-user {
    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        0
        8px
        15px;
}

.sidebar-avatar {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    border-radius: 11px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 14px;
    font-weight: 900;
}

.sidebar-user-details {
    display: grid;

    min-width: 0;
}

.sidebar-user-details strong {
    overflow: hidden;

    color:
        var(--text-dark);

    font-size: 13px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.sidebar-user-details span {
    color: #92A2AD;

    font-size: 11px;
}

.sidebar-logout {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 41px;

    border:
        1px solid
        #DCE7ED;

    border-radius: 10px;

    background: #FFFFFF;

    color: #687A85;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    transition:
        color 150ms ease,
        background 150ms ease,
        border-color 150ms ease;
}

.sidebar-logout:hover {
    border-color:
        #E6B7C9;

    background:
        #FFF5F8;

    color:
        var(--primary);
}

.sidebar-overlay {
    display: none;
}


/* ==========================================================================
   Main / topbar
   ========================================================================== */

.admin-main {
    width:
        calc(100% - 260px);

    min-width: 0;

    margin-left: 260px;

    background:
        var(--background);
}

.admin-topbar {
    position: sticky;

    z-index: 30;

    top: 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 70px;

    padding:
        0
        clamp(24px, 4vw, 52px);

    border-bottom:
        1px solid
        #D8E7EE;

    background:
        rgba(255, 255, 255, 0.91);

    box-shadow:
        0 4px 20px
        rgba(45, 76, 94, 0.025);

    backdrop-filter:
        blur(16px);
}

.topbar-title {
    display: grid;
}

.topbar-title strong {
    color:
        var(--text-dark);

    font-size: 15px;
}

.topbar-eyebrow {
    color:
        var(--primary);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.9px;
}

.topbar-user {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #8B9BA6;

    font-size: 12px;
}

.topbar-user strong {
    color:
        #4A5D69;
}

.mobile-menu-button {
    display: none;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border:
        1px solid
        #D7E5EC;

    border-radius: 10px;

    background:
        #FFFFFF;

    color:
        var(--primary);

    font-size: 19px;
}

.mobile-menu-button:hover {
    background:
        var(--primary-soft);

    border-color:
        #E8B6C9;
}


/* ==========================================================================
   Admin content
   ========================================================================== */

.admin-content {
    width:
        min(100%, 1320px);

    margin:
        0
        auto;

    padding:
        44px
        clamp(24px, 4vw, 52px)
        70px;
}

.admin-alert {
    margin:
        0
        0
        26px;
}

.alert-success {
    border:
        1px solid
        var(--success-border);

    background:
        var(--success-background);

    color:
        #22653F;
}

.alert-success .alert-icon {
    background:
        #D9F2E4;

    color:
        var(--success);
}


/* ==========================================================================
   Dashboard hero
   ========================================================================== */

.dashboard-hero {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 22px;

    padding:
        24px
        26px;

    border:
        1px solid
        rgba(194, 24, 91, 0.12);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #F8FCFF 60%,
            var(--blue) 100%
        );

    box-shadow:
        0 8px 24px
        rgba(45, 76, 94, 0.04);
}

.dashboard-eyebrow,
.section-eyebrow {
    margin:
        0
        0
        7px;

    color:
        var(--primary);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}

.dashboard-hero h1 {
    margin: 0;

    color:
        var(--text-dark);

    font-size:
        clamp(32px, 4vw, 46px);

    line-height: 1.08;

    letter-spacing: -1.8px;
}

.dashboard-hero p:last-child {
    max-width: 680px;

    margin:
        12px
        0
        0;

    color:
        var(--text-muted);

    font-size: 14px;
    line-height: 1.65;
}

.dashboard-date {
    display: grid;

    flex: 0 0 auto;

    gap: 3px;

    min-width: 185px;

    padding:
        15px
        17px;

    border:
        1px solid
        rgba(194, 24, 91, 0.14);

    border-radius: 13px;

    background:
        var(--primary-soft);
}

.dashboard-date span {
    color:
        var(--primary);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.dashboard-date strong {
    color:
        var(--text-dark);

    font-size: 13px;
}


/* ==========================================================================
   Dashboard statistics
   ========================================================================== */

.dashboard-statistics {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.stat-card {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 22px;

    border:
        1px solid
        #D5E5ED;

    border-radius: 15px;

    background:
        #FFFFFF;

    box-shadow:
        0 8px 24px
        rgba(20, 55, 75, 0.04);

    text-align: center;

    transition:
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.stat-card:hover {
    border-color:
        rgba(194, 24, 91, 0.32);

    box-shadow:
        0 14px 30px
        rgba(40, 70, 90, 0.08);

    transform:
        translateY(-2px);
}

.stat-card-top {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
}

.stat-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 12px;

    background:
        var(--primary-soft);

    color:
        var(--primary);
}

.stat-icon svg {
    width: 27px;
    height: 27px;
}

.stat-label {
    color:
        #516471;

    font-size: 14px;
    font-weight: 800;
}

.stat-number {
    display: block;

    margin-top: 18px;

    color:
        var(--text-dark);

    font-size: 31px;
    line-height: 1;

    letter-spacing: -1px;
}

.stat-description {
    display: block;

    margin-top: 7px;

    color:
        #91A0AA;

    font-size: 11px;
}


/* ==========================================================================
   Dashboard betalningar
   ========================================================================== */

.stat-number-split {
    display: flex;

    align-items: baseline;

    gap: 8px;
}

.stat-number-split .stat-payment-in,
.stat-number-split .stat-payment-out {
    font-size: 31px;
    font-weight: 800;
    line-height: 1;

    letter-spacing: -1px;
}

.stat-number-split .stat-payment-in {
    color:
        var(--primary);
}

.stat-number-split .stat-payment-out {
    color:
        var(--text-dark);
}

.stat-number-split .stat-divider {
    color: #AFBDC6;

    font-size: 22px;
    font-weight: 500;
}


/* ==========================================================================
   Dashboard section
   ========================================================================== */

.dashboard-section {
    margin-top: 34px;
}

.section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}

.section-heading h2 {
    margin: 0;

    color:
        var(--text-dark);

    font-size: 22px;

    letter-spacing: -0.7px;
}

.section-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        var(--primary);

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;
}

.section-link:hover {
    color:
        var(--primary-hover);
}


/* ==========================================================================
   Dashboard modules
   ========================================================================== */

.dashboard-modules {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.module-card {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 15px;

    min-height: 128px;

    padding:
        19px
        20px;

    border:
        1px solid
        #D5E5ED;

    border-radius: 15px;

    background:
        #FFFFFF;

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 8px 24px
        rgba(20, 55, 75, 0.035);

    transition:
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.module-card:hover {
    border-color:
        rgba(194, 24, 91, 0.32);

    box-shadow:
        0 14px 32px
        rgba(40, 70, 90, 0.08);

    transform:
        translateY(-2px);
}

.module-icon {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    width: 66px;
    height: 90px;

    border-radius: 12px;

    background:
        var(--primary-soft);

    color:
        var(--primary);
}

.module-icon svg {
    width: 38px;
    height: 38px;
}

.module-content {
    min-width: 0;

    padding-right: 24px;
}

.module-label {
    color:
        var(--primary);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1.4px;
}

.module-content h3 {
    margin:
        5px
        0
        7px;

    color:
        var(--text-dark);

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.4px;
}

.module-content p {
    margin: 0;

    color:
        var(--text-muted);

    font-size: 14px;
    line-height: 1.5;
}

.module-arrow {
    position: absolute;

    right: 18px;
    bottom: 16px;

    color:
        var(--primary);

    font-size: 17px;
    font-weight: 800;
}


/* ==========================================================================
   Primärt snabbval
   ========================================================================== */

.module-card-primary {
    border-color:
        var(--primary);

    background:
        linear-gradient(
            135deg,
            #C2185B 0%,
            #B51655 100%
        );
}

.module-card-primary .module-icon {
    background:
        rgba(255, 255, 255, 0.17);

    color:
        #FFFFFF;
}

.module-card-primary .module-label {
    color:
        rgba(255, 255, 255, 0.77);
}

.module-card-primary .module-content h3 {
    color:
        #FFFFFF;
}

.module-card-primary .module-content p {
    color:
        rgba(255, 255, 255, 0.82);
}

.module-card-primary .module-arrow {
    color:
        #FFFFFF;
}

.module-card-primary:hover {
    border-color:
        var(--primary-dark);

    background:
        linear-gradient(
            135deg,
            #AD154F 0%,
            #951144 100%
        );

    box-shadow:
        0 16px 36px
        rgba(194, 24, 91, 0.22);
}


/* ==========================================================================
   Shared admin components
   ========================================================================== */

.activity-table-card {
    overflow: hidden;

    border:
        1px solid
        #D6E5ED;

    border-radius: 15px;

    background:
        #FFFFFF;

    box-shadow:
        0 8px 24px
        rgba(40, 70, 90, 0.035);
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;

    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding:
        16px
        18px;

    border-bottom:
        1px solid
        #E7EFF3;

    text-align: left;

    vertical-align: middle;
}

.admin-table th {
    background:
        #F7FCFF;

    color:
        #8497A3;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.admin-table td {
    color:
        #536773;

    font-size: 12px;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr {
    transition:
        background 140ms ease;
}

.admin-table tbody tr:hover {
    background:
        #F5FBFE;
}

.activity-name-cell {
    display: grid;

    gap: 4px;
}

.activity-name-cell strong {
    color:
        var(--text-dark);

    font-size: 13px;
}

.activity-name-cell span {
    max-width: 340px;

    overflow: hidden;

    color:
        #91A1AB;

    font-size: 11px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ==========================================================================
   Status badges
   ========================================================================== */

.status-badge {
    display: inline-flex;

    align-items: center;

    padding:
        5px
        9px;

    border:
        1px solid
        transparent;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.4px;

    text-transform: uppercase;
}

.status-success {
    border-color:
        #BFE4CD;

    background:
        #EEF9F2;

    color:
        #267548;
}

.status-info {
    border-color:
        #B9E1F5;

    background:
        var(--blue);

    color:
        #286B8D;
}

.status-warning {
    border-color:
        #EFDBAB;

    background:
        #FFF9E9;

    color:
        #9A6D12;
}

.status-neutral {
    border-color:
        #DCE7ED;

    background:
        #F5F9FB;

    color:
        #71838E;
}

.status-danger {
    border-color:
        #EFC4C4;

    background:
        #FFF3F3;

    color:
        #B24848;
}


/* ==========================================================================
   Table actions
   ========================================================================== */

.table-action-cell {
    width: 60px;

    text-align: right !important;
}

.table-action {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border:
        1px solid
        #D9E6ED;

    border-radius: 9px;

    color:
        var(--primary);

    text-decoration: none;

    transition:
        border-color 150ms ease,
        background 150ms ease,
        color 150ms ease;
}

.table-action:hover {
    border-color:
        #E5A8C0;

    background:
        var(--primary-soft);

    color:
        var(--primary-dark);
}


/* ==========================================================================
   Empty state
   ========================================================================== */

.empty-state {
    padding:
        55px
        25px;

    text-align: center;
}

.empty-state-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    background:
        var(--primary-soft);

    color:
        var(--primary);
}

.empty-state h3 {
    margin:
        16px
        0
        6px;

    color:
        var(--text-dark);

    font-size: 17px;
}

.empty-state p {
    margin: 0;

    color:
        #889AA5;

    font-size: 12px;
}


/* ==========================================================================
   Generic admin forms
   ========================================================================== */

.admin-page input,
.admin-page select,
.admin-page textarea {
    border-color:
        #D5E3EB;
}

.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus {
    border-color:
        var(--primary);

    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(194, 24, 91, 0.10);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {

    .dashboard-modules {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


@media (max-width: 900px) {

    .admin-sidebar {
        transform:
            translateX(-100%);

        transition:
            transform 190ms ease;
    }

    .admin-sidebar.open {
        transform:
            translateX(0);
    }

    .sidebar-overlay {
        position: fixed;

        z-index: 40;

        inset: 0;

        display: block;

        background:
            rgba(18, 32, 41, 0.46);

        opacity: 0;

        pointer-events: none;

        transition:
            opacity 190ms ease;
    }

    .sidebar-overlay.visible {
        opacity: 1;

        pointer-events: auto;
    }

    .admin-main {
        width: 100%;

        margin-left: 0;
    }

    .admin-topbar {
        justify-content: flex-start;

        gap: 14px;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .topbar-user {
        margin-left: auto;
    }
}


@media (max-width: 760px) {

    .dashboard-statistics {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 680px) {

    .admin-content {
        padding:
            30px
            17px
            55px;
    }

    .admin-topbar {
        min-height: 66px;

        padding:
            0
            17px;
    }

    .topbar-user span {
        display: none;
    }

    .dashboard-hero {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;

        padding:
            22px
            20px;
    }

    .dashboard-date {
        width: 100%;
    }

    .dashboard-modules {
        grid-template-columns: 1fr;
    }

    .module-card {
        min-height: 120px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .admin-table th:nth-child(2),
    .admin-table td:nth-child(2) {
        display: none;
    }
}