:root {
    --cholton-blue: #029ED5;
    --cholton-blue-dark: #0179a5;
    --cholton-bg: #f4f8fb;
    --cholton-text: #14213d;
    --cholton-muted: #6b7a8f;
    --cholton-border: #dceaf2;
    --cholton-soft: rgba(2, 158, 213, .12);
    --cholton-success: #198754;
    --cholton-info: #0dcaf0;
    --cholton-warning: #ffc107;
    --cholton-danger: #dc3545;
    --cholton-light: #f8f9fa;
    --cholton-dark: #212529;

    --bs-primary : var(--cholton-blue);
    --bs-secondary : var(--cholton-blue-dark);
    --bs-success : var(--cholton-success);
    --bs-info : var(--cholton-info);
    --bs-warning : var(--cholton-warning);
    --bs-danger : var(--cholton-danger);
    --bs-light : var(--cholton-light);
    --bs-dark : var(--cholton-dark);
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--cholton-text);
    background: radial-gradient(circle at top right, rgba(2, 158, 213, .16), transparent 32rem), linear-gradient(135deg, #fff 0%, var(--cholton-bg) 100%)
}

h1,
h2,
h3,
h4,
.hero-title,
.block-title,
.navbar-brand,
.panel-card h3,
.hero-card h2 {
    font-weight: 500;
    letter-spacing: .35px
}

h1 {
    margin: 4px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem)
}

h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.4rem)
}

.app-shell {
    min-height: 100vh;
    display: flex
}

.brand-zone {
    padding: 14px 10px 34px
}

.brand-logo {
    max-width: 185px;
    height: auto;
    display: block
}

.brand-logo.small {
    max-width: 160px
}

.brand-subtitle {
    margin-top: 12px;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85
}

.main-nav,
.mobile-menu-body {
    display: flex;
    flex-direction: column;
    gap: 9px
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
    text-decoration: none;
    transition: all .18s ease
}

.nav-link i {
    width: 22px;
    text-align: center
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    transform: translateX(3px)
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .25)
}

.logout-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    opacity: .9
}

.content-area {
    width: 100%;
    margin-left: 295px;
    padding: 34px clamp(18px, 4vw, 52px) 48px
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px
}

.eyebrow {
    color: var(--cholton-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem
}

.account-pill {
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 33, 61, .08);
    font-weight: 500
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .14)
}
.status-dot.danger{
 
    background: #dc3545!important;
    box-shadow: 0 0 0 5px rgba(220, 53, 69, .14)
}

.hero-card,
.panel-card,
.quick-card,
.login-card {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(220, 234, 242, .9);
    box-shadow: 0 20px 60px rgba(20, 33, 61, .09)
}

.hero-card {
    border-radius: 34px;
    padding: clamp(24px, 4vw, 44px);
    overflow: hidden;
    position: relative
}

.hero-card:after {
    content: "";
    position: absolute;
    right: -110px;
    top: -140px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(2, 158, 213, .12)
}

.hero-card>* {
    position: relative;
    z-index: 1
}

.hero-label {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(2, 158, 213, .12);
    color: var(--cholton-blue-dark);
    font-weight: 600;
    margin-bottom: 18px
}

.hero-card h2 {
    max-width: 720px;
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.05
}

.hero-card p,
.muted-text {
    color: var(--cholton-muted)
}

.index-form {
    margin-top: 28px
}

.input-group-lg .form-control,
.input-group-lg .input-group-text,
.input-group-lg .btn {
    min-height: 62px
}

.input-group-text {
    background: #f2f9fc;
    border-color: var(--cholton-border);
    color: var(--cholton-blue);
    font-weight: 500
}

.form-control,
.form-select {
    border-color: var(--cholton-border);
    font-weight: 500
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cholton-blue);
    box-shadow: 0 0 0 .25rem rgba(2, 158, 213, .16)
}

.text-primary {
    color: var(--cholton-blue)!important;
}

