.user-dashboard {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background-color: #1a1a1a;
    border-left: 2px solid #9c27b0;
    z-index: 1000;
    transform: translateX(calc(100% - 50px));
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.user-dashboard.open {
    transform: translateX(0);
}

.dashboard-toggle {
    position: absolute;
    left: 0;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: #9c27b0;
    border-radius: 50% 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    transform: translateX(-20px);
    transition: background-color 0.3s;
}

.dashboard-toggle:hover {
    background-color: #7b1fa2;
}

.dashboard-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.profile-pic-container {
    position: relative;
    margin-bottom: 1rem;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #2e1a47;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 3px solid #9c27b0;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-pic-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: #9c27b0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
}

.change-pic-btn:hover {
    background-color: #7b1fa2;
}

.user-profile h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.user-profile p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0;
}

.dashboard-menu {
    flex-grow: 1;
}

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

.dashboard-menu li {
    margin-bottom: 1rem;
}

.dashboard-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.dashboard-menu a:hover {
    color: #9c27b0;
}

.logout-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid #9c27b0;
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: auto;
}

.logout-btn:hover {
    background-color: rgba(156, 39, 176, 0.2);
}

/* Garantir que o navbar permaneça centralizado mesmo com o dashboard */
header {
    position: relative;
}

nav {
    position: relative;
    z-index: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .user-dashboard {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .user-dashboard {
        width: 100%;
        transform: translateX(100%);
    }
    
    .user-dashboard.open {
        transform: translateX(0);
    }
    
    .dashboard-toggle {
        transform: translateX(-40px);
    }
}
