/* Enterprise Layout Architecture Rebuild */

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Prevent body scroll, handle scroll in content area */
    background-color: var(--bg-color);
}

.enterprise-app {
    display: block; /* Removed flex-row bug */
    width: 100vw;
    height: 100vh;
}

.enterprise-content {
    position: absolute;
    top: 80px; /* Below Navbar */
    left: 280px; /* After Sidebar */
    width: calc(100vw - 280px); /* Strict Remaining Width */
    height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all pages horizontally */
    justify-content: flex-start;
}

.enterprise-app.sidebar-collapsed .enterprise-content {
    left: 80px;
    width: calc(100vw - 80px);
}

.page-content {
    width: 100%; /* Take full width of the padded container */
    max-width: 1600px; /* Prevent it from looking ridiculous on ultra-wide, but mostly let it span */
    display: flex;
    flex-direction: column;
}

/* Card overrides */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card.hover-elevate:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    cursor: pointer;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    transition: opacity var(--transition-normal);
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}
