@charset "utf-8";
/* Clay.com 스타일 견적 폼 스킨 */

/* ========================================
   기본 리셋 및 폰트
======================================== */
textarea {
    resize: vertical;
}

/* ========================================
   게시판 공통 래퍼
======================================== */
#bo_list, #bo_v, #bo_w {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

/* ========================================
   기존 테이블 스타일 무효화 (새 디자인 적용)
======================================== */
#bo_w table,
#bo_w .tbl_wrap table {
    border: none !important;
}

#bo_w .tbl_frm01 {
    border: none;
}

#bo_w .tbl_frm01 th,
#bo_w .tbl_frm01 td {
    display: none;
    border: none;
    padding: 0;
    background: none;
}

/* ========================================
   입력 필드 기본 스타일
======================================== */
#bo_w .frm_input,
#bo_w input[type="text"],
#bo_w input[type="email"],
#bo_w input[type="tel"],
#bo_w input[type="password"],
#bo_w select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

#bo_w .frm_input:focus,
#bo_w input[type="text"]:focus,
#bo_w input[type="email"]:focus,
#bo_w input[type="tel"]:focus,
#bo_w input[type="password"]:focus,
#bo_w select:focus {
    background: white;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

#bo_w textarea {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}

#bo_w textarea:focus {
    background: white;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* ========================================
   버튼 스타일
======================================== */
.btn_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #6366f1);
    background-size: 200% auto;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.btn_submit:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
}

.btn_submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn_cancel,
#bo_w .btn_cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn_cancel:hover,
#bo_w .btn_cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* ========================================
   목록/읽기 버튼
======================================== */
a.btn_b01,
a.btn_b02 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

a.btn_b01:hover,
a.btn_b02:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

a.btn_admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

a.btn_admin:hover {
    background: #f8fafc;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* ========================================
   테이블 스타일 (목록/읽기)
======================================== */
.tbl_wrap table {
    border-top: 2px solid #6366f1;
}

.tbl_head01 thead th {
    padding: 16px 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.tbl_head01 td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
    word-break: break-all;
}

.tbl_head01 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tbl_head01 a:hover {
    color: #8b5cf6;
}

/* ========================================
   목록 스타일
======================================== */
#bo_list .td_board { width: 100px; text-align: center; }
#bo_list .td_chk { width: 40px; text-align: center; }
#bo_list .td_date { width: 100px; text-align: center; color: #94a3b8; font-size: 13px; }
#bo_list .td_datetime { width: 120px; text-align: center; }
#bo_list .td_name { width: 100px; text-align: center; }
#bo_list .td_num { width: 60px; text-align: center; color: #94a3b8; }

.bo_notice td {
    background: linear-gradient(180deg, #fef3f2 0%, #fce7f3 100%);
}

.bo_notice td a {
    font-weight: 700;
    color: #ec4899;
}

/* ========================================
   페이징
======================================== */
.pg_wrap {
    clear: both;
    margin: 40px 0;
    padding: 20px 0;
    text-align: center;
}

.pg_page, .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pg_page:hover {
    background: #f8fafc;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.pg_current {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    color: white;
    font-weight: 700;
}

/* ========================================
   게시물 읽기
======================================== */
#bo_v_title {
    padding: 20px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px 16px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

#bo_v_info ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    list-style: none;
    margin: 0;
}

#bo_v_info ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

#bo_v_atc {
    padding: 32px 24px 48px;
    background: white;
    border-radius: 0 0 16px 16px;
}

#bo_v_con {
    font-size: 15px;
    line-height: 1.8;
    color: #374151;
}

#bo_v_con a {
    color: #8b5cf6;
    text-decoration: underline;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 이전/다음글 */
.bo_v_nb {
    margin: 24px 0;
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.bo_v_nb li {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.bo_v_nb li:last-child {
    border-bottom: none;
}

.bo_v_nb li > p {
    width: 80px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.bo_v_nb li > a {
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bo_v_nb li > a:hover {
    color: #8b5cf6;
}

/* ========================================
   첨부파일
======================================== */
#bo_v_file {
    margin: 24px 0;
}

#bo_v_file li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}

#bo_v_file li:hover {
    background: #f1f5f9;
}

#bo_v_file a {
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
}

#bo_v_file a:hover {
    color: #8b5cf6;
}

/* ========================================
   댓글
======================================== */
#bo_vc {
    margin: 32px 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

#bo_vc h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

#bo_vc article {
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
}

#bo_vc article:first-of-type {
    border-top: none;
}

#bo_vc header {
    margin-bottom: 12px;
}

#bo_vc .member,
#bo_vc .guest,
#bo_vc .sv_member,
#bo_vc .sv_guest {
    font-weight: 600;
    color: #1e293b;
}

#bo_vc p {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}

/* ========================================
   검색
======================================== */
.search-area {
    float: right;
}

#bo_sch {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

#bo_sch #sfl {
    padding: 10px 14px;
    font-size: 14px;
    color: #374151;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 36px;
}

#bo_sch .frm_input {
    width: 180px;
    padding: 10px 14px;
    font-size: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

#bo_sch .frm_input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

fieldset .btn_submit {
    padding: 10px 20px;
    font-size: 14px;
    min-height: auto;
    border-radius: 10px;
}

/* ========================================
   관리자 버튼
======================================== */
.btn_bo_adm {
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
}

.btn_bo_adm li {
    float: left;
    margin-right: 8px;
}

.btn_bo_adm input {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_bo_adm input:hover {
    background: #f8fafc;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* ========================================
   목록 헤더
======================================== */
.bo_fx {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

#bo_list_total {
    font-size: 14px;
    color: #64748b;
}

#bo_list_total span {
    font-weight: 700;
    color: #8b5cf6;
}

.btn_bo_user {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ========================================
   임시저장
======================================== */
#autosave_wrapper {
    position: relative;
}

#autosave_pop {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 350px;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 100;
}

#autosave_pop ul {
    margin: 0;
    padding: 12px;
    list-style: none;
}

#autosave_pop li {
    padding: 12px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

#autosave_pop li:hover {
    background: #f8fafc;
}

#autosave_pop a {
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
}

#btn_autosave {
    padding: 8px 16px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn_autosave:hover {
    background: #f1f5f9;
    border-color: #8b5cf6;
}

/* ========================================
   반응형
======================================== */
@media screen and (max-width: 768px) {
    #bo_list, #bo_v, #bo_w {
        padding: 16px;
    }
    
    .bo_fx {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #bo_list_total {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .search-area {
        float: none;
        width: 100%;
    }
    
    #bo_sch {
        width: 100%;
        flex-wrap: wrap;
    }
    
    #bo_sch #sfl {
        width: 100%;
        margin-bottom: 8px;
    }
    
    #bo_sch .frm_input {
        flex: 1;
        width: auto;
    }
    
    .btn_bo_user {
        width: 100%;
        justify-content: flex-end;
    }
}

@media screen and (max-width: 600px) {
    .tbl_head01 thead th,
    .td_num,
    .td_name {
        display: none;
    }
    
    .tbl_head01 td {
        padding: 12px 8px;
    }
    
    a.btn_b01,
    a.btn_b02 {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    #bo_v_title {
        padding: 16px;
        font-size: 1.1rem;
    }
    
    #bo_v_info ul {
        padding: 12px 16px;
    }
    
    #bo_v_atc {
        padding: 20px 16px;
    }
    
    .pg_page, .pg_current {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
        margin: 0 2px;
    }
}
