:root {
    --TrueBlue: rgba(0, 25, 101, 1);
    --SeaBlue: rgba(0, 90, 210, 1);
    --SeaBlue-40: rgba(0, 90, 210, 0.4);
    --LightBlue: rgba(59, 151, 222, 1);
    --LightBlue-40: rgba(59, 151, 222, 0.4);
}

html, body {
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    color: var(--TrueBlue);
    background: var(--LightBlue-40);
    margin: 0;
    padding: 0;
}

/* ==================== HOME ==================== */

.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home img.logo {
    max-width: 200px;
    margin-bottom: 50px;
}

.home img.logo-prodotto {
    max-height: 100px;
    min-height: 50px;
}

.home .card-body {
    padding: 2rem !important;
}

.home .card {
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 25, 101, 0.15);
}

/* ==================== RCP PAGE ==================== */

.rcp-page {
    height: 100vh;
    overflow: hidden;
}

.rcp-page .row {
    height: 100%;
}

.rcp {
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    background: #ffffff;
}

.rcp canvas {
    display: block;
    width: 100%;
    height: auto;
}

.rcp .page-wrapper {
    width: 100%;
    background: #f0f0f0;
}

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

.sidebar {
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo img {
    max-width: 150px;
}

.sidebar .card {
    text-decoration: none;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar .card.active {
    border-color: var(--LightBlue-40);
}

.sidebar .card:hover:not(.active) {
    border-color: var(--LightBlue);
}

.rcp-page .card-body {
    padding: 0.5rem !important;
}

.rcp-page img.logo-prodotto {
    max-height: 30px;
}

/* ==================== QR CODE ==================== */

.qrcode p {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.qrcode canvas {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* ==================== PDF LOADING ==================== */

.pdf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: var(--SeaBlue);
}

.pdf-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ==================== ERROR PAGE ==================== */

.error-page {
    min-height: 100vh;
}

.error-page h2 {
    color: var(--TrueBlue);
}

.error-page .btn-primary {
    background-color: var(--SeaBlue);
    border-color: var(--SeaBlue);
}

.error-page .btn-primary:hover {
    background-color: var(--TrueBlue);
    border-color: var(--TrueBlue);
}
