:root {
    --repair-primary: #1f6f78;
    --repair-primary-dark: #144f56;
    --repair-accent: #f2a03d;
    --repair-ink: #27323f;
    --repair-muted: #6f7c88;
    --repair-surface: #f4f7f9;
}

body {
    color: var(--repair-ink);
    background: var(--repair-surface);
}

.bg-secondary,
.sidebar.bg-secondary {
    background: linear-gradient(180deg, #12343b 0%, #1f6f78 58%, #173f46 100%) !important;
}

.sidebar .sidebar-brand {
    min-height: 4.75rem;
    letter-spacing: 0;
}

.sidebar .nav-item .nav-link {
    border-left: 3px solid transparent;
    margin: .1rem .55rem;
    border-radius: .35rem;
}

.sidebar .nav-item.active .nav-link,
.sidebar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, .12);
    border-left-color: var(--repair-accent);
}

.topbar {
    border-bottom: 1px solid #e4ebf0;
}

.card {
    border: 0;
    border-radius: .45rem;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e8eef2;
}

.btn-primary,
.page-item.active .page-link {
    background-color: var(--repair-primary);
    border-color: var(--repair-primary);
}

.btn-primary:hover {
    background-color: var(--repair-primary-dark);
    border-color: var(--repair-primary-dark);
}

.btn-secondary {
    background-color: #34495e;
    border-color: #34495e;
}

.badge {
    border-radius: 10rem;
    letter-spacing: 0;
    padding: .42rem .65rem;
}

.table {
    background: #fff;
}

.table thead th {
    border-top: 0;
    color: #52616d;
    font-size: .75rem;
    text-transform: uppercase;
}

.form-control,
.custom-select {
    border-color: #d9e2e8;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--repair-primary);
    box-shadow: 0 0 0 .2rem rgba(31, 111, 120, .15);
}

.language-switcher .btn {
    min-width: 2.75rem;
}

.auth-shell {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(18, 52, 59, .93), rgba(31, 111, 120, .82)),
        url('/img/undraw_posting_photo.svg') right bottom / 45rem auto no-repeat,
        #12343b;
}

.auth-navbar {
    background: rgba(255, 255, 255, .94) !important;
}

.auth-card {
    border-radius: .55rem;
    overflow: hidden;
}

.auth-card .card-header {
    background: var(--repair-primary) !important;
}

.manual-page {
    color: #27323f;
}

.manual-hero,
.manual-section,
.manual-card {
    background: rgba(255, 255, 255, .96);
    border-radius: .55rem;
    box-shadow: 0 .5rem 1.5rem rgba(18, 52, 59, .14);
}

.manual-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem;
}

.manual-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .65rem;
}

.manual-section {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.manual-section h2,
.manual-card h3 {
    color: var(--repair-primary-dark);
    font-weight: 700;
}

.manual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.manual-card {
    padding: 1.25rem;
}

.manual-card i {
    color: var(--repair-primary);
    font-size: 1.45rem;
    margin-bottom: .75rem;
}

.manual-card h3 {
    font-size: 1.05rem;
}

.manual-steps {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.manual-steps li {
    margin-bottom: .55rem;
}

.manual-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.manual-badges span {
    background: #eaf3f5;
    color: var(--repair-primary-dark);
    border: 1px solid #cfe4e8;
    border-radius: 10rem;
    padding: .4rem .7rem;
    font-weight: 700;
    font-size: .85rem;
}

.public-signup-shell {
    min-height: 100vh;
    background:
        linear-gradient(115deg, rgba(18, 52, 59, .95) 0%, rgba(31, 111, 120, .88) 48%, rgba(244, 247, 249, .94) 48.2%, rgba(244, 247, 249, .98) 100%),
        url('/vendor/mzasystem/mzasystem-repair.png') left center / cover no-repeat,
        #12343b;
}

.public-signup-layout {
    min-height: calc(100vh - 3rem);
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr);
    gap: 2rem;
    align-items: center;
}

.public-signup-panel {
    color: #fff;
    padding: 2rem 1rem;
}

.public-signup-home {
    color: rgba(255, 255, 255, .86);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.public-signup-home:hover {
    color: #fff;
    text-decoration: none;
}

.public-signup-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .8rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .45rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-signup-brand i {
    color: var(--repair-accent);
}

.public-signup-panel h1 {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
}

.public-signup-panel p {
    color: rgba(255, 255, 255, .86);
    font-size: 1.05rem;
    max-width: 32rem;
}

.public-signup-points {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
}

.public-signup-points div {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-weight: 700;
}

.public-signup-points i {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 160, 61, .18);
    color: var(--repair-accent);
    border-radius: 50%;
}

.public-signup-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(218, 228, 234, .9);
    border-radius: .65rem;
    box-shadow: 0 1rem 2.5rem rgba(18, 52, 59, .18);
    padding: 1.5rem;
}

.public-signup-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e3ebf0;
}

.public-signup-card-header h2 {
    color: var(--repair-primary-dark);
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.public-signup-card .form-group {
    padding-top: .35rem;
    padding-bottom: .35rem;
}

.public-signup-card label {
    color: #41515f;
    font-weight: 700;
}

.public-signup-card .btn-primary {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .table-responsive {
        border: 0;
    }

    .language-switcher .btn {
        padding-left: .45rem;
        padding-right: .45rem;
    }

    .manual-hero {
        display: block;
        padding: 1.35rem;
    }

    .manual-grid {
        grid-template-columns: 1fr;
    }

    .public-signup-shell {
        background:
            linear-gradient(180deg, rgba(18, 52, 59, .96) 0%, rgba(31, 111, 120, .9) 38%, rgba(244, 247, 249, .98) 38.2%, rgba(244, 247, 249, 1) 100%),
            #12343b;
    }

    .public-signup-layout {
        display: block;
        min-height: auto;
    }

    .public-signup-panel {
        padding: 1rem 0 1.25rem;
    }

    .public-signup-panel h1 {
        font-size: 1.75rem;
    }

    .public-signup-card {
        padding: 1rem;
    }

    .public-signup-card .form-group {
        margin-bottom: .7rem !important;
    }
}
