/* src/ui/styles/_layout.css */
#app {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-sidebar);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal);
    z-index: 100;
    flex-shrink: 0;
}

.app-sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-light);
    text-decoration: none;
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-icon {
    width: 24px;
    text-align: center;
    margin-right: var(--space-3);
}

.app-sidebar.collapsed .nav-text {
    display: none;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.app-header {
    height: var(--header-height);
    background-color: var(--color-header);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    box-shadow: var(--shadow-sm);
    z-index: 90;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Workspace */
.app-workspace {
    flex: 1;
    background-color: var(--color-bg);
    padding: var(--space-6);
    overflow-y: auto;
}

.workspace-card {
    background-color: var(--color-workspace);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    min-height: 100%;
}

/* Action Dropdown Menu & Icon Alignment */
.action-menu {
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    padding: 4px 0 !important;
}

.action-menu > div,
.action-menu .d-flex {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 14px !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    transition: background-color 0.15s ease !important;
}

.action-menu > div:hover,
.action-menu .d-flex:hover {
    background-color: var(--color-bg) !important;
}

.action-menu i,
.action-menu .fa-solid,
.action-menu .fa-regular,
.action-menu .fa-brands,
.action-menu svg {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    font-size: 0.9rem !important;
}
