/* Schedule View (Time Grid) */
.schedule-container {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    height: auto; /* Full height expansion */
    min-height: 500px;
}

.schedule-header {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    background: var(--bg-card); /* Use solid background instead of semi-transparent glass */
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Dark mode adjustment for header */
[data-theme="dark"] .schedule-header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.time-gutter-header {
    width: clamp(50px, 8vw, 60px);
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.day-header {
    flex: 1;
    min-width: 0; /* Allow shrinking below 120px */
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}
[data-theme="dark"] .day-header {
    border-right: 1px solid var(--border-color);
}

.day-header:last-child { border-right: none; }

.schedule-body {
    flex: 1;
    /* overflow-y: auto; Removed for full height */
    display: flex;
    flex-direction: row; /* Ensure row direction */
    position: relative;
}

.time-gutter {
    width: clamp(50px, 8vw, 60px);
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    background: var(--bg-card); /* Solid background */
    position: sticky;
    left: 0;
    z-index: 10;
}
[data-theme="dark"] .time-gutter {
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
}

.current-time-line {
    position: absolute;
    left: 0; /* Cover full width including gutter */
    right: 0;
    height: 2px; /* Thicker */
    background: transparent; /* Remove solid background */
    border-top: 2px dashed rgba(239, 68, 68, 0.6); /* Dashed red line */
    z-index: 15;
    pointer-events: none;
}

.current-time-line::before {
    /* Removed the dot as per user request for simpler look */
    content: none;
}

.time-slot {
    height: 60px; /* 1 hour height */
    position: relative;
    border-bottom: 1px solid transparent; /* Just for spacing */
}

.time-label {
    position: absolute;
    top: -10px; /* Center on line */
    right: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.day-column {
    flex: 1;
    min-width: 120px; /* Match day-header min-width to ensure alignment */
    position: relative;
    border-right: 1px solid var(--border-color);
    /* Hour lines */
    background-image: linear-gradient(to bottom, var(--border-light) 1px, transparent 1px);
    background-size: 100% 60px; /* Match time-slot height */
}
.day-column:last-child { border-right: none; }

.schedule-event {
    position: absolute;
    left: 4px;
    right: 4px; /* Slight padding */
    border-radius: 4px;
    padding: 2px 6px; /* Reduced vertical padding */
    font-size: 0.8rem;
    background: var(--bg-card);
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.1s, z-index 0.1s;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically for short tasks */
    line-height: 1.2; /* Tighter line height */
}

.event-image {
    width: 100%;
    height: auto;
    max-height: 40px; /* Limit height */
    object-fit: cover;
    border-radius: 2px;
    margin-top: 2px;
    display: block;
}

.event-title {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem; /* Slightly smaller to fit better */
}

.event-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Priority Colors for Schedule - Eisenhower Matrix */
/* Use background-image for tinting over solid background to prevent alpha stacking darkening */

/* I: Urgent & Important - Red */
.schedule-event.quadrant-1, .schedule-event.priority-high { 
    border-left-color: #ef4444; 
    background-color: var(--bg-card); /* Solid base */
    background-image: linear-gradient(rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.15)); /* Tint */
}

/* II: Not Urgent & Important - Yellow/Orange */
.schedule-event.quadrant-2, .schedule-event.priority-medium { 
    border-left-color: #f59e0b; 
    background-color: var(--bg-card);
    background-image: linear-gradient(rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.15));
}

/* III: Urgent & Unimportant - Blue */
.schedule-event.quadrant-3 { 
    border-left-color: #3b82f6; 
    background-color: var(--bg-card);
    background-image: linear-gradient(rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.15));
}

/* IV: Not Urgent & Unimportant - Green */
.schedule-event.quadrant-4, .schedule-event.priority-low { 
    border-left-color: #10b981; 
    background-color: var(--bg-card);
    background-image: linear-gradient(rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.15));
}

/* Merged tasks styling */
.schedule-event.merged-top {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 1px solid rgba(0,0,0,0.05); /* Very subtle separator instead of full border */
}

.schedule-event.merged-bottom {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    box-shadow: none; /* Remove bottom shadow to merge with next */
}

