@charset "utf-8";

body { background: #0e1628 !important; }

/* ============================================
   List 페이지 블랙 디자인 스타일
   ============================================ */

#List {
    margin:50px !important;
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
    margin: 20px auto;
}

/* 카테고리 */
#List #bo_cate {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

#List #bo_cate h2 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
}

#List #bo_cate_ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#List #bo_cate_ul li {
    margin: 0;
}

#List #bo_cate_ul a {
    display: inline-block;
    padding: 6px 12px;
    background: #0a0a0a;
    color: #b0b0b0;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

#List #bo_cate_ul a:hover,
#List #bo_cate_ul a.on {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
}

/* 상단 버튼 영역 */
#List #bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
}

#List #bo_list_total {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #b0b0b0;
}

#List #bo_list_total .total-count {
    font-weight: 600;
    color: #ffffff;
}

#List #bo_list_total .page-info {
    color: #b0b0b0;
}

#List .btn_bo_user {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#List .btn_bo_user li {
    margin: 0;
}

#List .btn_bo_user .btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 6px 12px;
    background: #0a0a0a;
    color: #b0b0b0;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

#List .btn_bo_user .btn:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
}

/* 옵션 메뉴 */
#List .more_opt {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 150px;
    z-index: 99999;
    display: none;
}

#List .btn_more_opt {
    position: relative;
    z-index: 99998;
}

#List .more_opt li {
    margin: 0;
}

#List .more_opt button {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: #e0e0e0;
    border: none;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#List .more_opt button:hover {
    background: #1f1f1f;
    color: #3a8afd;
}

/* 테이블 */
#List .tbl_wrap {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

#List .list-table {
    width: 100%;
    border-collapse: collapse;
    color: #e0e0e0;
    background: transparent;
    table-layout: auto;
}

#List .list-table caption {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
}

#List .list-table thead {
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 10;
}

#List .list-table th {
    height: 60px;
    padding: 0 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    border-top: 1px solid #005500;
    border-bottom: 1px solid #00ff00;
    white-space: nowrap;
    background: #0a0a0a;
    vertical-align: middle;
}

#List .list-table th.all_chk,
#List .list-table td.td_chk {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 15px 5px;
}

#List .list-table th.col-criteria,
#List .list-table th.col-kind,
#List .list-table th.col-code,
#List .list-table th.col-daemon {
    color: #b0b0b0;
}

#List .list-table th a {
    color: #3a8afd;
    text-decoration: none;
    transition: color 0.3s ease;
}

#List .list-table th a:hover {
    color: #5a9aff;
}

#List .list-table tbody tr {
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.2s ease;
    cursor: pointer;
    background: #0f0f0f;
}

#List .list-table tbody tr:hover {
    background: #1a1a1a;
}

#List .list-table tbody tr.bo_notice {
    background: #0a0a0a;
    border-left: 2px solid #2a2a2a;
}

#List .list-table tbody tr.bo_notice:hover {
    background: #151515;
}

#List .list-table tbody tr.even {
    background: #0a0a0a;
}

#List .list-table tbody tr.even:hover {
    background: #151515;
}

#List .list-table td {
    height: 65px;
    padding: 0 10px;
    text-align: center;
    font-size: 13px;
    color: #b0b0b0;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#List .list-table .td_num2 {
    font-weight: 600;
    color: #919191;
    width: 50px;
    min-width: 50px;
}


#List .list-table .td_subject {
    text-align: left;
    padding: 0 0 0 15px;
    word-break: break-word;
    overflow: hidden;
    width: 50px;
    min-width: 50px;
}

#List .list-table .bo_tit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#List .list-table .subject-link {
    color: #00ea00;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
    padding-left:20px;
}

#List .list-table .subject-link:hover {
    color: #a5d6a7;
}

#List .list-table .bo_cate_link {
    display: inline-block;
    padding: 4px 10px;
    background: #0a0a0a;
    color: #3a8afd;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 8px;
}

#List .list-table .new_icon {
    display: inline-block;
    padding: 2px 6px;
    background: #f44336;
    color: #ffffff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 5px;
}

#List .list-table .cnt_cmt {
    color: #b0b0b0;
    font-weight: 500;
    margin-left: 5px;
}

#List .list-table .td_criteria {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    padding: 0 10px;
    width: 50px;
    min-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b0b0b0;
}

#List .list-table .td_kind {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    padding: 0 10px;
    width: 50px;
    min-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b0b0b0;
}

#List .list-table .td_code {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    padding: 0 10px;
    width: 50px;
    min-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b0b0b0;
    font-family: 'Courier New', monospace;
}

#List .list-table .td_daemon {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    padding: 0 10px;
    width: 50px;
    min-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b0b0b0;
    font-family: 'Courier New', monospace;
}

#List .list-table .d_button_1 {
    background:#00b300; color: #b0b0b0;
    border:1px solid #00c800;
    border-radius: 4px;
    color:#fff;
    padding:5px 20px;
}

#List .list-table .d_button_2 {
    background:#fd5757;
    color: #b0b0b0;
    border:1px solid #ea6a6a;
    border-radius: 4px;
    color:#fff;
    padding:5px 20px;
}

