/* ================================================
   TASK SELECTOR - TASK STYLING ONLY
   ================================================ */

/* ================================================
   TITLE SECTION
   ================================================ */

/* Title Container */
.task-selector-modal__title {
    margin-bottom: var(--tn-spacing-xs);
}

/* Task Title Text */
.task-selector-modal__task-title {
    font-weight: 500;
    font-size: var(--tn-font-size-sm);
    color: var(--text-normal);
    line-height: 1.4;
}

/* Priority Modifiers */
.task-selector-modal__task-title--high-priority {
    color: var(--tn-color-priority-high);
    font-weight: 600;
}

.task-selector-modal__task-title--low-priority {
    color: var(--tn-color-priority-low);
    font-weight: 400;
    opacity: 0.8;
}

/* ================================================
   METADATA SECTION
   ================================================ */

/* Meta Container */
.task-selector-modal__meta {
    display: flex;
    align-items: center;
    gap: var(--tn-spacing-sm);
    flex-wrap: wrap;
    font-size: var(--tn-font-size-xs);
    color: var(--text-muted);
    line-height: 1.3;
}

/* ================================================
   DUE DATE DISPLAY
   ================================================ */

/* Base Due Date */
.task-selector-modal__due-date {
    padding: 2px 6px;
    border-radius: var(--tn-border-radius-sm);
    background-color: var(--background-modifier-border);
    color: var(--text-muted);
    font-size: var(--tn-font-size-xs);
    font-weight: 500;
    white-space: nowrap;
}

/* Due Date Modifiers */
.task-selector-modal__due-date--overdue {
    background-color: var(--tn-color-status-error-bg);
    color: var(--tn-color-status-error);
    border: 1px solid var(--tn-color-status-error);
}

.task-selector-modal__due-date--today {
    background-color: var(--tn-color-status-warning-bg);
    color: var(--tn-color-status-warning);
    border: 1px solid var(--tn-color-status-warning);
}

/* ================================================
   CONTEXTS SECTION
   ================================================ */

/* Contexts Container */
.task-selector-modal__contexts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

/* Individual Context Tags */
.task-selector-modal__context-tag {
    padding: 2px 4px;
    border-radius: var(--tn-border-radius-sm);
    background-color: var(--tn-color-context-bg);
    color: var(--tn-color-context);
    font-size: var(--tn-font-size-xs);
    font-weight: 500;
    white-space: nowrap;
}

.task-selector-modal__context-tag::before {
    content: '@';
    opacity: 0.7;
    margin-right: 1px;
}

/* ================================================
   PROJECTS SECTION
   ================================================ */

/* Projects Container */
.task-selector-modal__projects {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

/* Individual Project Tags */
.task-selector-modal__project-tag {
    padding: 2px 4px;
    border-radius: var(--tn-border-radius-sm);
    background-color: var(--tn-color-project-bg, var(--background-modifier-border));
    color: var(--tn-color-project, var(--text-accent));
    font-size: var(--tn-font-size-xs);
    font-weight: 500;
    white-space: nowrap;
}

.task-selector-modal__project-tag::before {
    content: '+';
    opacity: 0.7;
    margin-right: 1px;
}

/* Project Links - for [[Note Name]] format projects */
.task-selector-modal__project-link {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: var(--tn-border-radius-sm);
    padding: 1px 2px;
    margin: -1px -2px;
    cursor: pointer;
}

.task-selector-modal__project-link:hover {
    background: var(--background-modifier-hover);
    text-decoration: underline;
    color: var(--link-color-hover);
}

/* ================================================
   STATUS DISPLAY
   ================================================ */

/* Status Badge */
.task-selector-modal__status {
    padding: 2px 6px;
    border-radius: var(--tn-border-radius-sm);
    background-color: var(--background-modifier-border);
    color: var(--text-muted);
    font-size: var(--tn-font-size-xs);
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
}

/* ================================================
   THEME ADJUSTMENTS
   ================================================ */

/* Improve contrast in dark themes */
.theme-dark .task-selector-modal__due-date {
    background-color: var(--background-modifier-form-field);
}

.theme-dark .task-selector-modal__context-tag {
    background-color: var(--background-modifier-form-field);
}

.theme-dark .task-selector-modal__project-tag {
    background-color: var(--background-modifier-form-field);
}

.theme-dark .task-selector-modal__status {
    background-color: var(--background-modifier-form-field);
}