/* NovaBoard - Modern Task Management System Styles */

.nova-tasks-container {
    min-height: calc(100vh - 100px);
    background: linear-gradient(135deg, #0f1020 0%, #171833 50%, #0d0e1a 100%);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Topbar */
.nova-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nova-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nova-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nova-btn-primary:hover {
    background: linear-gradient(135deg, #7c8ff5 0%, #8e5bb2 100%);
}

.nova-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.nova-search {
    width: 260px;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.nova-search:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nova-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.nova-user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
}

.nova-kbd {
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Content */
.nova-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Dashboard */
.nova-dashboard {
    animation: fadeIn 0.4s ease;
}

.nova-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nova-project-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.nova-project-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    filter: blur(48px);
}

.nova-progress {
    height: 0.75rem;
    width: 8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.nova-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4 0%, #8b5cf6 100%);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Project View */
.nova-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nova-view-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Board View */
.nova-board-column {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
}

.nova-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}

.nova-add-btn {
    padding: 0.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-add-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nova-column-content {
    min-height: 260px;
    border-radius: 0.75rem;
    padding: 0.25rem;
    transition: background 0.2s;
}

.nova-column-content.drag-over {
    background: rgba(255, 255, 255, 0.05);
}

/* Task Card */
.nova-task-card {
    position: relative;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    cursor: grab;
    transition: all 0.2s;
    animation: slideIn 0.3s ease;
}

.nova-task-card:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.07) 100%);
}

.nova-task-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.nova-task-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.nova-tag {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.625rem;
}

.nova-mini-progress {
    width: 3rem;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.nova-mini-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4 0%, #8b5cf6 100%);
}

.nova-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.625rem;
    font-weight: 600;
}

/* List View */
.nova-list-view {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.nova-list-view table {
    width: 100%;
    font-size: 0.875rem;
}

.nova-list-view thead {
    background: rgba(255, 255, 255, 0.05);
}

.nova-list-view th {
    padding: 0.75rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.nova-list-view td {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nova-list-view tr:hover {
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.nova-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.nova-status-todo {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.nova-status-doing {
    background: rgba(251, 146, 60, 0.2);
    color: #fdba74;
}

.nova-status-done {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.nova-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.nova-priority-low {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.nova-priority-med {
    background: rgba(251, 146, 60, 0.2);
    color: #fdba74;
}

.nova-priority-high {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Modals */
.nova-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-modal.hidden {
    display: none;
}

.nova-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Command Palette */
.nova-command-palette {
    position: relative;
    width: 720px;
    max-width: 92vw;
    margin-top: 6rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #14152d;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.nova-command-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nova-command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    outline: none;
}

.nova-command-content {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.nova-command-section {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

.nova-command-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-command-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Quick Add Modal */
.nova-quick-add,
.nova-task-details {
    position: relative;
    width: 560px;
    max-width: 92vw;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #12132a;
    animation: scaleIn 0.2s ease;
}

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

.nova-modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.nova-close-btn {
    padding: 0.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.nova-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nova-modal-body {
    padding: 1.25rem;
}

.nova-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nova-input,
.nova-textarea,
.nova-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.2s;
}

.nova-input:focus,
.nova-textarea:focus,
.nova-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nova-textarea {
    resize: vertical;
    min-height: 80px;
}

.nova-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nova-range {
    width: 100%;
    margin-top: 0.5rem;
}

/* Task Details */
.nova-task-details {
    width: 640px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scrollbar */
.nova-command-content::-webkit-scrollbar,
.nova-task-details::-webkit-scrollbar {
    width: 8px;
}

.nova-command-content::-webkit-scrollbar-track,
.nova-task-details::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.nova-command-content::-webkit-scrollbar-thumb,
.nova-task-details::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.nova-command-content::-webkit-scrollbar-thumb:hover,
.nova-task-details::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Apple Reminders-style Quick Add Input */
.nova-quick-input-wrapper {
    animation: fadeIn 0.3s ease;
}

.nova-quick-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 0.9375rem;
    font-weight: 400;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.nova-quick-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 140, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(99, 140, 255, 0.15);
    transform: translateY(-1px);
}

.nova-quick-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.nova-quick-input.nova-input-success {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.5);
}

/* Apple-style Custom Checkbox */
.nova-checkbox-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.nova-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nova-checkbox-custom {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nova-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: translate(-50%, -60%) rotate(-45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nova-checkbox:checked + .nova-checkbox-custom {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-color: transparent;
    transform: scale(1.05);
}

.nova-checkbox:checked + .nova-checkbox-custom::after {
    transform: translate(-50%, -60%) rotate(-45deg) scale(1);
}

.nova-checkbox-wrapper:hover .nova-checkbox-custom {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Enhanced Task Card */
.nova-task-card {
    position: relative;
    margin-bottom: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    cursor: grab;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.3s ease;
}

.nova-task-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.nova-task-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.nova-task-card.task-completed {
    opacity: 0.65;
}

.nova-task-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    cursor: text;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.nova-task-title:hover {
    color: white;
}

.nova-task-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    line-height: 1.4;
}

/* Info Pills */
.nova-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nova-info-pill.overdue {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.nova-info-pill.due-soon {
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
}

/* Quick Action Buttons */
.nova-task-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nova-task-card:hover .nova-task-actions {
    opacity: 1;
    transform: translateX(0);
}

.nova-quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nova-quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: scale(1.1);
}

.nova-quick-action-btn.nova-quick-action-done {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}

.nova-quick-action-btn.nova-quick-action-done:hover {
    background: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
}

.nova-quick-action-btn.nova-quick-action-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Enhanced Columns */
.nova-board-column {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    backdrop-filter: blur(10px);
}

.nova-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 4px;
}

.nova-column-content {
    min-height: 260px;
    border-radius: 12px;
    padding: 4px;
    transition: background 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
    .nova-content {
        padding: 1rem;
    }

    .nova-board-column {
        margin-bottom: 1rem;
    }

    .nova-progress {
        width: 6rem;
    }

    .nova-quick-input {
        font-size: 0.875rem;
    }
}