/* 매수/매도 옵션 컬럼 */
#List .list-table .td_buy_1,
#List .list-table .td_buy_2,
#List .list-table .td_buy_3,
#List .list-table .td_buy_4,
#List .list-table .td_buy_5,
#List .list-table .td_sell_1,
#List .list-table .td_sell_2,
#List .list-table .td_sell_3,
#List .list-table .td_sell_4,
#List .list-table .td_sell_5 {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    padding: 0 8px;
    width: 50px;
    min-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b0b0b0;
}

#List .list-table th.col-buy-1,
#List .list-table th.col-buy-2,
#List .list-table th.col-buy-3,
#List .list-table th.col-buy-4,
#List .list-table th.col-buy-5,
#List .list-table th.col-sell-1,
#List .list-table th.col-sell-2,
#List .list-table th.col-sell-3,
#List .list-table th.col-sell-4,
#List .list-table th.col-sell-5 {
    width: 50px;
    min-width: 50px;
    font-weight: 500;
}

#List .list-table .td_buy_1,
#List .list-table .td_buy_2,
#List .list-table .td_buy_3,
#List .list-table .td_buy_4,
#List .list-table .td_buy_5 {
    color:#aaaaff;
}

#List .list-table .td_sell_1,
#List .list-table .td_sell_2,
#List .list-table .td_sell_3,
#List .list-table .td_sell_4,
#List .list-table .td_sell_5 {
    color:#ea6a6a;
}

#List .list-table th.col-setting-count,
#List .list-table th.col-option-count {
    width: 50px;
    min-width: 50px;
    font-weight: 500;
}

#List .list-table .td_setting_count,
#List .list-table .td_option_count {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    padding: 0 10px;
    width: 50px;
    min-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b0b0b0;
}

#List .list-table .td_num {
    color: #919191;
    font-weight: 500;
}

#List .list-table .empty_table {
    padding: 50px;
    text-align: center;
    color: #919191;
    font-size: 16px;
}

/* 체크박스 */
#List .chk_box input[type="checkbox"] {
    display: none;
}

#List .chk_box label {
    display: inline-block;
    cursor: pointer;
}

#List .chk_box label span {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

#List .chk_box input[type="checkbox"]:checked + label span {
    background: linear-gradient(135deg, #3a8afd 0%, #2a7aed 100%);
    border-color: #4a9afd;
}

#List .chk_box input[type="checkbox"]:checked + label span:after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

/* 페이지네이션 */
#List .list-pagination {
    margin: 20px 0;
    text-align: center;
}

#List .list-pagination a,
#List .list-pagination strong {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    background: #0a0a0a;
    color: #b0b0b0;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

#List .list-pagination a:hover {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
}

#List .list-pagination strong {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
}

/* 하단 버튼 */
#List .bo_fx {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

/* 검색 */
#List .bo_sch_wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
}

#List .bo_sch {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    min-width: 400px;
    position: relative;
    z-index: 10001;
}

#List .bo_sch h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
}

#List .bo_sch select,
#List .bo_sch input[type="text"] {
    width: 100%;
    padding: 10px;
    background: #0a0a0a;
    color: #e0e0e0;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 12px;
}

#List .bo_sch select:focus,
#List .bo_sch input[type="text"]:focus {
    outline: none;
    border-color: #2a2a2a;
}

#List .sch_bar {
    display: flex;
    gap: 8px;
}

#List .sch_input {
    flex: 1;
}

#List .sch_btn {
    padding: 10px 20px;
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#List .sch_btn:hover {
    background: #2a2a2a;
}

#List .bo_sch_cls {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    background: transparent;
    color: #919191;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#List .bo_sch_cls:hover {
    color: #ffffff;
    border-color: #3a8afd;
    background: #1a1a1a;
}

#List .bo_sch_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
}

/* 동적 효과 */
#List .fade-in {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#List .fade-in-item {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 리스트 행 클릭 효과 */
#List .list-item {
    position: relative;
    overflow: hidden;
}

#List .list-item:active {
    transform: scale(0.99);
    transition: transform 0.1s ease;
}

/* 리플 효과 */
#List .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(58, 138, 253, 0.6);
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    animation: rippleList 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes rippleList {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(30);
        opacity: 0;
    }
}

/* 카테고리 애니메이션 */
#List #bo_cate_ul a {
    position: relative;
    overflow: hidden;
}

/* 테이블 헤더 */
#List .list-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 페이지네이션 애니메이션 */

/* 검색창 애니메이션 */
#List .bo_sch_wrap {
    animation: searchFadeIn 0.3s ease;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 스켈레톤 로딩 효과 */
#List .list-item.loading {
    background: linear-gradient(90deg, #0a0a0a 25%, #151515 50%, #0a0a0a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 부드러운 스크롤 */
#List {
    scroll-behavior: smooth;
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    #List {
        padding: 15px;
    }
    
    #List #bo_btn_top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #List .list-table {
        font-size: 11px;
    }
    
    #List .list-table th,
    #List .list-table td {
        padding: 10px 6px;
    }
    
    #List .list-table .td_criteria,
    #List .list-table .td_kind,
    #List .list-table .td_code,
    #List .list-table .td_daemon {
        font-size: 11px;
    }
    
    #List .list-table .td_code,
    #List .list-table .td_daemon {
        word-break: break-all;
        white-space: normal;
    }
    
    #List .bo_sch {
        min-width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #List .list-table {
        font-size: 10px;
    }
    
    #List .list-table th,
    #List .list-table td {
        padding: 8px 4px;
    }
    
    #List .list-table .td_subject {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
