/* 기본 설정 */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Pretendard", "Malgun Gothic", sans-serif;
    background: #0b0f1a; /* 진한 블랙/네이비 */
    color: #e5e7eb;
}
a { text-decoration: none; color: inherit; }

.container {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
}

/* 헤더 & 상단 탭 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.header h1 { font-size: 28px; margin: 0; color: #f8fafc; }

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 10px;
}
.tab-item {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.3s;
}
.tab-item:hover, .tab-item.active {
    background: #1e293b;
    color: #38bdf8;
    font-weight: bold;
}

/* 카드 그리드 레이아웃 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.plant-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.plant-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

/* 카드 이미지 (드론/배치도 사진) */
.card-image {
    width: 100%;
    height: 200px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-image { color: #475569; font-size: 14px; }

/* 카드 본문 */
.card-content { padding: 20px; }
.card-content h3 { margin: 0 0 10px; font-size: 18px; color: #f1f5f9; }
.card-content p { margin: 5px 0; font-size: 14px; color: #94a3b8; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}
.s-배치단계 { background: #64748b; color: #fff; }
.s-인허가중 { background: #f59e0b; color: #fff; }
.s-시공진행중 { background: #3b82f6; color: #fff; }
.s-시공완료 { background: #10b981; color: #fff; }

/* 공통 버튼 */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.btn.gray { background: #475569; }

.photo-delete-btn {
    display: block;
    background: #dc2626;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: bold;
}

.photo-delete-btn:hover {
    background: #b91c1c;
}

.step-box {
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px;
}

/* 미진행 (회색) */
.step-0 {
    background: #334155;
    color: #cbd5e1;
}

/* 진행중 (노랑) */
.step-1 {
    background: #f59e0b;
    color: #0f172a;
}

/* 완료 (초록) */
.step-2 {
    background: #10b981;
    color: #0f172a;
}
.step-box {
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.step-box:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.step-0 {
    background: #334155;
    color: #cbd5e1;
}

.step-1 {
    background: #f59e0b;
    color: #0f172a;
}

.step-2 {
    background: #10b981;
    color: #0f172a;
}

.step-0 { background:#334155; color:#cbd5e1; } /* 예정 */
.step-2 { background:#10b981; color:#0f172a; } /* 완료 */