﻿.maestro-page {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    padding: var(--maestro-space-lg);
    background: var(--maestro-bg);
    box-sizing: border-box;
}

.maestro-page-centered {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--maestro-space-lg);
    background: var(--maestro-bg);
}

.maestro-container {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.maestro-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 82px;
    padding: 0 2rem;
    background: #fff;
    border-bottom: 1px solid var(--maestro-border);
}

.maestro-topbar-brand img {
    height: 60px;
    width: auto;
}

.maestro-topbar-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.maestro-user-info {
    min-width: 0;
}

.maestro-user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maestro-language {
    width: 70px;
    height: 40px;
    border: 1px solid var(--maestro-border);
    border-radius: var(--maestro-radius);
    background: var(--maestro-surface);
    color: var(--maestro-text);
    font-size: .9rem;
    cursor: pointer;
}

    .maestro-language:hover {
        border-color: var(--maestro-primary);
    }

.maestro-user-menu {
    position: relative;
}

.maestro-user-button {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .9rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: var(--maestro-radius);
    cursor: pointer;
    transition: .2s;
}

    .maestro-user-button:hover {
        background: #f7f9fc;
        border-color: var(--maestro-border);
    }

.maestro-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.maestro-user-name {
    font-weight: 600;
    line-height: 1.2;
}

.maestro-user-company {
    font-size: .8rem;
    color: var(--maestro-text-light);
}

.maestro-user-button .bi-person-circle {
    font-size: 1.7rem;
    color: var(--maestro-primary);
}

.maestro-user-chevron {
    transition: transform .2s;
}

.maestro-user-menu.open .maestro-user-chevron {
    transform: rotate(180deg);
}

.maestro-user-dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--maestro-border);
    border-radius: var(--maestro-radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    padding: .5rem;
    display: none;
    z-index: 1000;
}

.maestro-user-menu.open .maestro-user-dropdown {
    display: block;
}

.maestro-user-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    border: none;
    outline: none;
    background: transparent;
    border-radius: .5rem;
    cursor: pointer;
    color: var(--maestro-text);
    text-decoration: none;
    transition: background .2s;
}

    .maestro-user-dropdown-item:hover {
        background: #f5f7fb;
    }

.maestro-user-button {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .9rem;
    border: none;
    background: transparent;
    border-radius: var(--maestro-radius);
    cursor: pointer;
    transition: background .2s;
}

    .maestro-user-button:hover {
        background: #f5f7fb;
    }

    .maestro-user-button i:first-child {
        font-size: 1.4rem;
        color: var(--maestro-primary);
    }

.maestro-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--maestro-primary);
    color: white;
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.maestro-divider {
    height: 1px;
    margin: 1rem 0;
    background: var(--maestro-border);
}

.maestro-language-submenu {
    display: none;
    margin: .25rem 0 .5rem 2.5rem;
}

    .maestro-language-submenu.open {
        display: block;
    }

.language-item i {
    width: 20px;
    opacity: 0;
    color: var(--maestro-primary);
}

.language-item.active i {
    opacity: 1;
}

.toast {
    z-index: 11000;
}

@media (max-width: 768px) {

    .maestro-topbar {
        padding: 0 1rem;
    }

    .maestro-topbar-brand img {
        height: 48px;
    }
}
