/* style.css */

/* Design Tokens - Google Tasks Specification */
:root {
    /* Color Palette */
    --primary: #1a73e8;
    --primary-active: #1557b0;
    --primary-disabled: #f1f3f4;
    --ink: #202124;
    --body: #3c4043;
    --muted: #5f6368;
    --muted-soft: #80868b;
    --hairline: #dadce0;
    --hairline-soft: #f1f3f4;
    --canvas: #f8f9fa;
    --surface-soft: #f1f3f4;
    --surface-card: #ffffff;
    --surface-strong: #e8eaed;
    --surface-dark: #202124;
    --surface-dark-elevated: #303134;
    --on-primary: #ffffff;
    --on-dark: #ffffff;
    --on-dark-soft: #e8eaed;
    --brand-accent: #1a73e8;
    --success: #137333;
    --warning: #b06000;
    --error: #c5221f;
    
    /* Badges / Pastels */
    --badge-orange: #fb923c;
    --badge-pink: #ec4899;
    --badge-violet: #8b5cf6;
    --badge-emerald: #34d399;

    /* Border Radius */
    --rounded-xs: 4px;
    --rounded-sm: 8px;
    --rounded-md: 12px;
    --rounded-lg: 16px;
    --rounded-xl: 24px;
    --rounded-pill: 9999px;
    --rounded-full: 9999px;

    /* Spacing Scale */
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-section: 96px;
}

/* Reset and Core Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--canvas);
    color: var(--body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Simulated Cal Sans for headlines */
h1, h2, h3, h4, .display-font {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.04em; /* Simulates condensed geometric Cal Sans */
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    border-right: 1px solid var(--hairline);
    background-color: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-center: center;
    gap: 8px;
    margin-bottom: 24px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: var(--rounded-full);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
}

/* Goal Tracker Widget */
.goal-widget {
    background-color: var(--surface-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 16px;
    margin-bottom: 24px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.goal-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.goal-title-display {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goal-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.goal-progress-bar {
    height: 6px;
    background-color: var(--surface-strong);
    border-radius: var(--rounded-pill);
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--rounded-pill);
    transition: width 0.4s ease;
}

.goal-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

/* Navigation Links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-group-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 8px;
    margin-bottom: 4px;
}

.btn-add-project {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-sm);
}

.btn-add-project:hover {
    background-color: var(--surface-soft);
    color: var(--ink);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--body);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--rounded-md);
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: var(--surface-soft);
    color: var(--ink);
}

.nav-link.active {
    background-color: var(--surface-card);
    color: var(--ink);
    font-weight: 600;
}

.nav-icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.nav-link.active .nav-icon {
    color: var(--primary);
}

.badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    background-color: var(--surface-strong);
    color: var(--ink);
    padding: 2px 8px;
    border-radius: var(--rounded-pill);
}

/* Sidebar Projects List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: var(--rounded-md);
    color: var(--body);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.project-item:hover {
    background-color: var(--surface-soft);
}

.project-item.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.project-color-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--rounded-full);
    flex-shrink: 0;
}

.project-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Panel */
.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--canvas);
    overflow-y: auto;
}

.main-header {
    height: 80px;
    border-bottom: 1px solid var(--hairline);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.view-title {
    font-size: 24px;
    font-weight: 600;
}

.current-date {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.content-viewport {
    padding: 40px;
    flex: 1;
    max-width: 1200px;
    width: 100%;
}

/* Buttons - Cal.com styling */
.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--rounded-md);
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.btn-primary:hover {
    background-color: var(--primary-active);
}

.btn-primary:disabled {
    background-color: var(--primary-disabled);
    color: var(--muted);
    cursor: not-allowed;
}

.btn-secondary {
    background-color: var(--canvas);
    color: var(--ink);
    border: 1px solid var(--hairline);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--rounded-md);
    cursor: pointer;
    transition: background-color 0.2s;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--surface-soft);
}

