:root {
    --urgent-important: #d95550;
    --urgent-not-important: #f9c74f;
    --not-urgent-important: #4c9aff;
    --not-urgent-not-important: #90be6d;
    --text-color: #333333;
    --light-text: #ffffff;
    --inactive-color: #f5f5f5;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.matrix-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 600px;
    margin-bottom: 30px;
}

.quadrant {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.quadrant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.quadrant-title {
    font-size: 18px;
    font-weight: 600;
}

.quadrant-1 .quadrant-header {
    color: var(--urgent-important);
}

.quadrant-2 .quadrant-header {
    color: var(--urgent-not-important);
}

.quadrant-3 .quadrant-header {
    color: var(--not-urgent-important);
}

.quadrant-4 .quadrant-header {
    color: var(--not-urgent-not-important);
}

.task-list {
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
}

.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    cursor: grab;
    position: relative;
    z-index: 1;
}

.task:hover {
    background-color: #f9f9f9;
    z-index: 10;
}

.task.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.task-list.drag-over {
    background-color: rgba(76, 154, 255, 0.1);
}

.task-checkbox {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-width: 30px;
}

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

.task.completed .task-name {
    text-decoration: line-through;
    color: #888;
}

.model-info {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#model-status {
    font-size: 14px;
    color: #666;
}

.central-input-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.central-input-container h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.central-input-form {
    display: flex;
    gap: 10px;
}

.central-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.add-btn {
    background-color: #4c9aff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-btn:hover {
    opacity: 0.9;
}

/* Add styles for disabled state */
.add-btn:disabled, 
.central-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai-status {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

/* Fixed kebab menu styles */
.kebab-menu {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.kebab-button {
    background: none !important;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    padding: 0 5px;
    font-weight: bold;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kebab-button:hover {
    background-color: #f0f0f0 !important;
    border-radius: 50%;
}

.kebab-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: max-content;
    min-width: 180px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    border-radius: 6px;
    z-index: 1000;
    padding: 5px 0;
    margin-top: 5px;
}

/* Add a triangle/arrow to the dropdown */
.kebab-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.kebab-dropdown a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    cursor: pointer;
}

.kebab-dropdown a:hover {
    background-color: #f5f5f5;
}

.kebab-action {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.kebab-action:hover {
    background-color: #f5f5f5;
}

.delete-action {
    color: #d95550;
    border-top: 1px solid #eee;
    margin-top: 5px;
    padding-top: 10px;
}

.delete-action:hover {
    background-color: #fff1f0;
}

/* Task actions container fixes */
.task-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-width: 30px;
}

/* Ensure the task text doesn't overflow */
.task-name {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

/* Fix button styling in the kebab menu */
.kebab-button.kebab-button {
    background-color: transparent;
    color: #555;
    box-shadow: none;
    opacity: 1;
}

.edit-task-input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.edit-task-input:focus {
    border-color: var(--not-urgent-important);
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
}

/* Fix toaster styles */
.toaster {
    position: fixed;
    bottom: -150px; /* Increase this value to ensure it's fully hidden */
    right: 20px;
    background-color: white;
    width: 350px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    border-left: 4px solid var(--primary-gradient, #4c9aff);
    opacity: 0;
    pointer-events: none;
}

.toaster.show {
    transform: translateY(-160px); /* Ensure the full toaster is visible */
    opacity: 1;
    pointer-events: all;
}

.toaster-content {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #333;
}

.confidence-container {
    margin: 10px 0;
}

#confidence-score {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.confidence-bar {
    height: 6px;
    width: 100%;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.confidence-bar-fill {
    height: 100%;
    background-color: #4c9aff;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Make the close button more prominent */
.toaster-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    color: #777;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.toaster-close:hover {
    background-color: rgba(0,0,0,0.1);
    color: #333;
}

.toaster-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #777;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.toaster-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Add reclassification action styling */
.reload-action {
    display: flex;
    align-items: center;
    color: #4c9aff;
}

.reload-action svg {
    margin-right: 6px;
}

.reload-action:hover {
    background-color: #f0f8ff;
}

/* Reclassification status indicator */
.reclassify-status {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1001;
    display: none;
}