.schedule-event.completed { opacity: 0.6; text-decoration: line-through; filter: grayscale(1); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .smart-dashboard {
        padding: 0.5rem; /* Reduce padding to save space */
    }
    
    .time-gutter-header, .time-gutter {
        width: 40px; /* Reduced from 45px to save space */
    }
    
    .time-label {
        font-size: 0.7rem;
        right: 2px;
    }

    /* Fit 3 columns on mobile screens without scrolling */
    .day-header, .day-column {
        min-width: 0; /* Allow shrinking */
        flex: 1;
        width: 0; /* Force flex distribution */
    }
    
    .day-date {
        font-size: 0.8rem !important; /* Smaller text on mobile */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .schedule-container {
        overflow-x: hidden; /* Prevent horizontal scroll */
        width: 100%;
    }
}

/* Dashboard Mode for Chat Container */
.chat-messages.dashboard-mode {
    padding: 0 !important;
    overflow: hidden !important; /* Let dashboard handle scrolling */
    background: transparent !important; /* Allow background art to show through */
}

/* Main Container */
.smart-dashboard {
    width: 100%;
    height: 100%; /* Fill container */
    min-height: 0; /* Allow shrinking */
    margin: 0;
    padding: 1rem; /* Removed bottom padding here */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    box-sizing: border-box;
    position: relative;
    background: transparent;
    overflow: hidden; /* Prevent spillover */
}

/* Schedule View (Time Grid) */
.schedule-container {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden; /* Prevent vertical scroll on container */
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill dashboard */
    min-height: 0;
}

.schedule-content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 100px; /* Reduced from 160px to avoid excessive space */
}

.smart-dashboard::after {
    display: none; /* Move noise to chat-messages */
}

/* Feather Background Texture - Artistically Enhanced */
.feather-bg {
    position: fixed;
    right: -2%;
    bottom: 5%; /* Moved up from -5% to 5% to avoid input box block */
    font-size: 35rem; /* Massive size for abstract look */
    color: var(--primary);
    opacity: 0.18; /* Increased from 0.12 to 0.18 for better visibility */
    transform: rotate(-20deg);
    pointer-events: none;
    z-index: 0;
    filter: blur(1px); /* Reduced blur further for clarity */
    mix-blend-mode: multiply; /* Better blending with light mode */
    transition: all 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Floating Animation */
    animation: featherFloat 10s ease-in-out infinite alternate;
}

@keyframes featherFloat {
    0% { transform: rotate(-20deg) translateY(0) scale(1); }
    100% { transform: rotate(-15deg) translateY(-20px) scale(1.02); }
}

[data-theme="dark"] .feather-bg,
[data-theme="default"] .feather-bg {
    mix-blend-mode: screen; /* Lighten for dark mode */
    opacity: 0.1; /* Increased from 0.03 */
    filter: blur(4px); /* Reduced blur from 12px */
}

/* Hover effect */
.smart-dashboard:hover .feather-bg {
    opacity: 0.06;
    filter: blur(4px); /* Sharpen slightly on focus */
}

/* Shared Section Styles */
.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    /* Diary Paper Texture Effect - Subtle Lines */
    background-image: linear-gradient(var(--bg-card) 96%, rgba(0,0,0,0.015) 100%);
    background-size: 100% 2rem;
}

/* Drag & Drop Visuals */
.schedule-event.dragging-clone {
    position: fixed;
    z-index: 9999;
    opacity: 0.9;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: scale(1.05);
    pointer-events: none; /* Let events pass through to detect drop zones */
    border: 2px solid var(--primary);
}

.day-column.drag-over {
    background-color: rgba(var(--primary-rgb), 0.1);
    border: 2px dashed var(--primary);
}

.dashboard-section:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Section 1: Now (The Moment) */
.section-now {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 220px;
    border-top: 4px solid var(--primary);
}

.now-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.now-greeting h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.now-date {
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.4rem;
    display: block;
    opacity: 0.8;
}

.note-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-darker);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.note-controls:hover {
    border-color: var(--border-color);
    background: var(--bg-card);
}

.note-date-display {
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    min-width: 85px;
    text-align: center;
}

.now-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Feather Background Texture */
.feather-bg {
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 14rem;
    color: var(--primary);
    opacity: 0.06;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-now:hover .feather-bg {
    transform: rotate(-5deg) scale(1.1);
    opacity: 0.08;
}

/* Section 2: Context (Grid Layout) */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.section-context {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--primary);
    opacity: 0.8;
}

.list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    max-height: 300px;
    padding-right: 4px; /* Space for scrollbar */
}