.btn-danger-link {
    background: transparent;
    border: none;
    color: var(--error);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn-danger-link:hover {
    text-decoration: underline;
}

.btn-text-link {
    background: transparent;
    border: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.btn-text-link:hover {
    text-decoration: underline;
}

/* Cards */
.feature-card {
    background-color: var(--surface-card);
    border-radius: var(--rounded-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.product-mockup-card {
    background-color: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Today's Progress Bar */
.progress-card {
    background-color: var(--surface-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 20px;
    margin-bottom: 24px;
}

.progress-card-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.progress-stats {
    font-weight: 500;
    color: var(--muted);
}

.progress-track {
    height: 8px;
    background-color: var(--surface-strong);
    border-radius: var(--rounded-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--success);
    border-radius: var(--rounded-pill);
    transition: width 0.4s ease;
}

/* Quick Add Task Form */
.quick-add-container {
    margin-bottom: 32px;
}

.quick-add-form {
    display: flex;
    gap: 12px;
}

.quick-add-form input {
    flex: 1;
    height: 44px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 0 16px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--canvas);
    transition: border-color 0.2s;
}

.quick-add-form input:focus {
    outline: none;
    border-color: var(--ink);
}

.btn-quick-add {
    background-color: var(--primary);
    color: var(--on-primary);
    border: none;
    font-weight: 600;
    padding: 0 20px;
    border-radius: var(--rounded-md);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-quick-add:hover {
    background-color: var(--primary-active);
}

.recurrence-preview {
    margin-top: 8px;
    font-size: 12px;
    color: var(--brand-accent);
    font-weight: 500;
    min-height: 18px;
}

/* Task Item Components */
.radar-lists {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.list-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hairline-soft);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.task-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    padding: 8px 8px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: background-color 0.2s, opacity 0.3s;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item:hover {
    background-color: #f8f9fa;
    box-shadow: none;
}

/* Custom Checkbox */
.task-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.task-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #5f6368;
    border-radius: 50%;
    transition: background-color 0.2s, border-color 0.2s;
}

.task-checkbox-container:hover input ~ .checkmark {
    border-color: #1a73e8;
    background-color: rgba(26, 115, 232, 0.04);
}

.task-checkbox-container input:checked ~ .checkmark {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.task-checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.task-checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Task Info and Content */
.task-details {
    flex: 1;
    min-width: 0;
}

.task-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.task-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    word-break: break-word;
}

.task-desc {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

/* Difficulty & Meta Badges */
.task-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.task-meta-extra {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--rounded-pill);
    background-color: var(--surface-soft);
    color: var(--muted);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-badge.importance-high {
    background-color: #fef2f2;
    color: var(--error);
    border-color: #fca5a5;
}

.meta-badge.importance-medium {
    background-color: #fffbeb;
    color: var(--warning);
    border-color: #fde68a;
}

.meta-badge.importance-low {
    background-color: #f0fdf4;
    color: var(--success);
    border-color: #bbf7d0;
}

.meta-badge.due-today {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-color: #c2d7fa;
}

.meta-badge.due-overdue {
    background-color: #fce8e6;
    color: var(--error);
    border-color: #fad2cf;
}

.meta-badge.due-future {
    background-color: #f1f3f4;
    color: #5f6368;
    border-color: #dadce0;
}

.meta-badge.pomo-time {
    background-color: #f3e8ff;
    color: var(--badge-violet);
    border-color: #e9d5ff;
}

.meta-badge.recurrence-tag {
    background-color: #f1f3f4;
    color: #5f6368;
    border-color: #dadce0;
}

.badge-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* Task Operations */
.task-actions-btn-group {
    display: flex;
    gap: 4px;
    margin-left: 12px;
    flex-shrink: 0;
}

.btn-task-icon {
    background: transparent;
    border: none;
    color: var(--muted-soft);
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.btn-task-icon:hover {
    background-color: var(--surface-soft);
    color: var(--ink);
}

/* Satisfying Completion Slide-out / Gray-out animation */
.task-item.completing {
    animation: completeSlide 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.task-item.completing .task-title {
    text-decoration: line-through;
    color: var(--muted-soft);
    transition: color 0.3s ease;
}

@keyframes completeSlide {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    40% {
        transform: translateX(30px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
        height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
        border: none;
    }
}

.task-item.completed-grayed {
    opacity: 0.5;
    background-color: var(--surface-soft);
}

.task-item.completed-grayed .task-title {
    text-decoration: line-through;
    color: var(--muted-soft);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--canvas);
    border-radius: var(--rounded-xl);
    width: 100%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--ink);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.flex-1 {
    flex: 1;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    height: 40px;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-md);
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--canvas);
}

textarea {
    height: 80px;
    padding: 8px 12px;
    resize: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ink);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

/* Project Accent Color Picker */
.color-picker-grid {
    display: flex;
    gap: 12px;
}

.color-picker-option {
    width: 32px;
    height: 32px;
    border-radius: var(--rounded-full);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.color-picker-option.selected::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--canvas);
    border-radius: var(--rounded-full);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Template tasks rows */
.template-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.template-tasks-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--hairline-soft);
    border-radius: var(--rounded-md);
}

.tmpl-task-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tmpl-task-row input {
    height: 36px;
}

.tmpl-task-row select {
    height: 36px;
    width: 120px;
}

.btn-remove-row {
    background: transparent;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

/* Filter Pill Wrapper */
.filter-pill-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Signature Cal.com Nav Pill Group */
.nav-pill-group {
    background-color: var(--surface-soft);
    padding: 4px;
    border-radius: var(--rounded-pill);
    display: inline-flex;
    gap: 2px;
    border: 1px solid var(--hairline-soft);
}

.nav-pill-group.sm {
    padding: 2px;
}

.category-tab {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--rounded-pill);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.nav-pill-group.sm .category-tab {
    padding: 4px 10px;
    font-size: 11px;
}

.category-tab.active {
    background-color: var(--canvas);
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Floating Pomodoro Widget */
.pomodoro-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background-color: var(--canvas);
    border: 1px solid var(--ink);
    border-radius: var(--rounded-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 900;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.pomodoro-widget.minimized {
    width: 140px;
    height: 48px;
    border-radius: var(--rounded-pill);
    border: 1px solid var(--hairline);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pomo-header {
    background-color: var(--surface-soft);
    border-bottom: 1px solid var(--hairline);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.pomodoro-widget.minimized .pomo-header {
    background-color: var(--canvas);
    border-bottom: none;
    padding: 11px 16px;
    height: 100%;
}

.pomo-title {
    font-weight: 600;
    font-size: 13px;
}

.icon-pomo-size {
    width: 14px;
    height: 14px;
    color: var(--muted);
}

.pomodoro-widget.minimized .pomo-body {
    display: none;
}

.pomo-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pomo-task-info {
    text-align: center;
    width: 100%;
}

.pomo-task-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted-soft);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
}

.pomo-task-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.pomo-timer-display {
    font-size: 40px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.pomo-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.pomo-btn {
    flex: 1;
    font-size: 13px;
}

.pomo-timer-selection {
    display: flex;
    gap: 6px;
    width: 100%;
    border-top: 1px solid var(--hairline-soft);
    padding-top: 12px;
    justify-content: center;
}

.pomo-time-tab {
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    padding: 4px 8px;
    border-radius: var(--rounded-sm);
    cursor: pointer;
}

.pomo-time-tab.active {
    background-color: var(--surface-soft);
    color: var(--ink);
}

.btn-pomo-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sentiment Emoji Popup */
.sentiment-modal {
    background-color: rgba(17, 17, 17, 0.2);
}

.sentiment-modal-content {
    background-color: var(--canvas);
    border-radius: var(--rounded-xl);
    width: 100%;
    max-width: 380px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--ink);
}

.sentiment-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sentiment-modal-task {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sentiment-emojis {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-emoji {
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    flex: 1;
    padding: 12px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-emoji:hover {
    border-color: var(--ink);
    background-color: var(--surface-soft);
    transform: translateY(-2px);
}

.emoji {
    font-size: 28px;
}

.emoji-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

/* Templates Library Styles */
.templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.library-title {
    font-size: 20px;
    font-weight: 600;
}

.section-description {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.template-card {
    background-color: var(--surface-card);
    border-radius: var(--rounded-lg);
    padding: 24px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.template-card:hover {
    background-color: var(--canvas);
    border-color: var(--hairline);
}

.template-info {
    margin-bottom: 16px;
}

.template-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.template-desc {
    font-size: 13px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-count-badge {
    font-size: 11px;
    font-weight: 600;
    background-color: var(--surface-strong);
    padding: 2px 8px;
    border-radius: var(--rounded-pill);
    color: var(--body);
}

/* Analytics & Dashboard Charts layout */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 4px;
}

.contribution-chart-container {
    overflow-x: auto;
    width: 100%;
}

.analytics-charts-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-container {
    position: relative;
    width: 100%;
    margin-top: 8px;
}

.chart-container.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 10px 0;
}

.sentiment-donut-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
}

.sentiment-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-color: var(--canvas);
    border-radius: var(--rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-emoji {
    font-size: 32px;
}

.sentiment-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--rounded-full);
}

/* Project Share settings Panel styling */
.share-settings-panel {
    background-color: var(--surface-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--rounded-lg);
    padding: 16px;
    margin-bottom: 24px;
    animation: fadeIn 0.2s ease-out;
}

.share-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.share-link-input-row {
    display: flex;
    gap: 8px;
}

.share-link-input-row input {
    flex: 1;
    background-color: var(--canvas);
    color: var(--muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Projects Board Grid Layout (2 columns per row) */
.board-columns-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    overflow-y: auto;
    padding-bottom: 24px;
    align-items: flex-start;
    height: calc(100vh - 160px);
}

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

.project-column {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 20px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.1);
}

.project-column.dragging {
    opacity: 0.4;
    border: 2px dashed var(--brand-accent) !important;
}

.project-column.drag-over {
    border: 2px dashed var(--brand-accent) !important;
    background-color: var(--surface-soft) !important;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.column-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.column-color-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--rounded-full);
    flex-shrink: 0;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-column-actions {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-sm);
}

.btn-column-actions:hover {
    background-color: var(--surface-soft);
    color: var(--ink);
}

.column-add-task-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-accent);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 16px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: var(--rounded-md);
    width: 100%;
    transition: background-color 0.2s;
    border: 1px dashed var(--hairline);
    flex-shrink: 0;
}

.column-add-task-btn:hover {
    background-color: var(--surface-soft);
    border-color: var(--muted-soft);
}

.inline-add-task-container {
    margin-bottom: 16px;
    border: 1px solid var(--ink);
    border-radius: var(--rounded-md);
    padding: 8px;
    background-color: var(--canvas);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.inline-add-task-input {
    border: none !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 13px !important;
}

.inline-add-task-input:focus {
    box-shadow: none !important;
}

.inline-add-task-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.inline-add-task-actions button {
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
}

.column-task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.completed-collapsible-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #5f6368;
    padding: 12px 8px;
    cursor: pointer;
    border-top: 1px solid #f1f3f4;
    margin-top: 16px;
    flex-shrink: 0;
    gap: 8px;
}

.completed-collapsible-content {
    display: none;
    flex-direction: column;
    gap: 0px;
    margin-top: 4px;
    padding-bottom: 4px;
}

.completed-collapsible-content.show {
    display: flex;
}

/* Sidebar checklist changes */
.project-sidebar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.project-sidebar-checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Utilities */
.gap-xs {
    gap: 8px;
}
.align-center {
    align-items: center;
}
.flex-row {
    flex-direction: row;
}

/* Responsive Behavior */
@media (max-width: 1024px) {
    .analytics-charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--hairline);
        padding: 16px;
    }
    
    .main-header {
        padding: 0 20px;
        height: 70px;
    }
    
    .content-viewport {
        padding: 20px;
    }
    
    .quick-add-form {
        flex-direction: column;
    }
    
    .btn-quick-add {
        height: 40px;
    }
}

/* Sidebar Google-style Create Button */
.sidebar-create-container {
    padding: 0 16px;
    margin: 16px 0 24px 0;
}

.btn-google-create {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #3c4043;
    border: none;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    height: 48px;
    padding: 0 24px 0 16px;
    border-radius: 24px;
    cursor: pointer;
    transition: box-shadow 0.2s, background-color 0.2s;
}

.btn-google-create:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 8px 12px 6px rgba(60,64,67,0.15);
    color: #1a73e8;
}
