@charset "utf-8";

/* [v1.0.0] WebLease Dev Dashboard Skin Style */

/* --- 목록 (Dashboard List) --- */
.wl-dash-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
}
.wl-dash-item {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  width: calc(33.333% - 14px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}
.wl-dash-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #d1d1d1;
}

/* 상태별 상단 컬러바 */
.wl-dash-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ccc;
}
.wl-dash-item.st-plan::before {
  background: #ffc107;
} /* 기획 */
.wl-dash-item.st-dev::before {
  background: #17a2b8;
} /* 개발 */
.wl-dash-item.st-test::before {
  background: #28a745;
} /* 테스트 */
.wl-dash-item.st-done::before {
  background: #343a40;
} /* 완료 */

.wl-item-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* 상단: 뱃지 + 날짜 */
.wl-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.wl-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  background: #999;
}
.st-plan .wl-badge {
  background: #ffc107;
  color: #333;
}
.st-dev .wl-badge {
  background: #17a2b8;
}
.st-test .wl-badge {
  background: #28a745;
}
.st-done .wl-badge {
  background: #343a40;
}
.wl-date {
  font-size: 12px;
  color: #999;
}

/* 제목 */
.wl-item-tit {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
  color: #333;
}
.wl-item-tit a {
  color: #333;
  text-decoration: none;
}
.wl-item-tit a:hover {
  color: #dc3545;
}

/* 진행률 */
.wl-prog-area {
  margin-top: auto;
  padding-top: 15px;
}
.wl-prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
}
.wl-prog-bg {
  height: 6px;
  background: #f1f1f1;
  border-radius: 3px;
  overflow: hidden;
}
.wl-prog-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #dc3545);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* 관리자 버튼 (목록) */
.wl-admin-act {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: 0.2s;
}
.wl-dash-item:hover .wl-admin-act {
  opacity: 1;
}

/* 반응형 */
@media (max-width: 991px) {
  .wl-dash-item {
    width: calc(50% - 10px);
  }
}
@media (max-width: 576px) {
  .wl-dash-item {
    width: 100%;
  }
}

/* --- 뷰 (Detail View) --- */
.wl-view-wrap {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 20px;
}
.wl-view-head {
  background: #fcfcfc;
  padding: 25px;
  border-bottom: 1px solid #eee;
  text-align: center;
}
.wl-view-subj {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
}
.wl-view-meta {
  font-size: 13px;
  color: #888;
}

/* 워크플로우 스텝 (View) */
.wl-steps {
  display: flex;
  justify-content: center;
  margin: 30px 0 10px;
  position: relative;
  gap: 40px;
}
.wl-step-node {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 80px;
}
.wl-step-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin: 0 auto 8px;
  line-height: 36px;
  color: #ccc;
  font-size: 16px;
  transition: 0.3s;
}
.wl-step-txt {
  font-size: 12px;
  color: #aaa;
  font-weight: 700;
}

/* 활성 상태 */
.wl-step-node.active .wl-step-icon {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff5f5;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}
.wl-step-node.active .wl-step-txt {
  color: #dc3545;
}
.wl-step-node.passed .wl-step-icon {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}
.wl-step-node.passed .wl-step-txt {
  color: #333;
}

/* 연결선 */
.wl-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 2px;
  background: #eee;
  z-index: 1;
}

.wl-view-con {
  padding: 40px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  min-height: 200px;
}
.wl-view-btn {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

/* --- 쓰기 (Write) --- */
.wl-write-wrap {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  background: #fff;
}
.wl-form-group {
  margin-bottom: 20px;
}
.wl-label {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  color: #333;
}
.wl-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.wl-radio-group {
  display: flex;
  gap: 15px;
}
.wl-radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: #f8f9fa;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid #e9ecef;
}
.wl-radio-item input {
  margin-right: 6px;
}
.wl-radio-item.checked {
  background: #fff5f5;
  border-color: #dc3545;
  color: #dc3545;
  font-weight: bold;
}