/* Scrollbar styling for list container */
.list-container::-webkit-scrollbar {
    width: 4px;
}
.list-container::-webkit-scrollbar-track {
    background: transparent;
}
.list-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* Section 3: Explore (Discovery) */
.section-explore {
    padding: 1rem 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.section-explore:hover {
    transform: none;
    box-shadow: none;
}

.section-explore .section-header {
    border-bottom: none;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.section-explore .section-title {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

.explore-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.explore-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.explore-btn:hover::before {
    opacity: 1;
}

.explore-btn i {
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.8;
    transition: transform 0.3s;
}

.explore-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

.explore-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.explore-btn:hover i {
    transform: scale(1.1);
}

/* List Items (Shared) */
.dashboard-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-darker); /* Distinct from card bg */
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
}

.dashboard-list-item:hover {
    background: var(--bg-card);
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 2;
}

/* Specific Item Styles */
.anchor-item {
    border-left: 3px solid transparent;
}
.anchor-item:hover {
    border-left-color: var(--primary);
}

.anchor-number {
    font-family: 'SF Mono', monospace;
    color: var(--primary);
    font-weight: bold;
    opacity: 0.5;
    font-size: 1rem;
    min-width: 1.5rem;
}

.list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.anchor-text, .todo-title {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.anchor-desc, .todo-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-item {
    border-left: 3px solid transparent;
}

.todo-item.completed {
    opacity: 0.7;
}

.todo-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    background: var(--bg-card);
}

.todo-item:hover .todo-checkbox {
    border-color: var(--primary);
}

.todo-item.completed .todo-checkbox {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-size: 0.8rem;
}

.task-item-content {
    flex: 1;
    min-width: 0;
}

/* Action Buttons */
.action-btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn-icon:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.anchor-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

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

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: auto; /* Push to bottom */
    padding-top: 0.8rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Note Textarea (Preserved Diary Style) */
.note-textarea {
    width: 100%;
    min-height: 120px;
    background: repeating-linear-gradient(
        transparent,
        transparent 1.8rem,
        rgba(0, 0, 0, 0.03) 1.8rem,
        rgba(0, 0, 0, 0.03) 1.85rem
    );
    background-attachment: local;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: var(--text-primary);
    resize: none;
    font-size: 1rem;
    line-height: 1.85rem; /* Match gradient spacing */
    outline: none;
    padding: 0.5rem;
    padding-top: 0.1rem; /* Align text with lines */
    transition: all 0.2s;
    overflow-y: auto;
    font-family: inherit;
}

/* Dark mode adjustment for note lines */
[data-theme="dark"] .note-textarea,
[data-theme="ocean"] .note-textarea {
    background: repeating-linear-gradient(
        transparent,
        transparent 1.8rem,
        rgba(255, 255, 255, 0.05) 1.8rem,
        rgba(255, 255, 255, 0.05) 1.85rem
    );
}

.note-textarea:hover {
    background-color: rgba(0,0,0,0.01);
}

.note-textarea:focus {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.note-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    font-style: italic;
}

.note-status {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    height: 1.2rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Empty States */
.empty-state-mini {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
    height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .smart-dashboard {
        padding: 0.5rem;
        gap: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .explore-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feather-bg {
        font-size: 10rem;
        right: -10px;
        bottom: -30px;
    }
    
    .now-greeting h2 {
        font-size: 1.5rem;
    }
    
    .section-now {
        min-height: auto;
    }
    
    .section-context {
        min-height: auto;
    }
    
    .list-container {
        max-height: 250px;
    }
}

/* Custom Model Selector (Restored) */
.custom-model-selector {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
}

.selected-model {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.4rem;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.selected-model:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.selected-model i {
    font-size: 0.6rem;
    margin-top: 2px;
    opacity: 0.7;
}

.model-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    padding: 0.3rem;
    width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    animation: fadeIn 0.15s ease;
}

.model-options.show {
    display: flex;
}

.model-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
}

.model-option:hover {
    background: var(--bg-darker);
}

.model-option.active {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.model-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.model-option.active .model-icon {
    background: var(--primary);
    color: white;
}

.model-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

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

.model-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Input Modal Styles (Restored) */
.input-modal-body {
    gap: 1rem;
}

.input-modal-body input {
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

/* Year View */
.year-view {
    display: grid;
    /* Use dynamic columns based on container width */
    grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 30vw, 320px), 1fr));
    gap: clamp(0.75rem, 2vw, 1.5rem);
    padding: clamp(0.75rem, 2vw, 1.5rem);
    max-width: 100%; /* Remove max-width limitation for true responsiveness */
    margin: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Specific adjustment for mobile to ensure at least 1 column or 2 columns if space allows */
@media (max-width: 480px) {
    .year-view {
        grid-template-columns: 1fr;
        padding: 0.5rem;
        gap: 0.75rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .year-view {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.75rem;
    }
}

.year-month-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

/* Event Chip */
.event-chip {
    font-size: 0.8rem;
    padding: 2px 6px;
    margin-bottom: 2px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex; /* Ensure flex for dot alignment */
    align-items: center; /* Center dot vertically */
    gap: 4px; /* Space between dot and text */
}

.event-chip.quadrant-1 { border-left: 3px solid #ef4444; background: rgba(239, 68, 68, 0.1); }
.event-chip.quadrant-2 { border-left: 3px solid #f59e0b; background: rgba(245, 158, 11, 0.1); }
.event-chip.quadrant-3 { border-left: 3px solid #3b82f6; background: rgba(59, 130, 246, 0.1); }
.event-chip.quadrant-4 { border-left: 3px solid #10b981; background: rgba(16, 185, 129, 0.1); }
