/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    color: #1f2937;
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
}

#app {
    height: 100vh;
    overflow: hidden;
}

.screen {
    height: 100vh;
    overflow: hidden;
}

#main-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 18px;
    opacity: 0.9;
}

.login-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-signin-btn:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    opacity: 0.8;
}

/* App Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Global Filters in Header */
.global-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

.global-filters select,
.global-filters input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    background: white;
    cursor: pointer;
}

.global-filters select:focus,
.global-filters input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.global-filters input[type="date"] {
    width: 130px;
}

/* Filter Icon Buttons */
.filter-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.filter-icon-wrapper {
    position: relative;
}

.filter-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    position: relative;
}

.filter-icon-btn svg {
    width: 16px;
    height: 16px;
}

.filter-icon-btn:hover {
    background: #e2e8f0;
    color: #667eea;
}

.filter-icon-btn.active {
    background: #eef2ff;
    color: #667eea;
}

.filter-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

.filter-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.filter-clear-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.filter-clear-btn svg {
    width: 16px;
    height: 16px;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.filter-dropdown-item {
    padding: 10px 14px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-dropdown-item:hover {
    background: #f8fafc;
}

.filter-dropdown-item.active {
    background: #eef2ff;
    color: #667eea;
    font-weight: 500;
}

.filter-dropdown-item.active::before {
    content: '✓';
    font-size: 11px;
    margin-right: 4px;
}

.custom-date-picker {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.header-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f1f5f9;
    color: #667eea;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-btn:hover {
    background: #f1f5f9;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    overflow: hidden;
}

.dropdown button {
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.2s;
}

.dropdown button:hover {
    background: #f1f5f9;
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

/* Sidebar Fixed Top Section */
.sidebar-fixed {
    flex-shrink: 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

/* Sidebar Scrollable Section */
.sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar Header with Icon Buttons */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 4px;
}

.sidebar-icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-icon-btn:hover {
    background: #e2e8f0;
    color: #667eea;
}

.sidebar-icon-btn.active {
    background: #667eea;
    color: white;
}

/* Refresh button container with time label */
.refresh-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.refresh-time-label {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 500;
    min-height: 12px;
    line-height: 12px;
}

.sidebar-section {
    margin-bottom: 12px;
    padding-top: 8px;
}

.sidebar-section h3 {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 16px;
    margin-bottom: 6px;
}

/* Quick Links */
.quick-links-list {
    list-style: none;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    position: relative;
}

.quick-link-item:hover {
    background: #f1f5f9;
}

.quick-link-item.active {
    background: #dbeafe;
    color: #667eea;
    font-weight: 500;
}

.quick-link-icon {
    font-size: 14px;
    margin-right: 8px;
}

.quick-link-text {
    flex: 1;
    font-size: 13px;
}

.quick-link-count {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 8px;
}

.quick-link-count.overdue {
    background: #fef2f2;
    color: #ef4444;
}

.quick-link-item .popup-open-btn {
    opacity: 0;
    transition: opacity 0.2s;
}

.quick-link-item:hover .popup-open-btn {
    opacity: 1;
}

/* Custom Views */
.custom-views-list {
    list-style: none;
}

.custom-view-item {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 13px;
}

.custom-view-item:hover {
    background: #f1f5f9;
}

.custom-view-item.active {
    background: #dbeafe;
    color: #667eea;
    font-weight: 500;
}

.custom-view-icon {
    font-size: 14px;
    margin-right: 8px;
}

.custom-view-name {
    flex: 1;
}

.custom-view-actions {
    opacity: 0;
    display: flex;
    gap: 4px;
}

.custom-view-item:hover .custom-view-actions {
    opacity: 1;
}

.custom-view-action-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    border-radius: 3px;
}

.custom-view-action-btn:hover {
    background: #e2e8f0;
    color: #667eea;
}

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

.section-header h3 {
    padding: 0;
    margin: 0;
}

.add-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.add-btn:hover {
    background: #f1f5f9;
    color: #667eea;
}

.view-list, .lists-list, .labels-list {
    list-style: none;
}

.view-item, .list-item, .label-item {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    position: relative;
}

.view-item:hover, .list-item:hover, .label-item:hover {
    background: #f1f5f9;
}

.view-item.active, .list-item.active {
    background: #dbeafe;
    color: #667eea;
    font-weight: 500;
}

.sublist-item.active, .section-item.active {
    background: #dbeafe;
    color: #667eea;
    font-weight: 500;
}

.view-icon {
    margin-right: 10px;
    font-size: 16px;
}

.list-item {
    padding-left: 20px;
}

.lists-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 8px 16px;
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.lists-group-header h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* Group Header Buttons Container */
.group-header-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Join, Add, and Create Group List Buttons */
.join-group-list-btn,
.add-group-list-btn,
.create-group-list-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.join-group-list-btn:hover,
.add-group-list-btn:hover,
.create-group-list-btn:hover {
    background: #f1f5f9;
    color: #667eea;
}

/* Group List Refresh Time - Smaller and subtle */
.group-refresh-time {
    font-size: 9px;
    color: #94a3b8;
    margin-right: 4px;
    font-weight: 500;
}

/* Group Refresh Button - Match main refresh button style */
.refresh-shared-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    color: #64748b;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.refresh-shared-btn:hover {
    background: #f1f5f9;
    color: #667eea;
}

/* Pending changes indicator - green button */
.refresh-shared-btn.pending-changes {
    color: #10b981;
    background: #d1fae5;
}

.refresh-shared-btn.pending-changes:hover {
    background: #a7f3d0;
    color: #059669;
}

/* Upload changes button - green when pending changes */
#upload-changes-btn.pending-changes {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

#upload-changes-btn.pending-changes:hover {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.list-hash {
    font-size: 16px;
    color: #94a3b8;
    margin-right: 8px;
    font-weight: 500;
}