.btn-primary {
    --bs-btn-bg: var(--cholton-blue);
    --bs-btn-border-color: var(--cholton-blue);
    --bs-btn-hover-bg: var(--cholton-blue-dark);
    --bs-btn-hover-border-color: var(--cholton-blue-dark);
    font-weight: 500
}

.btn-outline-primary {
    --bs-btn-color: var(--cholton-blue);
    --bs-btn-border-color: var(--cholton-blue);
    --bs-btn-hover-bg: var(--cholton-blue);
    --bs-btn-hover-border-color: var(--cholton-blue);
    font-weight: 500
}

.form-help {
    margin-top: 10px;
    color: var(--cholton-muted);
    font-size: .95rem
}

.meter-card {
    border-radius: 28px;
    padding: 26px;
    color: #fff;
    background: linear-gradient(150deg, #029ED5 0%, #016d96 100%);
    box-shadow: 0 24px 50px rgba(2, 158, 213, .28)
}

.meter-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: 2rem;
    margin-bottom: 18px
}

.meter-title,
.meter-row span {
    display: block;
    opacity: .82
}

.meter-card strong {
    font-size: 1.35rem;
    font-weight: 500
}

.meter-card hr {
    border-color: rgba(255, 255, 255, .35);
    margin: 22px 0
}

.meter-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px
}

.meter-row strong {
    font-size: 1rem
}

.quick-zone {
    margin-top: 26px
}

.quick-card {
    min-height: 170px;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--cholton-text);
    text-decoration: none;
    transition: all .2s ease
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 158, 213, .35);
    box-shadow: 0 24px 60px rgba(2, 158, 213, .16)
}

.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(2, 158, 213, .12);
    color: var(--cholton-blue);
    font-size: 1.35rem
}

.quick-card strong {
    margin-top: 18px;
    font-size: 1.08rem;
    font-weight: 500
}

.quick-card small {
    color: var(--cholton-muted);
    margin-top: 6px
}

.panel-card {
    border-radius: 28px;
    padding: 26px;
  
}


.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px
}

.panel-card h3 {
    margin: 0
}

.contract-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.contract-grid span {
    display: block;
    color: var(--cholton-muted);
    font-size: .9rem;
    margin-bottom: 5px
}

.contract-grid strong {
    display: block;
    font-weight: 500
}

.contact-card p {
    color: var(--cholton-muted);
    margin: 14px 0 22px
}

.mobile-menu-head,
.mobile-menu-body {
    background: var(--cholton-blue)
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 15px
}

.login-card {
    width: min(1060px, 100%);
    border-radius: 36px;
    overflow: hidden
}

.login-side {
    min-height: 100%;
    color: #4d6675;;
    padding: 42px;
    background:
    linear-gradient(
        180deg,
        #f8fcff 0%,
        #eef7fc 100%
    );}

.login-form-zone {
    padding: clamp(26px, 5vw, 54px)
}

.important-link {
    display: block;
    padding: 22px;
    border-radius: 24px;
    background: var(--cholton-soft);
    color: var(--cholton-blue-dark);
    text-decoration: none;
    border: 1px solid rgba(2, 158, 213, .2)
}

.important-link strong {
    display: block;
    font-weight: 500;
    font-size: 1.15rem
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.simple-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--cholton-border);
    display: flex;
    justify-content: space-between;
    gap: 18px
}

.simple-list li:last-child {
    border-bottom: 0
}

.page-form .form-label {
    font-weight: 500;
    color: var(--cholton-text)
}

@media(max-width:991.98px) {
    .content-area {
        margin-left: 0
    }

    .topbar {
        align-items: flex-start
    }

    .input-group {
        flex-direction: column
    }

    .input-group>* {
        width: 100% !important;
        border-radius: 16px !important;
        margin-top: 8px
    }

    .contract-grid {
        grid-template-columns: 1fr
    }
}

/* Ajustements v2 */
h1 {
    font-size: clamp(1.55rem, 2.6vw, 2.25rem)
}

h2 {
    font-size: clamp(1.35rem, 2vw, 2rem)
}

p {
    font-size: .96rem
}

.hero-card h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.65rem);
    line-height: 1.08
}

