/* Project Detail Modal */
.project-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.project-detail-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

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

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

.modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.detail-item {
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.detail-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Progress Steps */
.progress-steps {
    margin-top: 20px;
}

.progress-overview {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.progress-percentage {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
}

.progress-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: start;
    gap: 16px;
    transition: all 0.3s ease;
}

.step-item.completed {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.step-item.in-progress {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.step-item.pending {
    border-color: var(--border-color);
    opacity: 0.7;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.step-item.completed .step-icon {
    background: var(--success-color);
    color: white;
}

.step-item.in-progress .step-icon {
    background: var(--warning-color);
    color: white;
}

.step-item.pending .step-icon {
    background: var(--border-color);
    color: var(--text-secondary);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.step-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.step-meta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

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

    .progress-percentage {
        font-size: 36px;
    }
}