/* AutoAgentix styles - minimal shell to match existing feature layouts */

:root {
    --aa-header-height: 72px;
    --aa-sidebar-width: 260px;
}

.layout-wrapper {
    position: relative;
    min-height: 100vh;
}

.aa-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--aa-header-height);
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
}

.aa-header-title h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.aa-header-title p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.aa-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aa-content-wrapper {
    margin-top: var(--aa-header-height);
    min-height: calc(100vh - var(--aa-header-height));
}

.aa-app-shell {
    display: grid;
    grid-template-columns: var(--aa-sidebar-width) minmax(0, 1fr);
    min-height: calc(100vh - var(--aa-header-height));
    width: 100vw;
    overflow: hidden;
}

.aa-app-shell.app-shell.chat-open {
    grid-template-columns: var(--aa-sidebar-width) minmax(0, 1fr) var(--chat-panel-width, 420px);
}

.aa-app-shell .agentix-chat-container {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    overflow: hidden;
    grid-column: 3;
}

.aa-sidebar {
    grid-column: 1;
    padding: 1.25rem 1rem;
    background: var(--bs-dark);
    color: var(--bs-white);
    overflow-y: auto;
}

.aa-main {
    grid-column: 2;
    padding: 2rem;
    min-width: 0;
    overflow-y: auto;
    background: var(--bs-body-bg);
}

.aa-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.75rem;
}

.aa-logo img {
    width: 28px;
    height: 28px;
}

.aa-logo-text {
    font-weight: 600;
}

.aa-product {
    font-size: 0.875rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.aa-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aa-navlink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.aa-navlink:hover {
    background: rgba(255, 255, 255, 0.1);
}

.aa-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0.75rem 0;
}

.aa-dashboard h2 {
    margin-bottom: 0.5rem;
}