.quick-card strong {
    font-size: 1rem
}

.small-text {
    font-size: .9rem
}

.public-shell {
    min-height: 100vh;
    padding: 30px 15px
}

.public-card {
    width: min(1120px, 100%);
    margin: auto
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px
}

.public-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 22px;
    background: linear-gradient(150deg, var(--cholton-blue), #016d96)
}

.document-a4 {
    width: 210mm;
    min-height: 297mm;
    background: #fff;
    margin: 0 auto;
    padding: 20mm;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(20, 33, 61, .12);
    color: #1f2937
}

.document-a4 h2 {
    font-size: 1.75rem;
    color: var(--cholton-blue);
    font-weight: 500
}

.doc-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 2px solid #e6f3f9;
    padding-bottom: 18px;
    margin-bottom: 34px
}

.doc-logo {
    height: 100px;
    
 
}

.doc-ref {
    font-size: .88rem;
    color: #64748b;
    text-align: right
}

.doc-box {
    border: 1px solid #dceaf2;
    background: #f8fcfe;
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0
}

.doc-signature {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-top: 60px
}

.qr-box {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border: 1px solid #dceaf2;
    border-radius: 14px;
    padding: 8px;
    background: #fff
}

.copy-choice {
    border: 1px solid var(--cholton-border);
    border-radius: 20px;
    padding: 16px;
    background: #fff;
    transition: .2s
}

.copy-choice:hover {
    border-color: var(--cholton-blue);
    box-shadow: 0 12px 30px rgba(2, 158, 213, .11)
}

@media print {
    body {
        background: #fff;
       
    }

    .no-print,
    .sidebar,
    .topbar,
    .offcanvas {
        display: none !important
    }

    .content-area {
        margin: 0;
        padding: 0
    }

    .document-a4 {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding-top:0!important;
        width: 210mm;
        min-height: 297mm
    }

    @page {
        size: A4;
        margin: 0
    }
}

@media(max-width:767px) {
    .document-a4 {
        width: 100%;
        min-height: auto;
        padding: 24px
    }

    .doc-header,
    .doc-signature {
        flex-direction: column
    }

    .doc-ref {
        text-align: left
    }
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 280px;
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #f8fcff 0%,
            #eef7fc 100%
        );

    border-right: 1px solid #dbeaf3;

    display: flex;
    flex-direction: column;

    position: fixed;
    left: 0;
    top: 0;

    padding: 28px 22px;

    box-shadow:
        0 0 25px rgba(2, 158, 213, 0.04);

    z-index: 1000;
}

/* =========================
   LOGO
========================= */

.sidebar-top {
    margin-bottom: 40px;
    text-align: center;
}

.sidebar-logo {
    width: 180px;
    height: auto;
}

/* =========================
   NAVIGATION
========================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;

    border-radius: 14px;

    color: #4d6675;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: all 0.25s ease;
}

.nav-item i {
    width: 18px;
    font-size: 16px;
}

/* Hover */

.nav-item:hover {
    background: rgba(2, 158, 213, 0.08);

    color: #029ED5;

    transform: translateX(3px);
}

/* Active */

.nav-item.active {
    background: linear-gradient(
        135deg,
        #029ED5 0%,
        #1db7eb 100%
    );

    color: white;

    box-shadow:
        0 8px 20px rgba(2, 158, 213, 0.18);
}

.nav-item.active:hover {
    transform: none;
}

/* =========================
   BOTTOM
========================= */

.sidebar-bottom {
    padding-top: 25px;
}

/* =========================
   LOGOUT
========================= */

.logout-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 18px;

    border-radius: 14px;

    background: white;

    border: 1px solid #dcecf5;

    color: #5a7382;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: all 0.25s ease;
}

.logout-btn:hover {
    background: #029ED5;
    border-color: #029ED5;
    color: white;

    box-shadow:
        0 8px 20px rgba(2, 158, 213, 0.18);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;

        position: relative;

        border-right: none;
        border-bottom: 1px solid #dbeaf3;
    }

}