/* 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);
}

/* Responsive */
@media (max-width: 768px) {
    .nova-content {
        padding: 1rem;
    }
    
    .nova-board-column {
        margin-bottom: 1rem;
    }
    
    .nova-progress {
        width: 6rem;
    }
}