/* Mobile Task App CSS Stylesheet - Light Modern Theme with Dark mode compatibility */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg-main: #f4f3f8;
    --bg-card: #ffffff;
    --border-light: #e6e5ed;
    --text-primary: #1a1a24;
    --text-secondary: #6e6d7e;
    --text-tertiary: #a19fb0;
    
    --accent-purple: #7f66ff;
    --accent-purple-light: rgba(127, 102, 255, 0.08);
    --accent-emerald: #47c16c;
    --accent-emerald-light: rgba(71, 193, 108, 0.08);
    --accent-rose: #ff6b6b;
    --accent-rose-light: rgba(255, 107, 107, 0.08);
    --accent-amber: #ffbe3c;
    --accent-amber-light: rgba(255, 190, 60, 0.08);
    --accent-pink: #f77ee4;
    --accent-pink-light: rgba(247, 126, 228, 0.08);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(127, 102, 255, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Dark Theme overrides when .dark-theme class is attached to body */
body.dark-theme {
    --bg-main: #0b0c10;
    --bg-card: #141622;
    --border-light: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    
    --accent-purple-light: rgba(127, 102, 255, 0.15);
    --accent-emerald-light: rgba(71, 193, 108, 0.15);
    --accent-rose-light: rgba(255, 107, 107, 0.15);
    --accent-amber-light: rgba(255, 190, 60, 0.15);
    --accent-pink-light: rgba(247, 126, 228, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: #eae9f0;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* App Shell - Smartphone frame mockup */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

@media (min-width: 481px) {
    .app-container {
        height: 850px;
        border-radius: 40px;
        border: 10px solid #ffffff;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }
    body.dark-theme .app-container {
        border-color: #222533;
    }
}

/* --- Header & Top Navigation --- */
header {
    padding: 16px 20px 12px;
    background: var(--bg-main);
    z-index: 10;
    transition: background-color 0.3s ease;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-section i {
    color: var(--accent-purple);
}

.logo-section h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* Compact header options (right side) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Small Profile Icon */
.profile-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.profile-btn:active {
    transform: scale(0.9);
}

/* Category Filter Switch - Modern, accessible size for 3 items (Personal, Both, Work) */
.category-switch-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    position: relative;
    padding: 3px;
    width: 140px; /* Comfortable width for 3 icons */
    height: 38px;
    box-shadow: var(--shadow-sm);
    user-select: none;
}

.category-option {
    flex: 1;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    border-radius: 16px;
}

.category-option i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.category-option.active i {
    color: #ffffff;
}

.category-switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 44px;
    height: 30px;
    background: var(--accent-purple);
    border-radius: 16px;
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide locations for 140px switch (3 options) */
.category-switch-container[data-active="personal"] .category-switch-slider {
    transform: translateX(0);
    background: var(--accent-emerald);
}

.category-switch-container[data-active="all"] .category-switch-slider {
    transform: translateX(44px);
    background: var(--accent-purple);
}

.category-switch-container[data-active="work"] .category-switch-slider {
    transform: translateX(88px);
    background: #4f46e5;
}

/* --- View Viewport --- */
.view-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px 110px; /* buffer for bottom floating nav */
    position: relative;
}

.view-panel {
    display: none;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-panel.active {
    display: block;
}

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

/* --- Card Styles --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-card:active {
    transform: scale(0.98);
}

/* --- Dashboard Stats grid --- */
.welcome-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.welcome-section p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 16px;
}

.stat-block-card {
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 110px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.stat-block-card:active {
    transform: scale(0.96);
}

.stat-block-card .icon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-block-card .icon-row i {
    width: 20px;
    height: 20px;
}

.stat-block-card .count-lbl {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 12px;
}

.stat-block-card .title-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
}

/* Card color presets from mockup */
.stat-block-card[data-type="todo"] {
    background-color: #e0d9ff;
    color: #4a3399;
}
body.dark-theme .stat-block-card[data-type="todo"] { background-color: #2b2353; color: #d0c7ff; }

.stat-block-card[data-type="progress"] {
    background-color: #ffeeb3;
    color: #8c5b00;
}
body.dark-theme .stat-block-card[data-type="progress"] { background-color: #3f3214; color: #ffe494; }

.stat-block-card[data-type="review"] {
    background-color: #ffd6f5;
    color: #9c277f;
}
body.dark-theme .stat-block-card[data-type="review"] { background-color: #3b1932; color: #ffb8ed; }

.stat-block-card[data-type="completed"] {
    background-color: #ccf3db;
    color: #0c6b37;
}
body.dark-theme .stat-block-card[data-type="completed"] { background-color: #123822; color: #a4f2c3; }

/* --- Mockup statistics chart card --- */
.chart-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

body.dark-theme line {
    stroke: #252836 !important;
}

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

.chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-legend {
    display: flex;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* --- Scrollable Horizontal Filters --- */
.filter-scroll-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    margin-bottom: 8px;
    scrollbar-width: none;
}

.filter-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.filter-pill.active {
    background: var(--accent-purple);
    color: #ffffff;
    border-color: var(--accent-purple);
    box-shadow: 0 4px 12px rgba(127, 102, 255, 0.2);
}

.filter-pill .badge-count {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
}
body.dark-theme .filter-pill .badge-count {
    background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active .badge-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* --- Section Title Row --- */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title-row h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    font-size: 0.8rem;
    color: var(--accent-purple);
    font-weight: 600;
    cursor: pointer;
}

/* --- Horizon Items --- */
.horizon-sections {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.horizon-sec-tab {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 17px;
    cursor: pointer;
    transition: var(--transition);
}

.horizon-sec-tab.active {
    background: var(--bg-main);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.milestone-item {
    padding: 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.milestone-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.milestone-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.milestone-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Project List Card --- */
.project-card {
    border-left: 5px solid var(--accent-purple);
}

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

.project-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.project-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.project-progress-bar-bg {
    flex: 1;
    height: 8px;
    background: var(--bg-main);
    border-radius: 4px;
    overflow: hidden;
}

.project-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--accent-purple);
    transition: width 0.4s ease;
}

.project-progress-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    width: 32px;
    text-align: right;
}

/* --- Task List Cards --- */
.task-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.task-item:active {
    transform: scale(0.99);
}

.task-checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    cursor: pointer;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: transparent;
    color: #ffffff;
}

.task-item.done .task-checkbox {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

.task-checkbox i {
    width: 14px;
    height: 14px;
    stroke-width: 3.5px;
    display: none;
}

.task-item.done .task-checkbox i {
    display: block;
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.task-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.task-item.done .task-title {
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.task-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Badges styling */
.badge {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-priority-high { background: var(--accent-rose-light); color: var(--accent-rose); }
.badge-priority-medium { background: var(--accent-amber-light); color: var(--accent-amber); }
.badge-priority-low { background: var(--accent-emerald-light); color: var(--accent-emerald); }

.badge-work { background: var(--accent-purple-light); color: var(--accent-purple); }
.badge-personal { background: var(--accent-emerald-light); color: var(--accent-emerald); }

.badge-status {
    background: var(--bg-main);
    color: var(--text-secondary);
    border-radius: 8px;
}
.badge-status-completed {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    margin-bottom: 12px;
    color: var(--text-tertiary);
}

.empty-state h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state p {
    font-size: 0.8rem;
}

/* --- Floating Bottom Tab Navigation --- */
.bottom-nav {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: 72px;
    background: #0f1016;
    border-radius: 36px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 90;
    padding: 0 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    color: #72747d;
    cursor: pointer;
    transition: var(--transition);
}

.nav-tab.active {
    color: #ffffff;
}

.nav-tab i {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.nav-tab.active i {
    transform: scale(1.05);
}

.nav-tab span {
    display: none;
}

/* Central action tab in the middle of floating bar */
.nav-tab-center {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(127, 102, 255, 0.4);
    z-index: 92;
    transition: var(--transition);
    border: none;
    margin: 0 8px;
    flex-shrink: 0;
}

.nav-tab-center i {
    width: 24px;
    height: 24px;
    stroke-width: 3px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab-center.open {
    background: #ff4747;
    box-shadow: 0 4px 16px rgba(255, 71, 71, 0.4);
}

.nav-tab-center.open i {
    transform: rotate(135deg);
}

/* --- Quick Add Sheet Menu --- */
.quick-add-menu {
    position: absolute;
    bottom: 106px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 40px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    z-index: 85;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.32, 0.94, 0.6, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-add-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.quick-add-item {
    width: 100%;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-add-item:hover, .quick-add-item:active {
    background-color: var(--bg-main);
    color: var(--accent-purple);
}

.quick-add-item i {
    width: 18px;
    height: 18px;
    color: var(--accent-purple);
}

/* --- Sliding Bottom Drawer Modal --- */
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-radius: 32px 32px 0 0;
    padding: 16px 20px 30px;
    z-index: 101;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.94, 0.6, 1);
    max-height: 85%;
    overflow-y: auto;
}

.drawer.active {
    transform: translateY(0);
}

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

.drawer-drag-handle {
    width: 40px;
    height: 5px;
    background: var(--text-tertiary);
    border-radius: 3px;
    margin: 0 auto 12px;
    opacity: 0.4;
}

.drawer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.drawer-close {
    background: var(--bg-main);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* --- Form Fields --- */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent-purple);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(127, 102, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Settings Theme Switch Switcher styling */
.toggle-switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.toggle-switch-row label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Button variants */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(127, 102, 255, 0.25);
}

.btn-secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-rose);
    border: 1px solid rgba(255, 107, 107, 0.15);
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* Toast Messages */
.toast-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
    animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

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

/* Category Badge variations */
.badge-external {
    background: var(--accent-amber-light);
    color: var(--accent-amber);
}

/* Avatar Stack & Overlapping Initials Circle styles */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-card);
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.avatar-more {
    background: #eae9f0;
    color: var(--text-secondary);
    font-size: 0.65rem;
}

body.dark-theme .avatar-more {
    background: #252836;
    color: var(--text-secondary);
}

/* Week Calendar Picker Strip styling */
.calendar-strip-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    user-select: none;
}

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

.calendar-title-wrap {
    text-align: center;
}

.calendar-title-wrap h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-title-wrap span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav-btn:active {
    transform: scale(0.9);
}

.calendar-days-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.calendar-day-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 62px;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.calendar-day-col .day-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-day-col .day-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.calendar-day-col.active {
    background: var(--accent-emerald);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(71, 193, 108, 0.25);
}

.calendar-day-col.active .day-num,
.calendar-day-col.active .day-lbl {
    color: #ffffff;
}

.calendar-day-col .day-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-purple);
    position: absolute;
    bottom: 6px;
}

.calendar-day-col.active .day-dot {
    background: #ffffff;
}

/* Custom Search field styling to make it bigger and premium */
.tasks-controls {
    margin-bottom: 20px;
}

.search-bar-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 14px 20px; /* Taller search bar */
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-bar-wrap:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 4px 14px rgba(127, 102, 255, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem; /* Bigger font size */
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.search-bar-wrap i {
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-bar-wrap:focus-within i {
    color: var(--accent-purple);
}

/* Sync Indicator Header styles */
.sync-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8; /* Default Local: grey */
    transition: background-color 0.25s ease;
}

.sync-dot.connected {
    background: #10b981; /* Green */
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.sync-dot.warning {
    background: #f59e0b; /* Orange */
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.sync-dot.offline {
    background: #ef4444; /* Red */
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

/* Today calendar highlight styling */
.calendar-day-col.today {
    border: 1.5px dashed var(--accent-purple);
}

.calendar-day-col.today.active {
    border: 1.5px solid var(--accent-emerald);
}

/* Status Badges */
.badge-status-todo {
    background: #fef3c7;
    color: #d97706;
}

.badge-status-inprogress {
    background: #e0e7ff;
    color: #4f46e5;
}

.badge-status-done {
    background: #d1fae5;
    color: #059669;
}

.badge-status-handedover {
    background: #e0f2fe;
    color: #0284c7;
}

body.dark-theme .badge-status-todo {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
}

body.dark-theme .badge-status-inprogress {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
}

body.dark-theme .badge-status-done {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399;
}

body.dark-theme .badge-status-handedover {
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
}

/* Taskforce Pills styling */
.taskforce-pill {
    transition: var(--transition);
}

.taskforce-pill.active {
    border-color: var(--accent-purple) !important;
    background: var(--accent-purple-light) !important;
    color: var(--accent-purple) !important;
    box-shadow: 0 2px 8px rgba(127, 102, 255, 0.15);
}

body.dark-theme .taskforce-pill {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
}

body.dark-theme .taskforce-pill.active {
    border-color: var(--accent-purple) !important;
    background: rgba(127, 102, 255, 0.2) !important;
    color: #a78bfa !important;
}
