/* Layout Styles */

.app-container {
    display: none;
}

.app-container.active {
    display: block;
}

.header {
    max-width: 1200px;
    margin: 0 auto 20px;
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 100;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.header-row-single {
    justify-content: space-between;
}

.header-row-top {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-center-group {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    min-width: 0;
}

.header-quote {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s;
    max-width: 400px;
    overflow: hidden;
    flex: 1;
}

.header-quote:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.header-quote-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.header-quote-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

.header-quote-author {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-row-bottom {
    justify-content: center;
}

/* Header Menu */
.header-menu-container {
    position: relative;
}

.header-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.header-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-menu-btn .menu-icon {
    font-size: 1rem;
}

.header-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(20, 25, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    min-width: 200px;
    display: none;
    z-index: 9999;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    animation: menuFadeIn 0.2s ease;
    max-height: 70vh;
    overflow-y: auto;
}

.header-menu.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    min-width: 500px;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    margin-bottom: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.menu-section-wide {
    grid-column: span 3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 8px;
}

.menu-quote-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 8px;
}

.menu-quote-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.menu-quote-item:last-child {
    margin-bottom: 0;
}

.menu-quote-content {
    flex: 1;
    min-width: 0;
}

.menu-quote-text {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.4;
    word-wrap: break-word;
}

.menu-quote-author {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.add-task-form {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.add-task-form input {
    flex: 1;
    width: 100%;
    padding: 12px 18px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.add-task-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.add-task-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(120, 180, 255, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    border-color: rgba(120, 180, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.add-task-form input:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    margin-right: 4px;
    white-space: nowrap;
}

.app-title .title-good {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-title .title-scale {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-widgets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.user-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 180px);
}

.column {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 300px;
    height: auto;
    max-height: calc(100vh - 200px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.column:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
}

.column:nth-child(1) { animation-delay: 0.1s; }
.column:nth-child(2) { animation-delay: 0.2s; }
.column:nth-child(3) { animation-delay: 0.3s; }

.column.drag-over {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 100%);
    box-shadow:
        0 0 0 2px rgba(120, 180, 255, 0.6),
        0 16px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: scale(1.01);
}

.column.focused {
    box-shadow:
        0 0 0 2px rgba(120, 180, 255, 0.6),
        0 12px 40px rgba(0, 0, 0, 0.2);
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.column:hover .column-header {
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.column-input {
    margin-bottom: 16px;
}

.column-input input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.column-input input:focus {
    outline: none;
    border-color: #78b4ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.column-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Task Input Row - To Do column */
.task-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.task-input-main {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.task-input-main:focus {
    outline: none;
    border-color: #78b4ff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.task-input-main::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.task-expand-btn {
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-expand-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.task-expand-btn.active {
    background: rgba(120, 180, 255, 0.2);
    border-color: rgba(120, 180, 255, 0.4);
    color: #78b4ff;
}

.task-input-extras {
    display: none;
    gap: 8px;
    margin-top: 8px;
}

.task-input-extras.active {
    display: flex;
}

.task-input-date {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
    cursor: pointer;
}

.task-input-date:focus {
    outline: none;
    border-color: #78b4ff;
    background: rgba(255, 255, 255, 0.1);
}

.task-input-date::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.task-input-tags {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
}

.task-input-tags:focus {
    outline: none;
    border-color: #78b4ff;
    background: rgba(255, 255, 255, 0.1);
}

.task-input-tags::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.column-title {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.column-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.column-title .count-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 4px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.count-badge.bump {
    animation: countBump 0.3s ease;
}

.column:nth-child(1) .dot { background: #78b4ff; }
.column:nth-child(2) .dot { background: #ff9500; }
.column:nth-child(3) .dot { background: #34c759; }

/* Below Fold Section */
.below-fold-section {
    margin-top: 40px;
    padding: 0 24px 48px;
}

/* Responsive */
@media (max-width: 900px) {
    .board {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .header {
        gap: 12px;
    }

    .column {
        min-height: 300px;
    }
}
