.progress-status-page {
    min-height: 100vh;
    padding: 80px 0;
}

.progress-status-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}


/* header */

.progress-status-header {
    margin-bottom: 48px;
}

.progress-status-header h1 {
    margin: 0 0 12px;
    font-size: 48px;
    line-height: 1;
    font-weight: 400;
}

.progress-status-header p {
    margin: 0;
    color: #6b7280;
}


/* controls */

.progress-status-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.progress-status-search {
    position: relative;
    flex: 1;
    max-width: 384px;
}

.progress-status-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transform: translateY(-50%);
    pointer-events: none;
}

.progress-status-search input {
    width: 100%;
    padding: 10px 16px 10px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    line-height: 20px;
    box-sizing: border-box;
    outline: none;
}

.progress-status-search input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

.progress-status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.progress-status-filter {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #ffffff;
    color: #4b5563;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    transition: border-color 0.15s ease,
                background-color 0.15s ease,
                color 0.15s ease;
}

.progress-status-filter span {
    margin-left: 6px;
    color: #9ca3af;
}

.progress-status-filter.is-active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.progress-status-filter.is-active span {
    color: rgba(255, 255, 255, 0.6);
}

.progress-status-filter:not(.is-active):hover {
    border-color: #9ca3af;
}


/* stats */

.progress-status-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.progress-status-stat {
    padding: 20px;
    border-radius: 12px;
    background: #f9fafb;
}

.progress-status-stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
}

.progress-status-stat span {
    color: #6b7280;
    font-size: 12px;
    line-height: 16px;
}


/* grid */

.progress-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.progress-status-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.progress-status-card > div {
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    background: #ffffff;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.progress-status-card:hover > div {
    border-color: #e5e7eb;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
}


/* card image */

.progress-status-card-image {
    position: relative;
    height: 176px;
    overflow: hidden;
}

.progress-status-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.progress-status-card:hover .progress-status-card-image img {
    transform: scale(1.05);
}

.progress-status-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5),
        transparent
    );
}

.progress-status-stage,
.progress-status-percent {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    line-height: 16px;
}

.progress-status-stage {
    left: 12px;
    font-weight: 500;
}

.progress-status-stage[data-stage="상담"] {
    background: #e5e7eb;
    color: #374151;
}

.progress-status-stage[data-stage="기본설계"] {
    background: #dbeafe;
    color: #1d4ed8;
}

.progress-status-stage[data-stage="실시설계"] {
    background: #ede9fe;
    color: #6d28d9;
}

.progress-status-stage[data-stage="인허가"] {
    background: #fef3c7;
    color: #b45309;
}

.progress-status-stage[data-stage="시공"] {
    background: #ffedd5;
    color: #c2410c;
}

.progress-status-stage[data-stage="완공"] {
    background: #dcfce7;
    color: #15803d;
}

.progress-status-percent {
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    backdrop-filter: blur(4px);
}


/* card body */

.progress-status-card-body {
    padding: 20px;
}

.progress-status-card-body h2 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.progress-status-card:hover .progress-status-card-body h2 {
    color: #4b5563;
}

.progress-status-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 16px;
}

.progress-status-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-status-card-meta svg {
    width: 12px;
    height: 12px;
}


/* stage strip */

.progress-status-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 16px;
}

.progress-status-step-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.progress-status-step {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.progress-status-step-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #e5e7eb;
}

.progress-status-step-label {
    overflow: visible;
    color: #d1d5db;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

.progress-status-step.is-done .progress-status-step-dot {
    background: #000000;
}

.progress-status-step.is-done .progress-status-step-label {
    color: #6b7280;
}

.progress-status-step.is-active .progress-status-step-dot {
    background: #000000;
    box-shadow:
        0 0 0 2px #ffffff,
        0 0 0 4px #000000;
}

.progress-status-step.is-active .progress-status-step-label {
    color: #000000;
    font-weight: 600;
}

.progress-status-step-line {
    height: 1px;
    flex: 1;
    margin-bottom: 12px;
    background: #e5e7eb;
}

.progress-status-step-line.is-done {
    background: #000000;
}


/* overall */

.progress-status-overall {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-status-overall-label {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 12px;
    line-height: 16px;
}

.progress-status-overall-track {
    height: 6px;
    overflow: hidden;
    border-radius: 9999px;
    background: #f3f4f6;
}

.progress-status-overall-bar {
    display: block;
    height: 100%;
    border-radius: 9999px;
    transition: all 0.15s ease;
}

.progress-status-overall-bar[data-stage="상담"] {
    background: #9ca3af;
}

.progress-status-overall-bar[data-stage="기본설계"] {
    background: #3b82f6;
}

.progress-status-overall-bar[data-stage="실시설계"] {
    background: #8b5cf6;
}

.progress-status-overall-bar[data-stage="인허가"] {
    background: #f59e0b;
}

.progress-status-overall-bar[data-stage="시공"] {
    background: #f97316;
}

.progress-status-overall-bar[data-stage="완공"] {
    background: #22c55e;
}


/* card footer */

.progress-status-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f9fafb;
}

.progress-status-card-footer > span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 16px;
}

.progress-status-card-footer > span svg {
    width: 12px;
    height: 12px;
}

.progress-status-card-arrow {
    width: 16px;
    height: 16px;
    color: #d1d5db;
    transition: color 0.15s ease,
                transform 0.15s ease;
}

.progress-status-card:hover .progress-status-card-arrow {
    color: #4b5563;
    transform: translateX(2px);
}


/* empty */

.progress-status-empty {
    display: none;
    padding: 96px 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}


/* more */

.progress-status-more {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.progress-status-more p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 20px;
}

.progress-status-more-track {
    width: 192px;
    height: 4px;
    overflow: hidden;
    border-radius: 9999px;
    background: #f3f4f6;
}

.progress-status-more-track span {
    display: block;
    height: 100%;
    border-radius: 9999px;
    background: #9ca3af;
    transition: all 0.3s ease;
}

#progressStatusLoadMore {
    margin-top: 8px;
    padding: 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: transparent;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

#progressStatusLoadMore:hover {
    border-color: #9ca3af;
}

#progressStatusScrollTop {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.15s ease,
                border-color 0.15s ease;
}

#progressStatusScrollTop svg {
    width: 16px;
    height: 16px;
}

#progressStatusScrollTop:hover {
    border-color: #9ca3af;
    color: #000000;
}


/* responsive */

@media (max-width: 1023px) {

    .progress-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {

    .progress-status-inner {
        padding: 0 24px;
    }

    .progress-status-header h1 {
        font-size: 36px;
    }

    .progress-status-controls {
        flex-direction: column;
    }

    .progress-status-search {
        max-width: 384px;
    }

    .progress-status-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-status-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 639px) {

    .progress-status-inner {
        padding: 0 16px;
    }

}

.progress-status-header {
    position: relative;
}

.progress-status-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid #111827;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.progress-status-create-button:hover {
    border-color: #374151;
    background: #374151;
}

@media (max-width: 1023px) {
    .progress-status-header {
        padding-right: 0;
    }

    .progress-status-create-button {
        position: static;
        margin-top: 20px;
    }
}
@media (min-width: 1024px) {
    .progress-status-header {
        padding-right: 180px;
    }

    .progress-status-create-button {
        position: absolute;
        top: 0;
        right: 0;
        margin-top: 0;
    }
}
