/* ==========================================================================
   LimeNetwork — Lagom 2 custom branding (full + boosted specificity)
   File: templates/lagom2/core/styles/modern/assets/css/vars/custom.css
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@500,700,800,900&f[]=satoshi@400,500,700,900&display=swap');

/* === Brand CSS variables === */
html body,
html body.lagom,
:root {
    --brand-primary:                                #BDDDDD !important;
    --brand-primary-lighter:                        #d3e7e7 !important;
    --brand-primary-lighter-2:                      #e0eded !important;
    --brand-primary-lighter-3:                      #ecf4f4 !important;
    --brand-primary-lighter-4:                      #f5f9f9 !important;
    --brand-primary-darker:                         #7EB8B8 !important;
    --brand-primary-darker-2:                       #5fa3a3 !important;
    --brand-primary-gradient-start:                 #BDDDDD !important;
    --brand-primary-gradient-end:                   #7EB8B8 !important;

    --brand-secondary:                              #7EB8B8 !important;
    --brand-secondary-lighter:                      #98c8c8 !important;
    --brand-secondary-darker:                       #5fa3a3 !important;
    --brand-secondary-gradient-start:               #7EB8B8 !important;
    --brand-secondary-gradient-end:                 #5fa3a3 !important;

    --brand-info:                                   #7EB8B8 !important;
    --brand-info-lighter:                           #BDDDDD !important;
    --brand-info-darker:                            #5fa3a3 !important;

    --brand-success:                                #7EB8B8 !important;
    --brand-success-lighter:                        #BDDDDD !important;
    --brand-success-lighter-2:                      #d6ebeb !important;
    --brand-success-lighter-3:                      #e8f4f4 !important;
    --brand-success-darker:                         #5fa3a3 !important;
    --brand-success-gradient-start:                 #BDDDDD !important;
    --brand-success-gradient-end:                   #7EB8B8 !important;

    --login-logo-height:                            96px !important;
}
@media (max-width: 720px) {
    html body, html body.lagom, :root {
        --login-logo-height: 60px !important;
    }
}

/* === Typography === */
html body,
html body .app-body,
html body .cart-body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .lagom-headline,
html body .login-title,
html body .panel-title,
html body .page-header h1 {
    font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
}

/* === Global border-radius polish === */
html body .btn,
html body button.btn {
    border-radius: 10px !important;
}
html body .btn-sm { border-radius: 8px !important; }
html body .btn-lg { border-radius: 12px !important; }

html body .card,
html body .panel,
html body .lagom-card,
html body .box {
    border-radius: 14px !important;
    overflow: hidden;
    border-color: rgba(189, 221, 221, 0.35) !important;
}

html body .form-control,
html body input.form-control,
html body select.form-control,
html body textarea.form-control {
    border-radius: 10px !important;
}

html body .modal-content,
html body .lagom-modal {
    border-radius: 18px !important;
    overflow: hidden;
    border: 0 !important;
}

html body .dropdown-menu {
    border-radius: 12px !important;
    border: 1px solid rgba(189, 221, 221, 0.35) !important;
    box-shadow: 0 14px 36px rgba(13, 17, 23, 0.10) !important;
    overflow: hidden;
}

html body .badge,
html body .label {
    border-radius: 999px !important;
}

html body .nav-tabs .nav-link,
html body .nav-pills .nav-link {
    border-radius: 8px !important;
}

html body .table {
    border-radius: 12px !important;
    overflow: hidden;
}

/* === Buttons === */
html body .btn-primary,
html body .btn.btn-primary,
html body button.btn-primary,
html body a.btn-primary {
    background: #7EB8B8 !important;
    border-color: #7EB8B8 !important;
    color: #fff !important;
    font-weight: 700 !important;
    transition: all .2s ease !important;
}
html body .btn-primary:hover,
html body .btn.btn-primary:hover {
    background: #5fa3a3 !important;
    border-color: #5fa3a3 !important;
    box-shadow: 0 4px 12px rgba(126, 184, 184, 0.30) !important;
    transform: translateY(-1px) !important;
}
html body .btn-success,
html body .btn.btn-success {
    background: #7EB8B8 !important;
    border-color: #7EB8B8 !important;
    color: #fff !important;
    font-weight: 700 !important;
}
html body .btn-success:hover {
    background: #5fa3a3 !important;
    border-color: #5fa3a3 !important;
}
html body .btn-secondary,
html body .btn.btn-secondary {
    background: #BDDDDD !important;
    border-color: #BDDDDD !important;
    color: #0d1117 !important;
    font-weight: 700 !important;
}
html body .btn-secondary:hover {
    background: #7EB8B8 !important;
    border-color: #7EB8B8 !important;
    color: #fff !important;
}

