:root {
    --pending: #a0aec0;
    --inprogress: #f57c00;
    --completed: #48bb78;
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

.main-content {
    margin-bottom: 10px;
}

.progress-container {
    background: #ffff;
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    width: 340px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.progress-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.progress-container:active {
    transform: translateY(-2px);
}

.title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.progress-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.progress-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    width: 0;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
}

/* Trạng thái */
.status-pending {
    color: var(--pending);
}

.status-pending .status-dot {
    background: var(--pending);
}

.status-pending .progress-fill {
    background: #cbd5e0;
}

.status-inprogress {
    color: var(--inprogress);
}

.status-inprogress .status-dot {
    background: var(--inprogress);
    animation: blink 1.6s infinite;
}

.status-inprogress .progress-fill {
    background: linear-gradient(90deg, #ffb74d, #ff9800);
}

.status-completed {
    color: var(--completed);
}

.status-completed .status-dot {
    background: var(--completed);
}

.status-completed .progress-fill {
    background: linear-gradient(90deg, #68d391, #48bb78);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.note-list {
    list-style: none;
    counter-reset: step-counter;
}

.note-list {
    counter-increment: step-counter;
    margin-bottom: 1.2rem;
    position: relative;
    background: #f1f5f9;
    padding: 1rem 1.2rem 1rem 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.product-title{
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}
.product-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #4299e1;
}

.product-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
    min-width: 180px;
}

.product-icon {
    font-size: 2rem;
    width: 40px;
    text-align: center;
    margin-right: 1.2rem;
    flex-shrink: 0;
}

.product-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
    min-width: 180px;
}

.product-description {
    color: #718096;
    font-size: 0.95rem;
    flex: 1;
    min-width: 300px;
}

.status-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 92px;
    text-align: center;
    flex-shrink: 0;
}

.status-active {
    background: #c6f6d5;
    color: #22543d;
}

.z {
    background: #fed7d7;
    color: #742a2a;
}

.status-coming {
    background: #fef5c9;
    color: #7b5e00;
}

.status-maintenance {
    background: #e6f3ff;
    color: #1e40af;
}

@media (max-width: 992px) {
    .product-content {
        gap: 1rem;
    }

    .product-description {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .product-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
        text-align: left;
    }

    .product-icon {
        margin-bottom: 0.8rem;
        margin-right: 0;
    }

    .product-content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.6rem;
    }

    .product-name,
    .product-description,
    .status-badge {
        width: 100%;
    }

    .product-description {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .product-name {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.88rem;
    }
}