﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#mainContainer {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: white;
    transition: margin-left 0.3s ease;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.mud-layout {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.mud-main-content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.drawer-open #mainContainer {
    margin-left: 250px; /* espaço do drawer */
}

.drawer-closed #mainContainer {
    margin-left: 56px; /* espaço do ícone do drawer fechado */
}

.mud-drawer-perfil {
    width: 250px;
    background-color: white;
    border-right: 1px solid #e0e0e0;
    height: 100vh;
    padding: 0;
}

.main-content-full {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.perfil-header {
    padding: 0;
    height: 180px;
    position: relative;
}

.perfil-bg-container {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    padding-bottom: 8px;
}

.perfil-avatar {
    position: absolute;
    top: 24px;
    left: 12px;
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.perfil-overlay {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    padding: 10px 6px;
    margin-bottom: -8px;
    text-align: start;
}

.perfil-nome,
.perfil-email {
    color: white;
    font-weight: bold;
    line-height: 1.2;
    word-break: break-word;
}

.mud-avatar.mud-avatar-large {
    width: 85px;
    height: 85px;
    font-size: 1.5rem;
}

.menu-links {
    margin-top: 20px;
}

.mud-appbar,
.mud-main-content {
    padding-left: 0;
}

.body-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.nao-autorizado-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
}

.mensagem-nao-autorizado {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spin-icon {
    animation: spin 1s linear infinite;
}

.nav-link-accent .mud-icon {
    color: var(--cor-accent);
}


.mud-drawer-perfil {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* garante que o footer fique embaixo */
    height: 100%;
}

.drawer-content-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sair-button {
    margin: 12px auto 8px auto;
    width: calc(100% - 24px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #e53935 !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: none;
    padding-left: 16px;
    transition: background-color 0.2s ease;
}

    .sair-button:hover {
        background-color: rgba(229, 57, 53, 0.1); /* leve fundo vermelho */
    }

    .sair-button .mud-icon-root {
        color: #e53935 !important;
    }



.drawer-footer {
    padding: 12px;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .drawer-footer img {
        max-height: 30px;
        width: auto;
    }


@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}