/* ============================================================
   MODERN RESTYLE — LV_USERS (level 1) — frontend only
   The brand yellow/amber (#f8b12c) is kept and used as accent.
   To revert: delete this file and the <link> line marked
   "MODERN-RESTYLE-LV1" in the lv_users pages.
   ============================================================ */

/* ---------- Base / page background ---------- */
body {
    background: #f7f4ec;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content-page {
    background: transparent;
}

/* ---------- Page title / questionnaire header ---------- */
.page-title-box {
    background: transparent;
    box-shadow: none;
}

h1.page-title {
    background: linear-gradient(135deg, #fffdf7 0%, #fff6e2 100%) !important;
    border: 1px solid #f2e2ba !important;
    border-left: 6px solid #f8b12c !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(150, 110, 20, 0.12) !important;
    color: #3d3524;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1.page-title i {
    color: #f8b12c !important;
    margin-right: 8px;
}

h2.header-title {
    color: #3d3524;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
}

h2.header-title i {
    color: #f8b12c;
}

p.sub-header {
    color: #8a7c5c;
}

/* ---------- Cards (questions, answers) ---------- */
.card,
.card-box {
    border: 1px solid #ede4cf !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(80, 60, 10, 0.07) !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover,
.card-box:hover {
    box-shadow: 0 14px 36px rgba(80, 60, 10, 0.11) !important;
}

.card-title {
    color: #3d3524;
    font-weight: 600;
}

.card-text {
    color: #3d3524;
}

hr {
    border-top: 1px solid #f0e6cd;
}

cite.bg-light {
    display: inline-block;
    background: linear-gradient(135deg, #fffdf7 0%, #fff6e2 100%) !important;
    border: 1px solid #f2e2ba;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 8px 22px rgba(150, 110, 20, 0.1);
}

/* ---------- Labels & inputs ---------- */
label {
    color: #6f6244;
    font-weight: 600;
    font-size: 0.82rem;
}

label i {
    color: #f8b12c !important;
}

.form-control {
    border: 1px solid #e7dcc2;
    border-radius: 10px;
    background-color: #fffdf8;
    color: #3d3524;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus {
    border-color: #f8b12c;
    background-color: #fff;
    box-shadow: 0 0 0 0.18rem rgba(248, 177, 44, 0.22);
}

.form-control[readonly] {
    background-color: #fdf6e7;
    border-style: dashed;
}

textarea.form-control {
    border-radius: 12px;
    min-height: 90px;
}

/* ---------- Radio / checkbox answers (amber when selected) ---------- */
.custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, #f8b12c 0%, #ef9d16 100%);
    border-color: #ef9d16;
    box-shadow: 0 2px 8px rgba(248, 177, 44, 0.4);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.18rem rgba(248, 177, 44, 0.25);
}

.custom-control-label {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: #3d3524;
    transition: color 0.15s ease;
}

.custom-control-label:hover {
    color: #b57d0e;
}

/* ---------- Progress bar ---------- */
.progress {
    height: 10px;
    border-radius: 999px;
    background-color: #f0e8d5;
    box-shadow: inset 0 1px 3px rgba(80, 60, 10, 0.08);
}

.progress .progress-bar {
    background: linear-gradient(90deg, #f8b12c 0%, #ef9d16 100%);
    border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn-info,
.btn-primary {
    background: linear-gradient(135deg, #f8b12c 0%, #ef9d16 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.4px;
    border-radius: 10px !important;
    box-shadow: 0 5px 16px rgba(248, 177, 44, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-info:hover,
.btn-primary:hover,
.btn-info:focus,
.btn-primary:focus {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(248, 177, 44, 0.45);
    color: #fff !important;
}

/* Success / danger keep their colours, modernised shape */
.btn-success,
.btn-danger,
.btn-dark {
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 12px rgba(60, 50, 20, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-success:hover,
.btn-danger:hover,
.btn-dark:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(60, 50, 20, 0.28);
}

.btn-rounded {
    border-radius: 999px !important;
}

table input[type="submit"],
input[type="submit"].btn {
    background: linear-gradient(135deg, #f8b12c 0%, #ef9d16 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(248, 177, 44, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

table input[type="submit"]:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(248, 177, 44, 0.45);
}

/* ---------- Tables / DataTables (risposte.php) ---------- */
.table {
    color: #3d3524;
}

.table thead th {
    background: #3d3524;
    color: #ffe9bd;
    border: none !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.table-bordered,
.table-bordered td {
    border-color: #f1e8d4 !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fdfaf2;
}

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

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

.table td {
    vertical-align: middle;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e7dcc2;
    border-radius: 999px;
    background-color: #fffdf8;
    padding: 5px 14px;
    margin-left: 8px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #f8b12c;
    box-shadow: 0 0 0 0.18rem rgba(248, 177, 44, 0.22);
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info {
    color: #6f6244;
}

.dt-buttons .btn,
.dt-buttons .dt-button {
    background: #fff !important;
    border: 1px solid #f0ce8a !important;
    color: #b57d0e !important;
    font-weight: 600;
    border-radius: 999px !important;
    padding: 4px 16px;
    margin-right: 6px;
    box-shadow: 0 2px 8px rgba(150, 110, 20, 0.08);
    transition: background 0.15s ease, color 0.15s ease;
}

.dt-buttons .btn:hover,
.dt-buttons .dt-button:hover {
    background: linear-gradient(135deg, #f8b12c 0%, #ef9d16 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.dataTables_wrapper .paginate_button,
.page-item .page-link {
    border-radius: 8px !important;
    color: #b57d0e !important;
    border: none;
    margin: 0 2px;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #f8b12c 0%, #ef9d16 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(248, 177, 44, 0.4);
}

.page-link:hover {
    background-color: #fff4dc;
    color: #b57d0e;
}

/* ---------- Modals (question popups) ---------- */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(40, 30, 5, 0.25);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #fffdf7 0%, #fff6e2 100%);
    border-bottom: 1px solid #f2e2ba;
}

.modal-header .modal-title {
    color: #3d3524;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #f0e6cd;
}

/* ---------- Login / registration cards ---------- */
.account-card-box .card,
.account-pages .card {
    border-radius: 18px !important;
    box-shadow: 0 18px 50px rgba(50, 40, 10, 0.18) !important;
}

/* ---------- Misc icon accents ---------- */
.text-info {
    color: #f8b12c !important;
}

/* ---------- Scrollbar (subtle, modern) ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3eee2;
}

::-webkit-scrollbar-thumb {
    background: #e3cfa0;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f8b12c;
}
