:root {
    --zp-point-color: #0066FF;
    --zp-point-color-10: rgba(0, 102, 255, 0.1);
    --zp-point-color-05: rgba(0, 102, 255, 0.05);
    --zp-gray-50: #F9FAFB;
    --zp-gray-100: #F3F4F6;
    --zp-gray-200: #E5E7EB;
    --zp-gray-300: #D1D5DB;
    --zp-gray-500: #6B7280;
    --zp-gray-800: #1F2937;
}

.zzan-dev-list, .zzan-dev-read, .zzan-dev-write {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .zzan-dev-list, .zzan-dev-read, .zzan-dev-write {
        padding: 15px;
    }
}

.dev-table-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.dev-table {
    width: 100%;
    border-collapse: collapse;
}

.dev-table th, .dev-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f5f5f5;
}

.dev-table th {
    background: #fcfcfc;
    font-weight: 700;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-table tr.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.dev-table tr.clickable:hover {
    background: var(--zp-point-color-05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px);
    position: relative;
    z-index: 10;
}

.zzan-table tr.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.zzan-table tr.clickable:hover {
    background: var(--zp-point-color-05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px);
    position: relative;
    z-index: 10;
}

/* 뱃지 스타일 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.badge.field { background: #eee; color: #666; }
.badge.status-계획 { background: #f3f0ff; color: #7048e8; }
.badge.status-기획 { background: #e7f5ff; color: #1c7ed6; }
.badge.status-디자인 { background: #fff0f6; color: #d6336c; }
.badge.status-개발 { background: #e6fcf5; color: #099268; }
.badge.status-테스트 { background: #fff9db; color: #f08c00; }
.badge.status-배포완료 { background: #ebfbee; color: #2b8a3e; }
.badge.status-출시 { background: #ebfbee; color: #2b8a3e; }
.badge.status-취소 { background: #f1f3f5; color: #495057; }

/* 진행률 바 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 150px;
}

.progress-bar-bg {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--zp-point-color);
    border-radius: 4px;
}

.progress-text {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    min-width: 35px;
}

.project-info .title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.project-info .desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* 상세 페이지 헤더 및 그리드 */
.project-header h1 { font-size: 28px; margin: 10px 0; line-height: 1.3; }
.project-header .description { color: #666; font-size: 16px; margin-bottom: 30px; line-height: 1.5; }

@media screen and (max-width: 768px) {
    .project-header h1 { font-size: 22px; }
    .project-header .description { font-size: 14px; margin-bottom: 20px; }
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 15px;
    }
}

.meta-item { display: flex; flex-direction: column; gap: 8px; }
.meta-item .label { font-size: 13px; color: #999; font-weight: 600; }

.project-content {
    line-height: 1.8;
    font-size: 15px;
    color: #444;
    padding: 20px 0;
}

/* 작성 폼 */
.dev-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .dev-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.dev-info-item { display: flex; flex-direction: column; gap: 8px; }
.dev-info-item.full-width { grid-column: span 2; }

@media screen and (max-width: 768px) {
    .dev-info-item.full-width { grid-column: span 1; }
}
.dev-info-item label { font-weight: 700; font-size: 14px; color: #333; }

.input-basic, .select-basic, .textarea-basic {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* 페이지네이션 */
.zzan-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.zzan-pagination a, .zzan-pagination strong {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
}

.zzan-pagination strong { background: var(--zp-point-color); color: #fff; }

.zzan-pagination a.direction.disabled {
    opacity: 0.5;
    cursor: default;
    background: #f5f5f5;
    color: #ccc;
}

/* 이슈 섹션 */
.issue-section {
    margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

@media screen and (max-width: 768px) {
    .issue-section {
        padding: 20px;
        margin-top: 25px;
    }
}

/* 이슈 섹션 내 헤더 정렬 교정 */
.issue-section .section-header {
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
}

@media screen and (max-width: 768px) {
    .issue-section .section-header {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.issue-section .section-header h2 {
    margin-left: 0;
}

/* 이슈 설명 문구 정렬 교정 (헤더와 동일 선상) */
.issue-section .text-muted {
    margin-left: 0;
}

.issue-item {
    border-bottom: 1px solid #f5f5f5;
    padding: 20px 0;
}

.issue-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.issue-meta .author { font-weight: 700; font-size: 14px; }
.issue-meta .date { font-size: 12px; color: #999; }

/* 이슈 유형 뱃지 */
.badge.type-bug { background: #FFF5F5; color: #E03131; border: 1px solid #FFA8A8; }
.badge.type-request { background: #E7F5FF; color: #1971C2; border: 1px solid #A5D8FF; }
.badge.type-plan { background: #F8F0FC; color: #9C36B5; border: 1px solid #EEBEEF; }
.badge.type-etc { background: #F8F9FA; color: #495057; border: 1px solid #DEE2E6; }

/* 이슈 상태 뱃지 */
.badge.status-registered { background: #EBFBEE; color: #2F9E44; border: 1px solid #B2F2BB; }
.badge.status-working { background: #E7F5FF; color: #1971C2; border: 1px solid #A5D8FF; }
.badge.status-test { background: #FFF9DB; color: #F08C00; border: 1px solid #FFE066; }
.badge.status-done { background: #E6FCF5; color: #099268; border: 1px solid #96F2D7; }
.badge.status-hold { background: #FFF4E6; color: #D9480F; border: 1px solid #FFD8A8; }
.badge.status-rejected { background: #FFF5F5; color: #C92A2A; border: 1px solid #FFA8A8; }
.badge.status-canceled { background: #F1F3F5; color: #495057; border: 1px solid #DEE2E6; }
.badge.status-plan { background: #F3F0FF; color: #6741D9; border: 1px solid #D0BFFF; }

.issue-title { font-weight: 700; font-size: 16px; color: #111; }
.issue-content { margin-top: 10px; color: #555; }

.issue-write-form { margin-top: 40px; border-top: 2px solid #f5f5f5; padding-top: 30px; }
.form-row { margin-bottom: 15px; }

/* 모바일 카드 스타일 및 반응형 제어 */
.dev-card-list {
    display: none;
}

@media screen and (max-width: 768px) {
    .dev-table-wrapper {
        display: none;
    }
    .dev-card-list {
        display: block;
        margin-top: 20px;
    }
    .dev-card {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.02);
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .dev-card:hover {
        border-color: var(--zp-point-color);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        transform: translateY(-3px);
    }
    .dev-card .card-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
    }
    .dev-card .card-body .title {
        display: block;
        font-size: 18px;
        font-weight: 800;
        color: #111;
        margin-bottom: 5px;
    }
    .dev-card .card-body .desc {
        font-size: 14px;
        color: #666;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    .dev-card .progress-section {
        margin-bottom: 20px;
    }
    .dev-card .progress-info {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 8px;
    }
    .dev-card .card-footer {
        display: flex;
        border-top: 1px solid #f5f5f5;
        padding-top: 15px;
        gap: 20px;
    }
    .dev-card .info-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .dev-card .info-item span {
        font-size: 11px;
        color: #999;
        font-weight: 600;
    }
    .dev-card .info-item strong {
        font-size: 13px;
        color: #333;
    }
}

/* 버튼 스타일 😊 */
.btn-zzan {
    display: inline-block !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.2s !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
}
/* 기본 버튼 (클래스 누락 대비) */
.btn-zzan {
    background: #eee !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}
.btn-zzan.primary { 
    background: var(--zp-point-color) !important; 
    color: #fff !important; 
    border: 1px solid var(--zp-point-color) !important;
}
.btn-zzan.primary:hover { opacity: 0.9 !important; background: var(--zp-point-color) !important; }

.btn-zzan.secondary { 
    background: #fff !important; 
    color: #444 !important; 
    border: 1px solid #ccc !important;
}
.btn-zzan.secondary:hover { 
    background: #f8f9fa !important; 
    border-color: #bbb !important;
}

.btn-area { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 공통 테이블 스타일 (이슈 목록용) */
.zzan-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.zzan-table th, .zzan-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.zzan-table th { background: #fcfcfc; color: #888; font-weight: 700; border-top: 2px solid #eee; }

@media screen and (max-width: 768px) {
    .zzan-table th:not(.title), 
    .zzan-table td:not(.title) {
        display: none;
    }
    .zzan-table .title {
        padding: 15px 10px;
    }
    .pc-hide {
        display: flex !important;
    }
    .issue-title-text {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        display: block !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mobile-author-meta {
        display: block !important;
        margin: 8px 0 0 0 !important;
        padding: 0 !important;
        text-align: left !important;
        width: auto !important;
        max-width: max-content !important;
        clear: both !important;
    }
    .mobile-author-meta .author {
        margin: 0 !important;
        padding: 0 !important;
        color: #888 !important;
        font-weight: 600 !important;
        width: auto !important;
    }
    .mobile-author-meta .date {
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
    }
}
.zzan-table .title a { color: #111; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.zzan-table .title a:hover { color: var(--zp-point-color); }
.zzan-table .has-img { color: var(--zp-point-color); display: inline-flex; align-items: center; }
.zzan-table .type, .zzan-table .status, .zzan-table .date { width: 80px; text-align: center; }
.zzan-table .author { width: 100px; text-align: center; }
.zzan-table .title { width: auto; text-align: left; }
.zzan-table .author, .zzan-table .date { color: #888; font-size: 13px; }

/* 폼 그룹 스타일 */
.zzan-form .form-group { margin-bottom: 20px; }
.zzan-form .label { display: block; font-weight: 700; font-size: 14px; color: #333; margin-bottom: 8px; }

/* 세련된 이미지 업로더 UI 😊 */
.twitter-style-uploader {
    margin-top: 10px;
    background: #fff;
}

.upload-dropzone {
    border: 2px dashed var(--zp-gray-300);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--zp-gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.upload-dropzone:hover {
    border-color: var(--zp-point-color);
    background: var(--zp-point-color-05);
}

.upload-dropzone .upload-icon {
    width: 48px;
    height: 48px;
    background: var(--zp-point-color-10);
    color: var(--zp-point-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.upload-dropzone:hover .upload-icon {
    transform: scale(1.1);
}

.upload-dropzone .upload-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--zp-gray-800);
}

.upload-dropzone .upload-hint {
    font-size: 12px;
    color: var(--zp-gray-500);
}

.upload-dropzone * {
    pointer-events: none;
}

.upload-dropzone input[type="file"] {
    display: none;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--zp-gray-200);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .btn-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #ff4d4f;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    font-weight: bold;
    z-index: 10;
}

.preview-item .btn-remove:hover {
    background: #ff4d4f;
    color: #fff;
    transform: scale(1.1);
}

/* 업로드 로딩 표시 */
.preview-item.uploading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zp-gray-50);
}

.preview-item.uploading::after {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid var(--zp-point-color-10);
    border-top: 3px solid var(--zp-point-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.upload-status-bar {
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--zp-point-color-05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--zp-point-color);
    font-weight: 700;
}
