* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --accent-yellow: #ffc107;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --border: #333;
    --status-active: #4caf50;
    --status-pending: #2196f3;
    --status-warning: #ff9800;
    --status-error: #f44336;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 700;
}

.logo .emoji {
    font-size: 32px;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    font-weight: 600;
}

.nav-item .icon {
    font-size: 18px;
    width: 24px;
}

.nav-item.dropdown {
    justify-content: space-between;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    padding-left: 36px;
}

.nav-item.sub {
    padding: 8px 16px;
    font-size: 14px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Command Bar */
.command-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 40px;
    display: flex;
    gap: 16px;
    align-items: center;
}

#command-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 16px;
}

#command-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.btn-primary {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Page Container */
#page-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page h1 {
    font-size: 32px;
    margin-bottom: 32px;
}

.page h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.page h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Status Cards */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.card-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 8px;
}

.card-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Agent Visualization */
.agent-viz-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    max-width: 900px;
}

#agent-viz, #agent-viz-augmented {
    width: 100%;
    height: 400px;
    display: block;
}

/* Activity Feed */
.activity-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 8px;
}

.activity-time {
    color: var(--text-secondary);
    font-size: 12px;
    min-width: 80px;
}

.activity-text {
    color: var(--text-primary);
}

/* Opportunities Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.opportunity-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.opportunity-card.placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.opportunity-header {
    margin-bottom: 16px;
}

.opportunity-header h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.opportunity-score {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.opportunity-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.opportunity-meta .category,
.opportunity-meta .timeline {
    background: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.opportunity-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.opportunity-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 8px;
}

.opportunity-stats .stat {
    flex: 1;
}

.opportunity-stats .stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.opportunity-stats .stat-value {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.opportunity-footer {
    margin-bottom: 16px;
}

.opportunity-footer .agent-tag {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

.opportunity-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-approve {
    flex: 1;
    background: var(--status-active);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-approve:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-approve:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-reject {
    flex: 1;
    background: var(--status-error);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-reject:hover:not(:disabled) {
    background: #e53935;
    transform: translateY(-1px);
}

.btn-reject:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-save {
    flex: 1;
    background: var(--status-warning);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-save:hover:not(:disabled) {
    background: #fb8c00;
    transform: translateY(-1px);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.saved-indicator {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: var(--accent-yellow);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid var(--accent-yellow);
}

.opportunity-card.saved {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.2);
}

/* Approval Queue */
.approval-queue {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.approval-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.approval-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.approval-item.placeholder {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

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

.approval-header h4 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.approval-type {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.approval-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.approval-preview {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-secondary);
    max-height: 200px;
    overflow-y: auto;
}

/* Settings */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Agent Circle Styles */
.agent-node {
    cursor: pointer;
    transition: all 0.3s;
    transform-origin: center;
}

.agent-node:hover .agent-circle {
    stroke-width: 3;
}

.agent-circle {
    stroke: var(--border);
    stroke-width: 2;
    transition: all 0.3s;
}

.agent-circle.idle {
    fill: #ff9800;
    filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.6));
}

.agent-circle.active {
    fill: #4caf50;
    filter: drop-shadow(0 0 12px rgba(76, 175, 80, 0.8));
    animation: pulse-glow 2s infinite;
}

.agent-circle.pending {
    fill: var(--status-pending);
    filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.6));
}

.agent-circle.error {
    fill: var(--status-error);
    filter: drop-shadow(0 0 8px rgba(244, 67, 54, 0.6));
}

.agent-label {
    font-size: 14px;
    font-weight: 600;
    fill: var(--text-primary);
    text-anchor: middle;
}

.agent-status {
    font-size: 11px;
    fill: var(--text-secondary);
    text-anchor: middle;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.agent-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Email Drafts Styles */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-yellow);
}

.filter-btn.active {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border-color: var(--accent-yellow);
}

.email-drafts-container {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
}

.email-drafts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-draft-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.email-draft-card:hover {
    border-color: var(--accent-yellow);
}

.email-draft-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.email-draft-info {
    flex: 1;
}

.email-draft-customer {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.email-draft-subject {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.email-draft-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.email-draft-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.intent-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.intent-badge.product_inquiry {
    background: #2196f3;
    color: white;
}

.intent-badge.beekeeping_advice {
    background: #4caf50;
    color: white;
}

.intent-badge.order_status {
    background: #ff9800;
    color: white;
}

.intent-badge.general_inquiry {
    background: #9e9e9e;
    color: white;
}

.regeneration-badge {
    background: #f44336;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.escalation-badge {
    background: #ff5722;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.email-draft-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.email-draft-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.email-draft-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent-yellow);
}

.email-draft-body {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.email-draft-body.expanded {
    display: block;
}

.email-section {
    margin-bottom: 20px;
}

.email-section h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.email-section pre {
    background: var(--bg-card);
    padding: 12px;
    border-radius: 6px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
}

.email-section .entities {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.entity-tag {
    background: var(--bg-hover);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.feedback-history-item {
    background: var(--bg-card);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.feedback-history-item .feedback-label {
    font-size: 12px;
    color: var(--accent-yellow);
    margin-bottom: 4px;
}

.feedback-history-item .feedback-text {
    font-size: 13px;
    margin-bottom: 8px;
}

.btn-approve {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-approve:hover {
    background: #45a049;
}

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

.btn-regenerate:hover {
    background: #f57c00;
}

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

.btn-discard:hover {
    background: #da190b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.modal-close {
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-body textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.badge {
    background: var(--status-error);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* ===== TODOS SECTION ===== */
.todos-container {
    margin-top: 24px;
}

.todos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.todo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.todo-card:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

.todo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    user-select: none;
}

.todo-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-checkbox:hover {
    border-color: var(--accent-yellow);
}

.todo-checkbox.completed {
    background: var(--status-active);
    border-color: var(--status-active);
    position: relative;
}

.todo-checkbox.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.todo-info {
    flex: 1;
}

.todo-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.todo-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.priority-badge.medium {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.priority-badge.low {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.todo {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.status-badge.in_progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.category-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
}

.todo-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.todo-expand-icon {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.todo-card.expanded .todo-expand-icon {
    transform: rotate(180deg);
}

.todo-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.todo-card.expanded .todo-details {
    max-height: 2000px;
}

.todo-details-content {
    padding: 0 16px 16px 16px;
    border-top: 1px solid var(--border);
}

.detail-section {
    margin-top: 16px;
}

.detail-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.detail-section ul,
.detail-section ol {
    margin-left: 20px;
    color: var(--text-secondary);
}

.detail-section li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.detail-section a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.detail-section a:hover {
    text-decoration: underline;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.detail-item {
    background: var(--bg-dark);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.detail-item h5 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.detail-item p {
    font-size: 14px;
    color: var(--text-primary);
}

.todo-detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-yellow);
}

.action-btn.primary {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border-color: var(--accent-yellow);
}

.action-btn.primary:hover {
    opacity: 0.9;
}

.action-btn.danger {
    border-color: var(--status-error);
    color: var(--status-error);
}

.action-btn.danger:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* Filter Bar Extensions for Todos */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.search-input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

/* Todo Modal Styles */
.modal-large {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.form-group textarea {
    resize: vertical;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .todo-header-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .todo-meta {
        flex-wrap: wrap;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        min-width: 100%;
    }
}
