:root {
    --priority-1: #d32f2f;
    --priority-2: #f57c00;
    --priority-3: #1976d2;
    --priority-4: #757575;
    --bg-main: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Import Section */
.import-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.upload-icon {
    font-size: 1.5em;
}

#zipFile {
    display: none;
}

.status-message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
}

.status-message.processing {
    background: #fff3e0;
    color: #f57c00;
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.stats-bar.hidden {
    display: none;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filter-bar.hidden {
    display: none;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.stat {
    text-align: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
}

/* Tags Container */
.tags-container {
    display: grid;
    gap: 30px;
}

.no-tasks-message {
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2em;
}

.tag-section {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s;
}

.tag-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-title {
    font-size: 1.5em;
    font-weight: 600;
}

.task-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.task-list {
    padding: 15px;
    display: grid;
    gap: 12px;
}

/* Task Items */
.task-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-left-width: 6px;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.task-item.indent-2,
.task-item.indent-3,
.task-item.indent-4,
.task-item.indent-5 {
    border-left-width: 4px;
}

.task-item.indent-2::before,
.task-item.indent-3::before,
.task-item.indent-4::before,
.task-item.indent-5::before {
    content: '└';
    position: absolute;
    left: -25px;
    color: var(--text-secondary);
    font-size: 1.2em;
}

.task-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.task-item.priority-1 {
    border-left-color: var(--priority-1);
}

.task-item.priority-2 {
    border-left-color: var(--priority-2);
}

.task-item.priority-3 {
    border-left-color: var(--priority-3);
}

.task-item.priority-4 {
    border-left-color: var(--priority-4);
}

.task-content {
    flex: 1;
}

.task-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.task-title {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-primary);
}

.notes-indicator {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.description-preview {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 5px;
}

.deadline {
    display: inline-block;
    background: #fff3e0;
    color: #f57c00;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-top: 8px;
}

.task-priority-indicator {
    background: var(--bg-main);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.priority-1 .task-priority-indicator {
    background: #ffebee;
    color: var(--priority-1);
}

.priority-2 .task-priority-indicator {
    background: #fff3e0;
    color: var(--priority-2);
}

.priority-3 .task-priority-indicator {
    background: #e3f2fd;
    color: var(--priority-3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #000;
}

#taskDetails {
    padding: 30px;
}

#taskTitle {
    font-size: 1.8em;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.task-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-main);
    border-radius: 8px;
}

.meta-item {
    font-size: 0.95em;
}

.meta-item strong {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 3px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.priority-badge.priority-1 {
    background: #ffebee;
    color: var(--priority-1);
}

.priority-badge.priority-2 {
    background: #fff3e0;
    color: var(--priority-2);
}

.priority-badge.priority-3 {
    background: #e3f2fd;
    color: var(--priority-3);
}

.priority-badge.priority-4 {
    background: #f5f5f5;
    color: var(--priority-4);
}

.task-description {
    margin-bottom: 25px;
}

.task-description h3,
.task-notes h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.task-description p {
    color: var(--text-primary);
    line-height: 1.8;
    background: var(--bg-main);
    padding: 15px;
    border-radius: 8px;
}

.task-notes {
    margin-top: 25px;
}

.note-item {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.note-number {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .stats-bar {
        gap: 20px;
    }

    .stat-value {
        font-size: 1.5em;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    #taskDetails {
        padding: 20px;
    }

    .task-meta {
        grid-template-columns: 1fr;
    }
}

margin: 10% auto;
}

#taskDetails {
    padding: 20px;
}

.task-meta {
    grid-template-columns: 1fr;
}
}