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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-left h1 {
            font-size: 2rem;
            margin-bottom: 5px;
            font-weight: 700;
        }

        .header-left p {
            font-size: 0.95rem;
            opacity: 0.9;
        }

        .header-right {
            display: flex;
            gap: 10px;
        }

        .view-toggle {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .view-toggle.active {
            background: white;
            color: #2c3e50;
        }

        .toolbar {
            background: #f8f9fa;
            padding: 20px 30px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .toolbar-left {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

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

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            background: white;
            color: #6c757d;
            border: 2px solid #e9ecef;
        }

        .btn-secondary:hover {
            background: #e9ecef;
            color: #495057;
        }

        .btn-success {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
        }

        .btn-danger {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            color: white;
        }

        .progress-section {
            background: #f8f9fa;
            padding: 30px;
            border-bottom: 1px solid #e9ecef;
        }

        .progress-overview {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .progress-card {
            background: white;
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            text-align: center;
        }

        .progress-card h3 {
            font-size: 0.85rem;
            color: #6c757d;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .progress-card .number {
            font-size: 2.5rem;
            font-weight: 700;
            color: #2c3e50;
        }

        .progress-card.deadline {
            border-left: 4px solid #ffc107;
        }

        .progress-bar-container {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }

        .progress-bar-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .progress-percentage {
            font-size: 1.5rem;
            font-weight: 700;
            color: #28a745;
        }

        .progress-bar {
            width: 100%;
            height: 20px;
            background: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #28a745, #20c997);
            border-radius: 10px;
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .checklist-section {
            padding: 30px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .section-title {
            font-size: 1.5rem;
            color: #2c3e50;
            font-weight: 600;
        }

        .view-and-filters {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        .view-mode-toggle {
            display: flex;
            gap: 5px;
            background: #f8f9fa;
            padding: 4px;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .view-mode-btn {
            padding: 8px 16px;
            border: none;
            background: transparent;
            color: #6c757d;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .view-mode-btn.active {
            background: white;
            color: #667eea;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .filters {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 8px 16px;
            border: 2px solid #e9ecef;
            background: white;
            color: #6c757d;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .filter-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .checklist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
            gap: 20px;
        }

        .checklist-list {
            display: none;
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            overflow: hidden;
        }

        .checklist-list.active {
            display: block;
        }

        .checklist-grid.active {
            display: grid;
        }

        .checklist-grid:not(.active) {
            display: none;
        }

        .list-header {
            display: grid;
            grid-template-columns: 50px 1fr 150px 120px 100px;
            gap: 15px;
            padding: 15px 20px;
            background: #f8f9fa;
            border-bottom: 2px solid #e9ecef;
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.9rem;
        }

        .list-row {
            display: grid;
            grid-template-columns: 50px 1fr 150px 120px 100px;
            gap: 15px;
            padding: 15px 20px;
            border-bottom: 1px solid #f0f0f0;
            align-items: center;
            transition: background 0.2s ease;
            cursor: pointer;
        }

        .list-row:hover {
            background: #f8f9fa;
        }

        .list-row.completed {
            background: linear-gradient(90deg, #f8fff8 0%, #ffffff 100%);
        }

        .list-row.pending {
            background: linear-gradient(90deg, #fffdf7 0%, #ffffff 100%);
        }

        .list-checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid #dee2e6;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .list-checkbox.completed {
            background: #28a745;
            border-color: #28a745;
            color: white;
        }

        .list-checkbox.pending {
            background: #ffc107;
            border-color: #ffc107;
            color: white;
        }

        .list-item-title {
            font-weight: 500;
            color: #2c3e50;
        }

        .list-category {
            color: #6c757d;
            font-size: 0.9rem;
        }

        .list-files-count {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #6c757d;
            font-size: 0.9rem;
        }

        .list-actions {
            display: flex;
            gap: 5px;
            justify-content: flex-end;
        }

        .list-action-btn {
            padding: 6px 12px;
            border: 1px solid #e9ecef;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.85rem;
            color: #6c757d;
            transition: all 0.2s ease;
        }

        .list-action-btn:hover {
            background: #f8f9fa;
            border-color: #667eea;
            color: #667eea;
        }

        .checklist-item {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 25px;
            transition: all 0.3s ease;
            position: relative;
        }

        .checklist-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .checklist-item.completed {
            border-color: #28a745;
            background: linear-gradient(135deg, #f8fff8 0%, #f0f9f0 100%);
        }

        .checklist-item.pending {
            border-color: #ffc107;
            background: linear-gradient(135deg, #fffdf7 0%, #fefcf0 100%);
        }

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

        .item-title {
            font-size: 1.05rem;
            font-weight: 600;
            color: #2c3e50;
            line-height: 1.4;
            flex: 1;
        }

        .item-actions-menu {
            position: relative;
        }

        .menu-btn {
            background: none;
            border: none;
            font-size: 1.2rem;
            color: #6c757d;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 5px;
        }

        .menu-btn:hover {
            background: #f8f9fa;
        }

        .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-left: 10px;
        }

        .status-badge.completed {
            background: #d4edda;
            color: #155724;
        }

        .status-badge.pending {
            background: #fff3cd;
            color: #856404;
        }

        .status-badge.not-started {
            background: #f8d7da;
            color: #721c24;
        }

        .item-description {
            color: #6c757d;
            font-size: 0.9rem;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .item-meta {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            font-size: 0.85rem;
            color: #6c757d;
        }

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

        .uploaded-files {
            margin-bottom: 15px;
        }

        .uploaded-file {
            margin-top: 10px;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .file-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }

        .file-icon {
            width: 32px;
            height: 32px;
            background: #28a745;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
        }

        .file-details {
            flex: 1;
        }

        .file-name {
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.9rem;
        }

        .file-timestamp {
            font-size: 0.75rem;
            color: #6c757d;
        }

        .file-actions {
            display: flex;
            gap: 5px;
        }

        .icon-btn {
            background: none;
            border: none;
            padding: 5px 10px;
            cursor: pointer;
            border-radius: 5px;
            color: #6c757d;
            transition: all 0.2s ease;
        }

        .icon-btn:hover {
            background: #e9ecef;
            color: #495057;
        }

        .item-comments {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #e9ecef;
        }

        .comment {
            background: #fff3cd;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 10px;
            border-left: 3px solid #ffc107;
        }

        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 0.8rem;
        }

        .comment-author {
            font-weight: 600;
            color: #856404;
        }

        .comment-time {
            color: #6c757d;
        }

        .comment-text {
            color: #495057;
            font-size: 0.9rem;
        }

        .add-comment-btn {
            font-size: 0.85rem;
            padding: 6px 12px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            color: #6c757d;
            border-radius: 6px;
            cursor: pointer;
        }

        .add-comment-btn:hover {
            background: #e9ecef;
        }

        .item-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            backdrop-filter: blur(5px);
        }

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

        .modal-content {
            background: white;
            border-radius: 15px;
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .modal.show .modal-content {
            transform: scale(1);
        }

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

        .modal-title {
            font-size: 1.3rem;
            color: #2c3e50;
            font-weight: 600;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #6c757d;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
        }

        .close-btn:hover {
            background: #f8f9fa;
        }

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

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 0.95rem;
        }

        .form-input {
            width: 100%;
            padding: 10px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 0.95rem;
            transition: border-color 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .form-textarea {
            width: 100%;
            padding: 10px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 0.95rem;
            min-height: 100px;
            resize: vertical;
            font-family: inherit;
        }

        .form-textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        .form-select {
            width: 100%;
            padding: 10px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 0.95rem;
            background: white;
            cursor: pointer;
        }

        .upload-area {
            border: 2px dashed #dee2e6;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            color: #6c757d;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .upload-area:hover {
            border-color: #667eea;
            background: #f8f9fa;
        }

        .upload-area.dragover {
            border-color: #667eea;
            background: #f0f4ff;
            color: #667eea;
        }

        .file-input {
            display: none;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: white;
            border-left: 4px solid #28a745;
            border-radius: 8px;
            padding: 16px 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            transform: translateX(400px);
            transition: transform 0.3s ease;
            z-index: 3000;
            max-width: 350px;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification-title {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .notification-message {
            color: #6c757d;
            font-size: 0.9rem;
        }

        .share-link-box {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            display: flex;
            gap: 10px;
            align-items: center;
            margin-top: 15px;
        }

        .share-link-input {
            flex: 1;
            padding: 8px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 0.9rem;
            background: white;
        }

        .reminder-settings {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
        }

        .reminder-option {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .reminder-option input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .template-list {
            display: grid;
            gap: 15px;
            margin-top: 20px;
        }

        .template-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            border: 2px solid #e9ecef;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .template-item:hover {
            border-color: #667eea;
            background: #f0f4ff;
        }

        .template-name {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .template-meta {
            font-size: 0.85rem;
            color: #6c757d;
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .toolbar {
                flex-direction: column;
                align-items: flex-start;
            }

            .checklist-grid {
                grid-template-columns: 1fr;
            }

            .progress-overview {
                grid-template-columns: repeat(2, 1fr);
            }
        }

/* ========== DASHBOARD CARDS ========== */

.dashboard-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

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

.dashboard-card-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.dashboard-card-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-card-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.dashboard-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.dashboard-card-footer {
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

/* ========== ENHANCED LIST VIEW ========== */

.list-category-section {
    margin-bottom: 30px;
}

.list-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    margin-top: 20px;
}

.list-category-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.category-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.list-category-items {
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.list-item-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.list-item-row:last-child {
    border-bottom: none;
}

.list-item-row:hover {
    background: #f8f9fa;
}

.list-item-row.completed {
    background: linear-gradient(90deg, #f8fff8 0%, #ffffff 100%);
}

.list-item-row.pending {
    background: linear-gradient(90deg, #fffdf7 0%, #ffffff 100%);
}

.list-item-checkbox {
    margin-right: 15px;
}

.checkbox-icon {
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
}

.checkbox-icon.completed {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.checkbox-icon.pending {
    background: #ffc107;
    border-color: #ffc107;
    color: white;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-main {
    display: grid;
    grid-template-columns: 1fr auto 150px 150px;
    gap: 20px;
    align-items: center;
}

.list-item-title-col {
    min-width: 0;
}

.list-item-title-col strong {
    display: block;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 4px;
}

.list-item-desc {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge-list {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge-list.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge-list.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge-list.not-started {
    background: #f8d7da;
    color: #721c24;
}

.list-item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.list-item-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.btn-list-action {
    padding: 6px 10px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-list-action:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .list-item-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .list-item-meta,
    .list-item-actions {
        justify-content: flex-start;
    }
}
