/* Stile base per il profilo */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    width: 250px;
    transition: transform 0.3s ease-in-out;
}

.sidebar .logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.sidebar .menu {
    list-style: none;
    padding: 0;
}

.sidebar .menu li {
    margin: 15px 0;
}

.sidebar .menu li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.sidebar .menu li a:hover,
.sidebar .menu li a.active {
    background-color: #34495e;
}

.main-content {
    flex: 1;
    padding: 30px;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    background-color: #27ae60;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #219150;
}

.success {
    background-color: #e0f7e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.profile-img,
.badge-img {
    display: block;
    margin-top: 10px;
    margin-bottom: 15px;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
}

.password-form {
    margin-top: 40px;
}

.card-accesso {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-accesso .badge {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.card-accesso p {
    margin: 6px 0;
    font-size: 14px;
}

/* QR code placeholder */
.qrcode-placeholder {
    width: 100px;
    height: 100px;
    margin: 10px auto;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    background-color: #f8f8f8;
}

/* Responsive */
.hamburger,
.close-sidebar {
    display: none;
    position: fixed;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    color: #2c3e50;
    text-decoration: none;
}

.hamburger {
    left: 15px;
}

.close-sidebar {
    right: 15px;
    display: none;
}

.close-sidebar.visible {
    display: block;
}

@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100%;
        z-index: 999;
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        padding-top: 60px;
    }

    .hamburger {
        display: block;
    }
}