/* Generic success/green overrides */
html body .text-success { color: #7EB8B8 !important; }
html body .bg-success { background-color: #7EB8B8 !important; color: #fff !important; }
html body .border-success { border-color: #7EB8B8 !important; }
html body .badge-success,
html body .label-success {
    background-color: #7EB8B8 !important;
    color: #fff !important;
}

/* Links */
html body a:not(.btn):not(.tile):not(.ln-mega-link) {
    color: #5fa3a3;
    transition: color .15s ease;
}
html body a:not(.btn):not(.tile):not(.ln-mega-link):hover {
    color: #4a8e8e;
}

/* Form focus */
html body .form-control:focus,
html body input.form-control:focus,
html body select.form-control:focus,
html body textarea.form-control:focus {
    border-color: #7EB8B8 !important;
    box-shadow: 0 0 0 3px rgba(189, 221, 221, 0.35) !important;
    outline: none !important;
}

/* ==========================================================================
   SIDEBAR (left navigation) — Dark slate brand
   ========================================================================== */
html body .app-nav-secondary,
html body .lagom-layout-left-wide .app-nav-secondary,
html body .lagom-layout-left .app-nav-secondary,
html body.lagom .app-nav-secondary {
    background-color: #1c2434 !important;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(126, 184, 184, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(189, 221, 221, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #1c2434 0%, #232f42 100%) !important;
    border-right: 1px solid rgba(126, 184, 184, 0.20) !important;
}

html body .app-nav-menu .menu > li > a {
    color: rgba(255, 255, 255, 0.78) !important;
    transition: all .15s ease !important;
}
html body .app-nav-menu .menu > li > a:hover {
    color: #fff !important;
    background: rgba(189, 221, 221, 0.10) !important;
}
html body .app-nav-menu .menu > li.active > a,
html body .app-nav-menu .menu > li > a.active,
html body .app-nav-menu .menu > li.current > a {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(126, 184, 184, 0.32) 0%, rgba(95, 163, 163, 0.34) 100%) !important;
    font-weight: 700 !important;
    box-shadow: inset 0 0 0 1px rgba(189, 221, 221, 0.22) !important;
}
html body .app-nav-menu .menu > li > a .lm,
html body .app-nav-menu .menu > li > a i {
    color: #BDDDDD !important;
}
html body .app-nav-menu .menu-title,
html body .app-nav-menu .nav-section-title {
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
}

/* Logo sidebar a destra */
html body .app-nav-secondary .logo,
html body .app-nav-secondary .brand-logo,
html body .app-nav-secondary .app-brand {
    text-align: right !important;
    justify-content: flex-end !important;
}
html body .app-nav-secondary .logo img,
html body .app-nav-secondary .brand-logo img,
html body .app-nav-secondary .app-brand img {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   DASHBOARD TILES (.tile .tile-stat .tile-title .tile-icon-absolute)
   ========================================================================== */
html body .tiles {
    margin: 0 0 30px !important;
}
html body .tile {
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(189, 221, 221, 0.40) !important;
    box-shadow: 0 1px 2px rgba(13, 17, 23, 0.04) !important;
    padding: 24px 26px !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    display: block !important;
    min-height: 130px !important;
}
html body .tile:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(126, 184, 184, 0.18),
                0 2px 6px rgba(13, 17, 23, 0.05) !important;
    border-color: rgba(126, 184, 184, 0.55) !important;
    text-decoration: none !important;
}
html body .tile .tile-icon-absolute {
    position: absolute !important;
    top: 22px !important;
    right: 22px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(189, 221, 221, 0.45) 0%, rgba(126, 184, 184, 0.55) 100%) !important;
    color: #4a8e8e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    transition: all .2s ease !important;
}
html body .tile:hover .tile-icon-absolute {
    background: linear-gradient(135deg, #7EB8B8 0%, #5fa3a3 100%) !important;
    color: #fff !important;
    transform: rotate(-6deg) scale(1.06) !important;
}
html body .tile .tile-stat {
    font-family: 'Cabinet Grotesk', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.6rem !important;
    color: #0d1117 !important;
    line-height: 1 !important;
    letter-spacing: -.02em !important;
    margin-top: 28px !important;
    display: block !important;
}
html body .tile .tile-title {
    color: #6b7a82 !important;
    font-size: .82rem !important;
    text-transform: uppercase !important;
    letter-spacing: .10em !important;
    font-weight: 700 !important;
    margin-top: 8px !important;
    display: block !important;
}

/* Client home panels */
html body .client-home-panels .panel,
html body .client-home-panels .card,
html body .client-home-panels > .col-md-6 > div,
html body .client-home-panels > .col-md-12 > div {
    background: #fff !important;
    border-radius: 16px !important;
    border: 1px solid rgba(189, 221, 221, 0.35) !important;
    box-shadow: 0 1px 2px rgba(13, 17, 23, 0.04) !important;
    overflow: hidden !important;
}
html body .client-home-panels .panel-heading,
html body .client-home-panels .card-header {
    background: #f7faf9 !important;
    border-bottom: 1px solid rgba(189, 221, 221, 0.30) !important;
    padding: 16px 22px !important;
    font-family: 'Cabinet Grotesk', sans-serif !important;
    font-weight: 700 !important;
    color: #0d1117 !important;
}

/* Alert lagom */
html body .alert-lagom {
    border-radius: 12px !important;
    border: 0 !important;
    padding: 16px 20px !important;
}
html body .alert-lagom.alert-warning {
    background: rgba(240, 198, 116, 0.18) !important;
    color: #6b4500 !important;
    border-left: 4px solid #f0c674 !important;
}
html body .alert-lagom.alert-danger {
    background: rgba(220, 38, 38, 0.10) !important;
    color: #991b1b !important;
    border-left: 4px solid #dc2626 !important;
}
html body .alert-lagom.alert-info,
html body .alert-lagom.alert-success {
    background: rgba(189, 221, 221, 0.22) !important;
    color: #4a8e8e !important;
    border-left: 4px solid #7EB8B8 !important;
}

/* ==========================================================================
   STATUS PILLS — compact inline
   ========================================================================== */
html body .label-Active,
html body .label-Pending,
html body .label-Cancelled,
html body .label-Suspended,
html body .label-Expired,
html body .lagom-status-active,
html body .lagom-status-pending,
html body .lagom-status-cancelled,
html body .lagom-status-suspended,
html body .status-active,
html body .status-pending,
html body .status-cancelled,
html body .status-suspended,
html body td.status .label,
html body td.status .badge {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: max-content !important;
    border-radius: 999px !important;
    padding: 3px 11px !important;
    font-size: .74rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}
html body .label-Active,
html body .lagom-status-active,
html body .status-active {
    background: rgba(126, 184, 184, 0.15) !important;
    color: #4a8e8e !important;
    border: 1px solid rgba(126, 184, 184, 0.35) !important;
}
html body .label-Pending,
html body .lagom-status-pending,
html body .status-pending {
    background: rgba(240, 198, 116, 0.20) !important;
    color: #8a5a00 !important;
    border: 1px solid rgba(240, 198, 116, 0.40) !important;
}
html body .label-Cancelled,
html body .label-Suspended,
html body .label-Expired,
html body .lagom-status-cancelled,
html body .lagom-status-suspended,
html body .status-cancelled,
html body .status-suspended {
    background: rgba(220, 38, 38, 0.10) !important;
    color: #b91c1c !important;
    border: 1px solid rgba(220, 38, 38, 0.30) !important;
}

/* Tables */
html body .table thead th,
html body .lagom-table thead th {
    background: #f5f9f9 !important;
    color: #0d1117 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid rgba(189, 221, 221, 0.40) !important;
}
html body .table tbody tr:hover {
    background: rgba(189, 221, 221, 0.08) !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
    background: rgba(126, 184, 184, 0.45);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #7EB8B8; }

/* ls icons */
html body .ls { color: #7EB8B8; }

/* ==========================================================================
   LOGIN PAGE — Cosmetic only (no layout breaking)
   ========================================================================== */
html body.page-login,
html body.page-register {
    background:
        radial-gradient(at 20% 25%, rgba(189, 221, 221, 0.35) 0%, transparent 50%),
        radial-gradient(at 80% 75%, rgba(126, 184, 184, 0.28) 0%, transparent 50%),
        #f6fafa !important;
}
html body .login {
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(13, 17, 23, 0.12),
                0 8px 20px rgba(13, 17, 23, 0.06) !important;
    border: 1px solid rgba(189, 221, 221, 0.30) !important;
    overflow: hidden !important;
    max-width: 520px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Mobile: card full-width con padding ai lati */
@media (max-width: 600px) {
    html body.page-login,
    html body.page-register,
    html body.page-login .app-body,
    html body.page-login .app-content,
    html body.page-register .app-body,
    html body.page-register .app-content {
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    html body.page-login .container,
    html body.page-register .container,
    html body.page-login .inner-wrapper,
    html body.page-register .inner-wrapper,
    html body.page-login .container-fluid,
    html body.page-register .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    html body .login,
    html body .register {
        max-width: calc(100vw - 24px) !important;
        margin: 12px auto !important;
        width: auto !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }
    html body .login .login-header,
    html body .register .register-header {
        padding: 24px 20px !important;
    }
    html body .login .login-wrapper {
        padding: 22px 20px !important;
    }
    html body .login .login-form .form-control,
    html body .register .form-control {
        font-size: 16px !important;
    }
    html body .login .login-form .btn-primary {
        font-size: 1rem !important;
    }
}
html body .login .login-header {
    background: linear-gradient(135deg, #7EB8B8 0%, #5fa3a3 100%) !important;
    padding: 32px !important;
    text-align: center !important;
    border-bottom: 0 !important;
    margin: 0 !important;
}
html body .login .login-header .logo-login-img,
html body .login .login-header img {
    filter: brightness(0) invert(1) !important;
}
html body .login .login-wrapper {
    padding: 28px 32px 32px !important;
}
html body .login .login-body {
    padding: 0 !important;
    background: transparent !important;
}
html body .login .login-body .login-title {
    font-size: 1.4rem !important;
    color: #0d1117 !important;
    text-align: center !important;
    margin: 0 0 6px !important;
}
html body .login .login-body p.text-center {
    text-align: center !important;
    color: #6b7a82 !important;
    font-size: .92rem !important;
    margin-bottom: 4px !important;
}
html body .login .login-form {
    margin-top: 22px !important;
}
html body .login .login-form .form-group {
    margin-bottom: 16px !important;
}
html body .login .login-form label {
    color: #2d3a42 !important;
    font-weight: 700 !important;
    font-size: .86rem !important;
    margin-bottom: 6px !important;
}
html body .login .login-form .form-control {
    border: 1.5px solid #e3edee !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    background: #fafdfd !important;
    transition: all .2s ease !important;
}
html body .login .login-form .form-control:focus {
    border-color: #7EB8B8 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(189, 221, 221, 0.35) !important;
}
html body .login .login-form .btn-primary,
html body .login .login-form button[type=submit] {
    width: 100% !important;
    background: linear-gradient(135deg, #7EB8B8 0%, #5fa3a3 100%) !important;
    border: 0 !important;
    color: #fff !important;
    padding: 13px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(126, 184, 184, 0.30) !important;
    margin-top: 6px !important;
}
html body .login .login-form .btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(126, 184, 184, 0.42) !important;
    background: linear-gradient(135deg, #5fa3a3 0%, #4a8e8e 100%) !important;
}
html body .login .login-divider {
    color: #95a3a8 !important;
    font-size: .76rem !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    margin: 18px 0 !important;
}

/* Page background generale (content area, no login) */
html body:not(.page-login):not(.page-register) .app-body,
html body:not(.page-login):not(.page-register) .app-content,
html body:not(.page-login):not(.page-register) .client-body {
    background: linear-gradient(180deg, #f7faf9 0%, #fdfdfd 60%) !important;
}
