

/* Font Locali */
@font-face {
  font-family: 'Inter';
  src: url('font/InterTight-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('font/InterTight-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('font/InterTight-Bold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

:root {
    --admin-primary: #4a9f22;
    --admin-primary-dark: #3f8c1d;
    --admin-primary-soft: #edf8e8;
    --admin-danger: #dc3545;
    --admin-danger-soft: #fdecef;
}
.sidebar .nav-link.active,
.sidebar .nav-pills .nav-link.active,
.sidebar .nav-pills .show > .nav-link {
  background-color: var(--admin-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(74, 159, 34, 0.35) !important;
}

.sidebar .user-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar .user-info .fs-6.fw-semibold {
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #ffffff;
}


body {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Sidebar personalizzata scura */
.sidebar {
    width: 260px;
    background: #212529;
    color: #fff;
    flex-shrink: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.05);
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar a:hover,
.sidebar a.active {
    color: #fff;
    background: var(--admin-primary);
    text-decoration: none;
}

.sidebar a:hover {
    transform: translateX(4px);
}

.sidebar h3, .sidebar h4 {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.sidebar .nav-link.sidebar-type-link {
    padding: 8px 12px;
    margin-bottom: 0;
    min-height: 36px;
    font-size: 0.98rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.sidebar .nav-item {
    margin-bottom: 2px;
}

.sidebar-sections {
    margin-top: 0;
    margin-bottom: 0;
}

.sidebar-sections__details {
    width: 100%;
}

.sidebar-sections__summary {
    list-style: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 0;
    min-height: 36px;
    line-height: 1.15;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.sidebar-sections__summary::-webkit-details-marker {
    display: none;
}

.sidebar-sections__details[open] .sidebar-sections__summary,
.sidebar-sections__summary:hover {
    background: rgba(74, 159, 34, 0.22);
    color: #fff;
}

.sidebar-sections__chevron {
    transition: transform 0.2s ease;
}

.sidebar-sections__details[open] .sidebar-sections__chevron {
    transform: rotate(180deg);
}

.sidebar-sections__list {
    list-style: none;
    padding: 4px 0 0 0;
    margin: 0;
}

.sidebar-type-link--section {
    padding-left: 18px !important;
}

.sidebar .sidebar-sections__list .nav-link.active,
.sidebar .sidebar-type-link--section.active {
    background-color: #4a9f22 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(74, 159, 34, 0.3) !important;
}

.sidebar .sidebar-sections__list .nav-link:hover,
.sidebar .sidebar-type-link--section:hover {
    background-color: rgba(74, 159, 34, 0.2) !important;
    color: #ffffff !important;
}

/* Uniforma dimensione testo e peso per tutti i pulsanti/link sidebar */
.sidebar .nav-link,
.sidebar .btn,
.sidebar-sections__summary {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.35px;
}

.main {
    flex: 1;
    padding: 0 30px 30px 30px;
    overflow-y: auto;
}

/* Container stile Card */
.container {
    max-width: 98%;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-top: 0;
}

/* Login centrato */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: auto; /* Centra nel body flex */
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Login page branding */
body.login-page {
    position: relative;
    display: flex;
    min-height: 100vh;
    background-image: linear-gradient(rgba(8, 18, 34, 0.52), rgba(8, 18, 34, 0.52)), url('bg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-shell {
    width: 100%;
    max-width: 420px;
    margin: auto;
    animation: loginCardIn 520ms ease-out both;
}

body.login-page .login-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.agency-logo-wrap {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    background: rgba(10, 20, 34, 0.82);
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 12px 12px 0 0;
    padding: 14px 18px;
    box-shadow: none;
}

.agency-logo {
    max-width: 210px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-card-body {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    padding: 32px 40px 40px;
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-shell {
        animation: none;
    }
}

.sidebar-brand {
    width: 100%;
}

.sidebar-brand-logo {
    width: 100%;
    max-width: 190px;
    height: auto;
    object-fit: contain;
}

/* Tabelle più eleganti */
table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

th,
td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

/* Compact tables in admin content area */
.main .table th,
.main .table td {
    padding-top: 0.34rem;
    padding-bottom: 0.34rem;
    line-height: 1.12;
    vertical-align: middle;
}

.main .table th {
    font-size: 0.9rem;
    font-weight: 700;
    color: #141a23;
}

.main .table td {
    font-size: 0.87rem;
    font-weight: 500;
    color: #2b3442;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Override Form Elements per matchare Bootstrap se non hanno la classe */
input[type="text"], input[type="password"], select, textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    margin-bottom: 15px;
}

/* Rifinitura campo password con toggle occhio nella login */
body.login-page .login-card-body .form-control {
    height: 52px;
    border-radius: 8px;
    border: 1px solid #c3cbd5;
    font-size: 1.05rem;
}

body.login-page .login-card-body .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

body.login-page .input-group > .form-control {
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

body.login-page .input-group > .btn {
    min-width: 52px;
    height: 52px;
    border-color: #c3cbd5;
    background-color: #f8f9fa;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

body.login-page .input-group > .btn i {
    color: #6c757d;
    font-size: 1rem;
}

body.login-page .input-group > .btn:hover {
    background-color: #eef1f4;
}

body.login-page .login-card-body .btn.btn-primary {
    height: 52px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Responsive Mobile --- */
@media (max-width: 991px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    /* Sovrascrive gli stili inline di index.php per permettere lo scroll della pagina */
    .main, .content {
        height: auto !important;
        overflow: visible !important;
        padding: 15px !important;
    }

    /* Rende le tabelle scrollabili orizzontalmente se non ci stanno */
    .card-body {
        overflow-x: auto;
    }
}

/* Card e Blocchi Schema */
.card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.schema-block {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #0d6efd;
    border-radius: 4px;
}

.error { color: #dc3545; font-weight: bold; }
.success { color: #198754; font-weight: bold; }

/* Admin Index/Ordini navbar + UI refinements (moved from index.php) */
.admin-navbar {
    background: linear-gradient(90deg, #4a9f22 0%, #212529 100%) !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    padding: 1.55rem 1.25rem !important;
    z-index: 1000;
    margin-top: 0 !important;
    box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.55) !important;
}

.admin-navbar.navbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: linear-gradient(90deg, rgba(74, 159, 34, 0.98) 0%, rgba(33, 37, 41, 0.98) 100%) !important;
}

.admin-navbar .view-site-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
}

.admin-navbar .view-site-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.16);
}

.admin-navbar .view-site-link i {
    font-size: 0.75rem;
    opacity: 0.95;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.admin-navbar .view-site-link:hover i {
    opacity: 1;
    transform: translate(2px, -2px);
}

.admin-navbar .navbar-text {
    font-weight: 500;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
}

.admin-navbar .navbar-text i {
    color: #ffffff;
}

.admin-navbar .container-fluid {
    position: relative;
}

.admin-navbar .container-fluid > .d-flex.align-items-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.admin-navbar .view-site-link span {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.admin-navbar .view-site-link {
    text-transform: uppercase;
}

.admin-navbar .navbar-text::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 8px;
}

.admin-navbar .btn-outline-primary {
    border: 1.5px solid #0d6efd;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 18px;
    transition: all 0.3s ease;
    background-color: rgba(13, 110, 253, 0.02);
}

.admin-navbar .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.dashboard-guide-link .badge {
    transition: all 0.2s ease;
    background-color: rgba(74, 159, 34, 0.18) !important;
    color: #2f6f14 !important;
    border-color: rgba(74, 159, 34, 0.38) !important;
    min-height: 46px;
    padding: 0.75rem 1.2rem !important;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 12px;
}

.dashboard-guide-link:hover .badge {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(74, 159, 34, 0.22);
}

.dashboard-guide-link .badge i {
    font-size: 1rem;
}


table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: #f8fbff;
}

table img {
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.main .table td img {
    width: 28px !important;
    height: 28px !important;
}

table img:hover {
    transform: scale(1.1);
}

.main .table td:first-child {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: #5d6878;
    font-size: 0.84rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid #dee2e6;
    background: white;
}

.main .table .action-btn {
    height: 28px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.25px;
    line-height: 1;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.main .table .action-btn i {
    font-size: 0.74rem;
    line-height: 1;
}

.main .table .action-btn span {
    display: inline-block;
    line-height: 1;
}

.main .table .action-btn--edit {
    background-color: #f3faef;
    border-color: #4a9f22;
    color: #3f8c1d;
    box-shadow: 0 0 0 0.12rem rgba(74, 159, 34, 0.12);
}

.main .table .action-btn--edit:hover {
    background-color: #3f8c1d;
    border-color: #3f8c1d;
    color: #ffffff;
    transform: translateY(-1px);
}

.main .table .action-btn--edit:focus {
    color: #3f8c1d;
    background-color: #e9f6e1;
    border-color: #4a9f22;
    box-shadow: 0 0 0 0.15rem rgba(74, 159, 34, 0.2);
}

.main .table .action-btn--delete {
    background-color: #f4f5f6;
    border-color: #212529;
    color: #212529;
    box-shadow: 0 0 0 0.12rem rgba(33, 37, 41, 0.1);
}

.main .table .action-btn--delete:hover {
    background-color: #212529;
    border-color: #12171c;
    color: #ffffff;
    transform: translateY(-1px);
}

.main .table .action-btn--delete:focus {
    color: #212529;
    background-color: #eceff1;
    border-color: #212529;
    box-shadow: 0 0 0 0.15rem rgba(33, 37, 41, 0.16);
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

input[type="text"].search-input {
    padding-left: 40px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    height: 45px;
}

input[type="text"].search-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar .logout-button {
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.main .d-flex.justify-content-between.align-items-center.mb-4 {
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 20px;
    margin-bottom: 30px !important;
}

.main h2 {
    font-weight: 700;
    color: #1e2125;
    margin: 0;
    letter-spacing: -0.5px;
}

.badge.bg-warning {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary.text-nowrap {
    margin-right: 30px;
    background-color: #0d6efd;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.btn-primary.text-nowrap:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.35);
}

.btn-primary.text-nowrap:active {
    transform: translateY(0);
}

.btn-primary.text-nowrap i {
    font-size: 1.1rem;
    -webkit-text-stroke: 0.5px;
}

.admin-main-layout .btn-primary.text-nowrap,
.admin-main-layout .input-group > .btn.btn-primary {
    background-color: var(--admin-primary) !important;
    border-color: var(--admin-primary) !important;
    color: #ffffff !important;
}

.admin-main-layout .btn-primary.text-nowrap:hover,
.admin-main-layout .input-group > .btn.btn-primary:hover {
    background-color: var(--admin-primary-dark) !important;
    border-color: var(--admin-primary-dark) !important;
}

.admin-main-layout .btn-primary.text-nowrap:focus,
.admin-main-layout .input-group > .btn.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(74, 159, 34, 0.25) !important;
}

/* Users create form: consistent heights and baseline alignment */
.users-create-form .users-align-input,
.users-create-form .users-align-btn {
    height: 40px;
    min-width: 96px;
}

.users-create-form .users-align-input {
    line-height: 38px;
}

.users-create-form select.users-align-input {
    line-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
}

.users-create-form .users-align-actions {
    align-items: flex-start;
    padding-top: 30px;
}

.users-create-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.users-create-form .form-label {
    margin-bottom: 6px;
}

/* Dashboard home: chart + stats table */
.dashboard-card {
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden;
}

.dashboard-card .card-header {
    border-bottom: 1px solid #eef2f6 !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.35rem !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
}

.dashboard-card--chart .card-title .text-primary {
    color: var(--admin-primary) !important;
}

.dashboard-card--chart,
.dashboard-card--table {
    display: flex;
    flex-direction: column;
}

.dashboard-card--chart .card-body,
.dashboard-card--table .card-body {
    flex: 1;
    padding: 0.55rem 0.75rem !important;
}

.dashboard-chart-wrap {
    position: relative;
    height: clamp(210px, 28vh, 300px);
    min-height: 210px;
    max-height: 300px;
}

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

.dashboard-stats-table thead th {
    font-size: 0.76rem;
    font-weight: 700;
    border-bottom-width: 1px;
    background: linear-gradient(180deg, #dcefd1 0%, #d0e7c2 100%);
    color: #2f6f14;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.dashboard-stats-table tbody td {
    padding-top: 0.12rem;
    padding-bottom: 0.12rem;
    font-size: 0.74rem;
    line-height: 1.1;
}

.dashboard-stats-table tbody tr:hover td {
    background: #f8fbff;
}

.dashboard-stats-scroll {
    border-top: 1px solid #eef2f6;
    max-height: 225px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #86bd67 #edf4e8;
}

.dashboard-stats-scroll .dashboard-stats-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.dashboard-stats-scroll::-webkit-scrollbar {
    width: 10px;
}

.dashboard-stats-scroll::-webkit-scrollbar-track {
    background: #edf4e8;
}

.dashboard-stats-scroll::-webkit-scrollbar-thumb {
    background-color: #86bd67;
    border-radius: 999px;
    border: 2px solid #edf4e8;
}

.dashboard-stats-table .badge {
    font-size: 0.68rem;
    border-radius: 6px;
    min-width: 20px;
    padding: 0.08rem 0.2rem;
}

.admin-type-table td.ps-4,
.admin-type-table th.ps-4 {
    padding-left: 0.75rem !important;
}

.dashboard-welcome-card {
    padding: 1.25rem 1.4rem !important;
    margin-bottom: 1rem !important;
}

.dashboard-welcome-card .container-fluid {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
}

.dashboard-welcome-card .display-6 {
    font-size: 2rem;
    margin-bottom: 0.35rem !important;
    line-height: 1.15;
    color: #4a9f22 !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.dashboard-welcome-card .fs-5 {
    font-size: 1.06rem !important;
    line-height: 1.3;
}

.dashboard-cleanup-card .card-body {
    padding: 0.45rem 0.7rem !important;
}

.dashboard-cleanup-card .card-title {
    margin-bottom: 0.2rem !important;
    font-size: 1rem;
}

.dashboard-cleanup-card .card-text {
    font-size: 0.72rem;
    line-height: 1.2;
}

.admin-main-layout .pagination .page-link {
    color: #3f8c1d;
    border-color: #d6e6cc;
}

.admin-main-layout .pagination .page-link:hover {
    color: #ffffff;
    background-color: #4a9f22;
    border-color: #4a9f22;
}

.admin-main-layout .pagination .page-item.active .page-link {
    background-color: #4a9f22;
    border-color: #4a9f22;
    color: #ffffff;
}

.admin-main-layout .pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(74, 159, 34, 0.25);
}

@media (max-width: 1399px) {
    .dashboard-chart-wrap {
        height: clamp(190px, 24vh, 260px);
        min-height: 190px;
        max-height: 260px;
    }
}

@media (max-width: 991px) {
    .dashboard-chart-wrap {
        height: clamp(170px, 22vh, 220px);
        min-height: 170px;
        max-height: 220px;
    }
}

.admin-contact-footer {
    margin: 0;
    background-color: #212529 !important;
    color: #eef2f7;
    border-radius: 0;
    padding: 8px 12px;
    box-shadow: none;
}

.admin-main-layout {
    min-height: 100vh;
}

.admin-main-layout .admin-navbar {
    margin-left: -30px;
    margin-right: -30px;
    width: calc(100% + 60px);
    border-radius: 0 !important;
}

.admin-main-layout .admin-contact-footer {
    margin-top: auto;
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: -30px;
    width: calc(100% + 60px);
}

.admin-contact-footer__title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.admin-contact-footer__text {
    margin: 0 0 4px;
    color: #cfd6df;
    font-size: 0.82rem;
    line-height: 1.25;
}

.admin-contact-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2px 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-contact-footer__list li {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    min-width: 0;
    font-size: 0.9rem;
}

.admin-contact-footer__list i {
    color: #79d23b;
    font-size: 0.92rem;
    margin-top: 0;
}

.admin-contact-footer__list a {
    color: #eef2f7;
    text-decoration: none;
}

.admin-contact-footer__list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .admin-contact-footer__list {
        grid-template-columns: 1fr;
    }
}

.hosting-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.hosting-status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.hosting-status-badge--active {
    background: var(--admin-primary-soft);
    border-color: #9bd188;
    color: #2f6f14;
}

.hosting-status-badge--active .dot {
    background: var(--admin-primary);
}

.hosting-status-badge--dev {
    background: #fff3e6;
    border-color: #ffcb95;
    color: #a86208;
}

.hosting-status-badge--dev .dot {
    background: #f08a24;
}

.hosting-status-badge--expiring {
    background: var(--admin-danger-soft);
    border-color: #f5b8bf;
    color: #9f1f2d;
}

.hosting-status-badge--expiring .dot {
    background: var(--admin-danger);
}

.hosting-status-badge--suspended {
    background: #f1f2f4;
    border-color: #d2d7de;
    color: #49515d;
}

.hosting-status-badge--suspended .dot {
    background: #6b7280;
}

.hosting-expiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.hosting-expiry .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.hosting-expiry--ok .dot {
    background: var(--admin-primary);
}

.hosting-expiry--warn .dot {
    background: #f59e0b;
}

.hosting-expiry--expired .dot {
    background: var(--admin-danger);
}

.hosting-status-tabs {
    border-bottom-color: #d9dee5;
}

.hosting-status-tabs .nav-link {
    color: var(--admin-primary);
    border: 1px solid transparent;
    font-weight: 500;
}

.hosting-status-tabs .nav-link:hover {
    color: var(--admin-primary-dark);
    border-color: #d5e9cc #d5e9cc #d9dee5;
    background: #f4fbf1;
}

.hosting-status-tabs .nav-link.active {
    color: #1f3f11;
    background: var(--admin-primary-soft);
    border-color: #cde7c0 #cde7c0 #d9dee5;
}

.hosting-status-tabs .nav-link[data-status="IN SCADENZA"] {
    color: var(--admin-danger);
}

.hosting-status-tabs .nav-link[data-status="IN SCADENZA"]:hover,
.hosting-status-tabs .nav-link[data-status="IN SCADENZA"].active {
    color: #8c1825;
    background: var(--admin-danger-soft);
    border-color: #f0b5bc #f0b5bc #d9dee5;
}

.hosting-status-tabs .nav-link[data-status="IN SVILUPPO"] {
    color: #c46d10;
}

.hosting-status-tabs .nav-link[data-status="IN SVILUPPO"]:hover,
.hosting-status-tabs .nav-link[data-status="IN SVILUPPO"].active {
    color: #8b4d08;
    background: #fff3e6;
    border-color: #ffd7ad #ffd7ad #d9dee5;
}

.hosting-status-tabs .nav-link[data-status="IN SOSPESO"] {
    color: #6b7280;
}

.hosting-status-tabs .nav-link[data-status="IN SOSPESO"]:hover,
.hosting-status-tabs .nav-link[data-status="IN SOSPESO"].active {
    color: #49515d;
    background: #f1f2f4;
    border-color: #d2d7de #d2d7de #d9dee5;
}

.hosting-expiry--na .dot {
    background: #6b7280;
}