.list-name {
    flex: 1;
    font-size: 14px;
}

.list-count {
    font-size: 12px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    transition: opacity 0.2s;
}

.list-item:hover .list-count,
.sublist-item:hover .list-count {
    opacity: 0;
    pointer-events: none;
}

.sublist-indent {
    width: 24px;
    display: inline-block;
}

.label-item {
    padding-left: 20px;
}

.label-item.active {
    background: #dbeafe;
    color: #667eea;
    font-weight: 500;
}

.label-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 10px;
}

/* Task Area */
.task-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    min-height: 0;
}

.task-header {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 16px 24px;
}

.tasks-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 24px 24px 24px;
    min-height: 0;
}

/* Kanban Column Layout */
.tasks-container.column-layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.task-group.column {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
    background: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.task-group.column .task-group-header {
    flex-shrink: 0;
    padding: 12px 16px;
    background: transparent;
    border-radius: 0;
    border-bottom: none;
}

.task-group.column .task-group-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    min-height: 0;
}

.task-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.primary-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background: #f8f9fe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.filter-controls {
    display: flex;
    gap: 8px;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #374151;
    cursor: pointer;
}

.filter-controls select:focus {
    outline: none;
    border-color: #667eea;
}

/* Column layout for section grouping - additional styles */
.tasks-container.column-layout {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.task-group {
    border-bottom: none;
}

.task-group-content {
    background: transparent;
}

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

.task-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: transparent;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 5;
}

.task-group.column .task-group-header {
    position: static;
    border-radius: 0;
}

.task-group-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-group-count {
    display: none;
}

.task-group-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.task-group-action-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    transition: all 0.2s ease;
}

.task-group-action-btn:hover {
    background: #e2e8f0;
    color: #374151;
}

/* Section three-dot menu button */
.section-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    color: #64748b;
    opacity: 0;
    transition: opacity 0.2s;
    position: relative;
}

.task-group-header:hover .section-menu-btn {
    opacity: 1;
}

.section-menu-btn:hover {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Section context dropdown */
.section-context-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 160px;
    overflow: hidden;
    display: none;
    margin-top: 4px;
}

.section-context-dropdown.active {
    display: block;
}

