/* =========================
   Profilo utente
========================= */

/* Pulsante profilo in alto a destra */
.profilo-wrapper {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
    margin-left: 240px; /* offset for fixed sidebar to ensure it doesn't overlap */
}

.profilo-btn {
    background: #004aad;
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}
.profilo-btn:hover { background: #0066ff; }

/* Menu a discesa */
.profilo-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease-in-out;
}

.profilo-menu button {
    background: none;
    border: none;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
    width: 180px;
}
.profilo-menu button:hover { background: #f0f0f0; }
.hidden { display: none; }

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

/* Profilo Card */
.profilo-card {
    background: #f8f9fa;
    border-left: 5px solid #0066cc;
    padding: 20px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}
.profilo-card h4 { margin-bottom: 15px; color: #003366; }

.profilo-card form {
    display: flex;
    flex-direction: column;
}

.profilo-card label {
    margin-top: 10px;
    font-weight: bold;
    color: #222;
}

.profilo-card input {
    margin-top: 5px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #e9ecef;
    color: #333;
    font-size: 1rem;
}
.profilo-card input:disabled { background-color: #e9ecef; }

.profilo-card .btn-modifica {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.profilo-card .btn-modifica:hover { background-color: #004aad; }
