/* ================================
   Gestionale TicinoBar - Stile Ufficiale
   Palette identica al sito pubblico
================================ */

/* PALETTE */
:root {
    --primary: #f83d19;       /* arancione */
    --secondary: #114a7a;     /* blu */
    --background: #f9ecce;    /* sabbia */
    --text: #10100a;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    background: var(--background);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

/* wrapper per avere footer in fondo */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================
   NAVBAR (uguale al sito)
========================= */

.navbar-admin {
    width: 100%;
    background: var(--secondary);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-left img {
    height: 40px;
    width: auto;
}

.navbar-left span {
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--white);
}

/* menu desktop */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar-right a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.98rem;
    position: relative;
}

.navbar-right a:hover {
    color: var(--primary);
}

/* hamburger per mobile */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.navbar-hamburger span {
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 999px;
}

/* menu mobile */
.navbar-mobile {
    display: none;
    flex-direction: column;
    background: var(--secondary);
    padding: 12px 24px 16px;
    gap: 8px;
}

.navbar-mobile a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

/* responsive navbar */
@media (max-width: 900px) {
    .navbar-right {
        display: none;
    }
    .navbar-hamburger {
        display: flex;
    }
}

/* =========================
   CONTENUTO PRINCIPALE
========================= */

.main-content {
    flex: 1;
    padding: 28px 16px 32px;
}

/* card centrale per dashboard/pagine */
.admin-card {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 26px 30px;
}

.admin-card h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.admin-card p {
    margin-bottom: 16px;
}

.admin-card ul {
    list-style: disc;
    padding-left: 22px;
}

.admin-card a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
}

.admin-card a:hover {
    color: var(--primary);
}

/* =========================
   LOGIN
========================= */

.login-wrapper {
    flex: 1;
    padding: 40px 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 420px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px 30px;
}

.login-card img {
    display: block;
    margin: 0 auto 18px auto;
    height: 76px;
}

.login-card h1 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* bottoni generici */
.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #d63613;
}

/* =========================
   FOOTER
========================= */

.admin-footer {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 14px 10px;
    font-size: 0.9rem;
}
