﻿:root {
    --sidebar-bg: #0f172a;
    --sidebar-border: #1e293b;
    --sidebar-text: #f8fafc;
    --sidebar-muted: rgba(148, 163, 184, 0.85);
    --sidebar-accent: #34d399;
    --sidebar-nav-bg: rgba(15, 118, 110, 0.18);
    --sidebar-nav-hover-bg: rgba(5, 150, 105, 0.35);
    --sidebar-nav-icon: rgba(226, 232, 240, 0.95);
    --sidebar-nav-hover-icon: #bbf7d0;
    --sidebar-nav-active-bg: #047857;
    --sidebar-nav-active-color: #ecfdf5;
    --sidebar-nav-active-icon: #f0fdf4;
    --sidebar-width: 16rem;
    --sidebar-collapsed-width: 4.5rem;
    --layout-gutter: 1.5rem;
}

.app-shell {
    min-height: 100vh;
    width: 100%;
    padding-left: var(--sidebar-width);
    overflow: hidden;
    transition: padding-left 220ms ease;
}

.app-shell__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
    transition: width 220ms ease;
}

.app-shell__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    width: 100%;
}

.app-shell__header {
    position: sticky;
    top: 0;
    z-index: 25;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 6px 18px -12px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
}

.app-shell__content {
    flex: 1;
    min-height: 0;
    overflow: visible;
}

.sidebar {
    background-color: var(--sidebar-bg, #0f172a);
    color: var(--sidebar-text, #f8fafc);
    border-right: 1px solid var(--sidebar-border, #1e293b);
    box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.6);
}

.sidebar__header {
    border-bottom: 1px solid var(--sidebar-border, #1e293b);
}

.sidebar__header-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.sidebar-toggle {
    border: none;
    background: transparent;
    color: var(--sidebar-text, #f8fafc);
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 160ms ease;
}
.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    background-color: rgba(148, 163, 184, 0.25);
}
.sidebar-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.55);
}
.sidebar-toggle__icon {
    display: inline-flex;
    transition: transform 180ms ease;
}
.sidebar-toggle__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sidebar__title {
    color: var(--sidebar-text, #f8fafc);
}

.sidebar__subtitle {
    color: var(--sidebar-accent, #34d399);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.sidebar__section-label {
    color: var(--sidebar-muted, rgba(148, 163, 184, 0.85));
}

.sidebar__user {
    color: var(--sidebar-muted, rgba(148, 163, 184, 0.85));
}

.sidebar__footer {
    border-top: 1px solid var(--sidebar-border, #1e293b);
    color: var(--sidebar-muted, rgba(148, 163, 184, 0.7));
}

.sidebar-nav .btn-nav__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kanban-grid {
    gap: var(--layout-gutter, 1.5rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kanban-grid::-webkit-scrollbar {
    height: 8px;
}

.kanban-grid::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.kanban-grid::-webkit-scrollbar-track {
    background: transparent;
}
[contenteditable="true"]:focus {
    outline: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 0.375rem;
    padding: 0 0.25rem;
}

.kanban-column {
    border-top: 5px solid var(--stage-color, #0ea5e9);
}

.kanban-overview__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kanban-overview__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kanban-overview__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.kanban-overview__value--muted {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.kanban-column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.18));
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kanban-column-meta {
    display: inline-block;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stage-color::-webkit-color-swatch,
.stage-color::-webkit-color-swatch-wrapper {
    border: none;
    padding: 0;
}

.stage-color::-moz-color-swatch {
    border: none;
}

.kanban-column .kanban-card {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.kanban-card-placeholder {
    border: 2px dashed rgba(16, 185, 129, 0.35);
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
}

.kanban-card.dragging {
    opacity: 0.65;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background-color: #059669;
    color: #ffffff;
    font-weight: 600;
    transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    box-shadow: 0 18px 35px -25px rgba(15, 118, 110, 0.65);
    cursor: pointer;
}

.auth-submit:hover {
    background-color: #10b981;
    color: #ffffff;
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.35);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background-color: #10b981;
    color: #ffffff;
    font-weight: 600;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.login-submit:hover {
    background-color: #059669;
    color: #ffffff;
}

.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

body.sidebar-collapsed .app-shell {
    padding-left: var(--sidebar-collapsed-width);
}
body.sidebar-collapsed .app-shell__sidebar,
body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}
body.sidebar-collapsed .sidebar__header {
    justify-content: center;
}
body.sidebar-collapsed .sidebar__header-body {
    display: none;
}
body.sidebar-collapsed .sidebar-nav {
    padding-left: 0;
    padding-right: 0;
}
body.sidebar-collapsed .sidebar-nav .sidebar__section-label {
    display: none;
}
body.sidebar-collapsed .sidebar-nav .btn-nav {
    justify-content: center;
    gap: 0;
}
body.sidebar-collapsed .sidebar-nav .btn-nav__label {
    display: none;
}
body.sidebar-collapsed .sidebar-nav .btn-nav__icon {
    width: 100%;
    justify-content: center;
}
body.sidebar-collapsed .sidebar-toggle__icon {
    transform: rotate(180deg);
}
body.sidebar-collapsed .sidebar__footer {
    display: none;
}
