:root {
    --Dueflow-blue: #0b61a4;
    --Dueflow-blue-dark: #2f3f57;
    --Dueflow-blue-soft: #7a8aa1;
    --Dueflow-red: #ef3d3d;

    --bg-dark-1: #0f1728;
    --bg-dark-2: #151c28;
    --bg-card: rgb(11, 97, 164);
    --bg-card-main: rgba(11, 97, 164, 0.6);
}

/* ---------- GLOBAL ---------- */
.modal-title2 {
    color: #000;
}

.bootbox-light {
    color: #000;
}

.form-label {
    color: white;
}

body {
    background: white;
    color: #f8f9fa;
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    padding-bottom: 2rem;
}

a {
    text-decoration: none;
    acolor: var(--Dueflow-blue-soft);
	color:white;
}

a:hover {
    color: var(--Dueflow-red);
}

/* ---------- BRAND / LOGIN ---------- */

.auth-wrapper {
    max-width: 430px;
    width: 100%;
    margin: auto;
}

.logo-circle {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0, #dbe0ea 40%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.logo-inner {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 3px solid var(--Dueflow-blue);
    position: relative;
    transform: rotate(45deg);
}

.logo-inner::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 4px;
    background: var(--Dueflow-red);
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.login-card {
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid rgba(123, 148, 184, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* ---------- INPUT ---------- */

.form-control {
    border-radius: 0.65rem;
    background-color: #0b1625;
    border: 1px solid white;
    color: #fff;
}



/* ---------- BUTTONS ---------- */

.btn-primary-portal {
    background: linear-gradient(135deg, var(--Dueflow-blue), var(--Dueflow-blue-dark));
    border-color: var(--Dueflow-blue-dark);
    border-radius: .375rem;
    /* ✅ Bootstrap standard */
    font-weight: 600;
    color: whitesmoke;
}

.btn-primary-portal:hover {
    background: linear-gradient(135deg, #435b81, #253346);
}

.btn-outline-portal {
    border-radius: .375rem;
    /* ✅ Bootstrap standard */
    border-color: var(--Dueflow-blue-soft);
    color: whitesmoke;
}

.btn-outline-portal:hover {
    background-color: rgba(123, 148, 184, 0.15);
}

/* ---------- CARDS / DASHBOARD ---------- */

.dashboard-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

/* ---------- CARDS / DASHBOARD ---------- */

.dashboard-card-main {
    background: var(--Dueflow-blue);
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

/* ---------- NAVBAR / SIDEBAR ---------- */

.Dueflow-navbar {
    background: var(--Dueflow-blue) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.Dueflow-sidebar {
    background: var(--Dueflow-blue-dark) !important;
    color: #fff;
    padding-top: 1.5rem;
}

.Dueflow-sidebar .nav-link {
    color: #d4d9e4;
    margin-bottom: 0.5rem;
}

.Dueflow-sidebar .nav-link:hover,
.Dueflow-sidebar .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding-left: 0.8rem;
}

.text-custom {
    color: #d4d9e4;
}

.chart-container {
    /*height: 500px;*/
    /* o 400/500px come vuoi tu */
    position: relative;
}

.chart-container canvas {
    height: 100% !important;
    width: 100% !important;
}

.form-select {
    background-color: #0d1b2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #415a77 !important;
}

.bg-urgente {
    background-color: #ffe5e5 !important;
    /* rosso chiarissimo */
    border-left: 6px solid #d9534f !important;
}

.bg-medio {
    background-color: #fff5da !important;
    /* giallo/arancio chiaro */
    border-left: 6px solid #f0ad4e !important;
}

.bg-lieve {
    background-color: #e6f7ff !important;
    /* azzurro chiarissimo */
    border-left: 6px solid #5bc0de !important;
}

.deadline-box {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    color: #333 !important;
}

/* Dialog light */
.bootbox-light .modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.bootbox-light .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.bootbox-light .modal-title {
    font-weight: 600;
}

.bootbox-light .modal-footer {
    border-top: none;
}

.bootbox-light .btn-primary {
    background-color: #e9ecef;
    color: #212529;
    border: none;
}

.asset-disabled {
    opacity: 0.55;
    border: 1px dashed #ccc;
}

.asset-disabled .btn {
    opacity: 0.8;
}

.Dueflow-sidebar .nav-link {
    color: rgba(255, 255, 255, .75);
    border-radius: .5rem;
}

.Dueflow-sidebar .nav-link.active {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-weight: 600;
}

.Dueflow-sidebar .nav-link i {
    width: 20px;
}

section {
    scroll-margin-top: 65px;
}

#mobileStatusBar {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    z-index: 1040;
    /* sotto offcanvas (1055), sopra contenuto */
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/* evita che l’ultima sezione venga coperta */
body {
    padding-bottom: 48px;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    /* orizzontale */
    align-items: center;
    /* verticale */
}