/* ==========================================================================
   TaskPulse Modern Todo Dashboard Stylesheet
   Constraint Note: NO CSS Variables (--var) used anywhere in this file.
   ========================================================================== */

/* Resets & Global Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #0b0f19;
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* App Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 270px;
    background-color: #111827;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.brand-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.brand-text span {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-top: 24px;
    flex: 1;
}

.nav-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    padding: 12px 12px 6px 12px;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    text-align: left;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.05));
    border-left: 3px solid #3b82f6;
    color: #60a5fa;
    font-weight: 600;
}

.category-filters {
    margin-top: 4px;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 2px;
}

.cat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.cat-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
}

.cat-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cat-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 10px;
    color: #64748b;
}

/* Sidebar Footer */
.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.storage-info {
    margin-bottom: 12px;
}

.storage-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.storage-bar {
    width: 100%;
    height: 5px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.78rem;
}

.w-full {
    width: 100%;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    min-width: 0;
    padding: 28px 36px;
}

/* Top App Header */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.header-welcome h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.header-welcome p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 320px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 12px;
}

.search-box svg {
    color: #64748b;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 8px;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.85rem;
}

.search-box input::placeholder {
    color: #64748b;
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
}

/* View Panels */
.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.metric-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-total .metric-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.card-completed .metric-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.card-pending .metric-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.card-urgent .metric-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.metric-data {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 4px 0 2px 0;
}

.metric-subtext {
    font-size: 0.75rem;
    color: #64748b;
}

.progress-ring-container {
    margin-left: auto;
}

.progress-ring-circle {
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
    transition: stroke-dashoffset 0.6s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Controls Toolbar */
.controls-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

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

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.status-pills {
    display: flex;
    gap: 6px;
}

.pill {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.pill.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.select-wrapper select {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

/* Task List Styles */
.task-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.task-list-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.task-count-badge {
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 3px 10px;
    border-radius: 12px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.task-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.task-item.completed-task {
    opacity: 0.65;
    background: rgba(30, 41, 59, 0.5);
}

.task-item.pinned-task {
    border-left: 4px solid #f59e0b;
}

.task-main-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #475569;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
    background: transparent;
}

.task-checkbox:hover {
    border-color: #3b82f6;
}

.task-item.completed-task .task-checkbox {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

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

.task-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
}

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

.task-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 4px;
    line-height: 1.4;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-urgent { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.priority-high { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.priority-medium { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.priority-low { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.category-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.status-badge {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.task-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.76rem;
    color: #64748b;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.overdue {
    color: #f87171;
    font-weight: 600;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.action-icon-btn.pin-btn.active {
    color: #f59e0b;
}

.action-icon-btn.delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Subtasks Accordion in Task List */
.subtasks-container {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 4px;
}

.subtasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.subtask-bar {
    width: 100%;
    height: 4px;
    background: #0f172a;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.subtask-bar-fill {
    height: 100%;
    background: #10b981;
    width: 0%;
    transition: width 0.3s ease;
}

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

.subtask-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    cursor: pointer;
}

.subtask-item.done {
    text-decoration: line-through;
    color: #64748b;
}

.subtask-chk {
    width: 14px;
    height: 14px;
    border: 1px solid #64748b;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtask-item.done .subtask-chk {
    background: #10b981;
    border-color: #10b981;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    background: #1e293b;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.empty-state svg {
    color: #475569;
    margin-bottom: 12px;
}

.empty-state h4 {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Kanban Board View */
.kanban-header {
    margin-bottom: 20px;
}

.kanban-header h2 {
    font-size: 1.3rem;
    color: #ffffff;
}

.kanban-header p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.kanban-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 1200px) {
    .kanban-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-grid {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.col-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.col-todo .col-indicator { background: #3b82f6; }
.col-progress .col-indicator { background: #f59e0b; }
.col-review .col-indicator { background: #8b5cf6; }
.col-completed .col-indicator { background: #10b981; }

.kanban-col-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.col-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 10px;
}

.kanban-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.kanban-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    cursor: grab;
    transition: all 0.2s ease;
}

.kanban-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.kanban-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.74rem;
    color: #64748b;
}

.stage-move-btns {
    display: flex;
    gap: 4px;
}

.stage-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #94a3b8;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-btn:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Analytics View */
.analytics-header {
    margin-bottom: 20px;
}

.analytics-header h2 { font-size: 1.3rem; color: #ffffff; }
.analytics-header p { font-size: 0.85rem; color: #94a3b8; }

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .analytics-grid { grid-template-columns: 1fr; }
}

.analytics-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
}

.analytics-card.full-width {
    grid-column: 1 / -1;
}

.analytics-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.chart-container {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Dialog */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #ffffff;
}

.modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
}

.subtask-builder-section {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
}

.subtask-input-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.subtask-input-row input {
    flex: 1;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 0.82rem;
}

.subtask-draft-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subtask-draft-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e293b;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.subtask-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
    pointer-events: none;
}

.toast {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 12px 18px;
    color: #ffffff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

.toast.success { border-left-color: #10b981; }
.toast.danger { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .main-content {
        padding: 20px;
    }
}
