/* App Layout Configuration */

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar container — definido em sidebar.css */
.app-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar, #141619);
    border-right: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Main workspace containing header and content */
.app-workspace {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    min-height: 100vh;
    background-color: var(--bg-main, #181A1F);
    overflow-x: hidden;
}

/* Header container — usa --header-height para linha contínua */
.app-header {
    height: var(--header-height, 72px);
    min-height: var(--header-height, 72px);
    background-color: var(--bg-header, #141619);
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-sizing: border-box;
}

/* Content Area */
.app-content {
    flex-grow: 1;
    padding: 28px 24px;
    background-color: var(--bg-content, #181A1F);
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

@media (min-width: 1280px) {
    .app-content {
        padding: 32px 32px;
    }
}

@media (max-width: 768px) {
    .app-content {
        padding: 20px 16px;
        padding-bottom: 80px;
    }
}
