/* Layout Styles */

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Login Layout
   ============================================ */
.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, #0079bf 0%, #5067c5 100%);
}

.login__card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Main Layout (Header + Content)
   ============================================ */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-content {
    flex: 1;
    overflow: hidden;
}

/* ============================================
   Dashboard Gallery Layout
   ============================================ */
.gallery {
    padding: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.gallery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.gallery__title {
    font-size: var(--font-xxl);
    font-weight: var(--font-bold);
    margin-bottom: 0;
    color: var(--color-text);
}

.gallery__actions {
    display: flex;
    gap: var(--space-sm);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
}

/* ============================================
   Board Layout
   ============================================ */
.board {
    height: calc(100vh - var(--header-height));
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-md);
    background: linear-gradient(135deg, #0079bf 0%, #5067c5 100%);
}

.board__canvas {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    height: 100%;
    padding-bottom: var(--space-md);
}

.board__list-wrapper {
    flex-shrink: 0;
    width: var(--list-width);
}

.board__new-list {
    flex-shrink: 0;
    width: var(--list-width);
}

/* ============================================
   Flex & Grid Utilities
   ============================================ */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