.section-context-dropdown button {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-context-dropdown button:hover {
    background: #f1f5f9;
}

.section-context-dropdown button.danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.section-context-dropdown hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.task-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    margin: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.task-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.task-item:first-child {
    margin-top: 12px;
}

.task-item:last-child {
    margin-bottom: 12px;
}

.task-checkbox {
    margin-right: 10px;
    margin-top: 0;
    flex-shrink: 0;
}

.task-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    appearance: none;
    -webkit-appearance: none;
    background: white;
    transition: all 0.2s ease;
}

.task-checkbox input:checked {
    background: #667eea;
    border-color: #667eea;
}

.task-checkbox input:checked::after {
    content: '✓';
    display: block;
    text-align: center;
    color: white;
    font-size: 11px;
    line-height: 14px;
}

.task-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.task-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.task-title.completed {
    text-decoration: line-through;
    color: #94a3b8;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
    flex-wrap: wrap;
    max-height: 40px;
    overflow: hidden;
}

.task-due-date {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.task-due-date.overdue {
    color: #ef4444;
}

.task-location {
    color: #94a3b8;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.task-labels {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
}

.task-label {
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.task-actions-menu {
    position: absolute;
    top: 4px;
    right: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-item:hover .task-actions-menu {
    opacity: 1;
}

.task-action-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #64748b;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
}

.task-action-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

/* Subtask Styles */
.subtask-indicator {
    display: inline-block;
    margin-right: 6px;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    vertical-align: middle;
}

.task-item.is-subtask {
    /* No special styling - same size as regular tasks */
}

.task-item {
    position: relative;
}

.subtask-count-badge {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #667eea;
    color: white;
    font-size: 9px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subtask-count-badge:hover {
    background: #5568d3;
    transform: scale(1.1);
}

/* Subtask Tree in Edit Modal */
.subtask-tree-section {
    margin-top: 20px;
}

.section-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0 16px 0;
}

.subtask-tree-header {
    margin-bottom: 12px;
}

.subtask-tree-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subtask-tree {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
}

.task-tree-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-tree-item:hover {
    background: #f3f4f6;
    border-color: #cbd5e1;
}

.task-tree-item.current-task {
    background: #dbeafe;
    border-color: #667eea;
    cursor: default;
}

.task-tree-item.task-tree-subtask {
    margin-left: 24px;
}

.task-tree-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.task-tree-title {
    flex: 1;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.task-tree-count {
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
}

/* Subtasks Modal (keeping for backwards compatibility) */
.subtasks-parent-task,
.subtasks-list {
    padding: 12px 0;
}

.subtask-parent-header,
.subtask-list-header {
    padding: 8px 24px;
    margin-bottom: 8px;
}

.subtask-parent-header h4,
.subtask-list-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subtasks-parent-task .task-item {
    background: #f8fafc;
    border: 2px solid #667eea;
}

.no-subtasks-message {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

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

.form-row .form-group {
    flex: 1;
}

.labels-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.label-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.label-checkbox:hover {
    border-color: #667eea;
}

.label-checkbox.selected {
    background: #eff6ff;
    border-color: #667eea;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cancel-btn {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #f1f5f9;
}

.save-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.save-btn:hover {
    background: #5a67d8;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
}

.toast {
    background: #1f2937;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #374151;
}

.empty-state p {
    font-size: 14px;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Refresh Button Styles */
.refresh-btn .refresh-icon {
    transition: transform 0.3s ease;
}

.refresh-btn.spinning .refresh-icon {
    animation: spin 1s linear infinite;
}

/* Ensure SVG displays inline properly */
.refresh-btn .refresh-icon {
    display: inline-block;
}

/* Share Functionality Styles */
.header-buttons {
    display: flex;
    gap: 4px;
}

.share-code-section {
    margin-bottom: 20px;
}

.share-code-input {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.share-code-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    background: #f9fafb;
}

.copy-btn {
    padding: 10px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #5a67d8;
}

.help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.connected-users-section label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.users-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

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

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

.user-email {
    font-size: 14px;
    color: #374151;
}

.user-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.user-badge.owner {
    background: #fef3c7;
    color: #92400e;
}

.user-badge.pending {
    background: #fecaca;
    color: #991b1b;
}

.user-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.user-badge.synced {
    background: #dbeafe;
    color: #1e40af;
}

.user-actions {
    display: flex;
    gap: 4px;
}

.approve-btn, .reject-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.approve-btn {
    background: #10b981;
    color: white;
}

.approve-btn:hover {
    background: #059669;
}

.reject-btn {
    background: #ef4444;
    color: white;
}

.reject-btn:hover {
    background: #dc2626;
}

.danger-btn {
    background: #ef4444;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.danger-btn:hover {
    background: #dc2626;
}

.list-item .share-indicator {
    font-size: 12px;
    margin-left: 4px;
}

.list-item.shared {
    position: relative;
}

.list-item {
    position: relative;
}

.list-item .list-actions {
    display: flex;
    gap: 4px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.list-item:hover .list-actions {
    opacity: 1;
}

.list-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    font-size: 14px;
    opacity: 0.7;
}

.list-action-btn:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Three-dot menu button */
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    color: #64748b;
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    right: 16px;
    margin-left: auto;
}

.list-item:hover .menu-btn,
.sublist-item:hover .menu-btn {
    opacity: 1;
}

.menu-btn:hover {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Context menu dropdown */
.context-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 160px;
    overflow: hidden;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.context-dropdown.active {
    display: block;
}

.context-dropdown button {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-dropdown button:hover {
    background: #f1f5f9;
}

.context-dropdown button.danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.context-dropdown hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* Add List Dropdown */
.add-list-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 180px;
    overflow: hidden;
}

.add-list-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.2s;
}

.add-list-dropdown button:hover {
    background: #f3f4f6;
}

.add-list-dropdown button:first-child {
    border-bottom: 1px solid #e5e7eb;
}

.section-header {
    position: relative;
}

/* Popup Open Button (N) */
.popup-open-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 4px;
    cursor: pointer;
    margin-right: 6px;
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.popup-open-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.view-item {
    display: flex;
    align-items: center;
}

.list-item .popup-open-btn {
    margin-right: 4px;
}

.no-users {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    min-width: 180px;
    overflow: hidden;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-menu-item:hover {
    background: #f1f5f9;
}

.context-menu-item.danger {
    color: #ef4444;
}

.context-menu-item.danger:hover {
    background: #fef2f2;
}

.context-menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Search Modal */
.modal-content.modal-small {
    max-width: 400px;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 12px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-results-list .task-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.search-results-list .task-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.search-result-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: #f1f5f9;
    border-color: #667eea;
}

.search-result-title {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: #64748b;
}

.search-no-results {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
}

/* Label Management Modal */
.label-create-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.label-create-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.label-create-form input[type="color"] {
    width: 50px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
}

.label-create-form .primary-btn {
    padding: 8px 16px;
}

.labels-management-list {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.label-management-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    gap: 8px;
}

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

.label-management-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
}

.label-management-name {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
}

.label-management-name:focus {
    border-color: #667eea;
    outline: none;
}

.label-management-actions {
    display: flex;
    gap: 4px;
}

.label-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 16px;
}

.label-delete-btn:hover {
    background: #fef2f2;
}

/* Custom View Modal */
.modal-large .modal-content {
    max-width: 700px;
}

.filter-conditions {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    min-height: 60px;
}

.filter-condition {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.filter-condition:last-child {
    margin-bottom: 0;
}

.filter-condition select,
.filter-condition input {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
}

.filter-condition select {
    min-width: 120px;
}

.filter-condition input {
    flex: 1;
    min-width: 150px;
}

.remove-condition-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

.remove-condition-btn:hover {
    background: #fef2f2;
    border-radius: 4px;
}

.add-condition-btn {
    background: none;
    border: 1px dashed #667eea;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.add-condition-btn:hover {
    background: #eff6ff;
}

/* Condition Row with AND/OR operators */
.condition-row {
    margin-bottom: 8px;
}

.condition-row:last-child {
    margin-bottom: 0;
}

.condition-logic {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.condition-logic .logic-operator {
    padding: 4px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
}

.condition-logic .logic-operator:hover {
    background: #e0e7ff;
}

/* Condition Groups */
.condition-group {
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 12px;
    background: #f8f9ff;
    margin: 8px 0;
}

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

.group-label {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.remove-group-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-group-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.group-conditions {
    margin: 8px 0;
}

.group-condition-row {
    margin-bottom: 8px;
}

.group-condition-row:last-child {
    margin-bottom: 0;
}

.group-logic-operator {
    padding: 4px 12px;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    cursor: pointer;
}

.group-logic-operator:hover {
    background: #ddd6fe;
}

.group-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.add-group-condition-btn {
    padding: 6px 12px;
    background: white;
    border: 1px dashed #667eea;
    border-radius: 4px;
    color: #667eea;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.add-group-condition-btn:hover {
    background: #eff6ff;
    border-style: solid;
}

/* Hierarchical List Display */
.list-item-wrapper {
    position: relative;
}

.sublist-item {
    font-size: 13px;
    position: relative;
}

.section-item {
    padding-left: 48px !important;
    font-size: 12px;
    color: #6b7280;
}

.hierarchy-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    color: #64748b;
    font-size: 10px;
    margin-left: 4px;
    margin-right: 0;
}

.hierarchy-toggle:hover {
    color: #667eea;
}

.collapsed .hierarchy-children {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        /* Keep sidebar visible, hide task area on very small screens */
        flex-direction: column;
    }

    .sidebar {
        /* Sidebar stays visible and takes priority */
        width: 100%;
        max-width: none;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        max-height: 50vh;
        overflow-y: auto;
    }

    .task-area {
        /* Task area below sidebar on small screens */
        flex: 1;
        min-height: 200px;
    }

    .header-center {
        display: none;
    }

    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .task-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* For split view / narrow window - sidebar always visible */
@media (max-width: 500px) {
    .task-area {
        /* On very narrow screens, hide task area - user will use popup */
        display: none;
    }

    .sidebar {
        max-height: 100%;
        border-bottom: none;
    }
}

/* Drag and Drop Styles */
.task-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-group.column.drag-over {
    background: #f0f9ff;
    border: 2px dashed #667eea;
    border-radius: 8px;
}

.task-group.column.drag-over .task-group-header {
    background: #e0f2fe;
}

/* Task Context Menu */
.task-context-menu {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 6px 0;
    z-index: 10000;
    animation: menuFadeIn 0.15s ease;
}

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

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: background 0.1s ease;
}

.context-menu-item:hover {
    background: #f3f4f6;
}

.context-menu-item span {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.context-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Per-column add task button */
.column-add-task-btn {
    width: auto;
    padding: 8px 16px;
    margin: 12px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.column-add-task-btn:hover {
    color: #667eea;
    background: #f8fafc;
}

/* Date Picker Popup */
.date-picker-popup {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    min-width: 260px;
    max-width: 260px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 4px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.date-picker-item {
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: white;
    color: #202124;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease;
    text-align: left;
}

.date-picker-item:hover {
    background: #f1f3f4;
}

.date-option-label {
    font-size: 13px;
    color: #202124;
    line-height: 18px;
}

.date-option-date {
    font-size: 11px;
    color: #5f6368;
    line-height: 16px;
}

.date-picker-divider {
    height: 1px;
    background: #e8eaed;
    margin: 4px 0;
}

.calendar-container {
    padding: 6px 10px;
}

.calendar-month {
    margin-bottom: 10px;
}

.calendar-month:last-child {
    margin-bottom: 0;
}

.calendar-header {
    font-size: 12px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day-header {
    font-size: 10px;
    font-weight: 500;
    color: #5f6368;
    text-align: center;
    padding: 2px;
}

.calendar-day {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    color: #202124;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.calendar-day:hover:not(.calendar-day-empty):not(.calendar-day-past) {
    background: #f1f3f4;
}

.calendar-day-today {
    background: #1a73e8;
    color: white;
    font-weight: 600;
}

.calendar-day-today:hover {
    background: #1967d2;
}

.calendar-day-past {
    color: #dadce0;
    cursor: default;
}

.calendar-day-empty {
    cursor: default;
}

.task-due-clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.task-due-clickable:hover {
    color: #3b82f6;
}
