﻿/*
 * Base structure
 */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}
/* Move down content because we have a fixed navbar that is 50px tall */
@font-face {
    font-family: 'GongGothicBold';
    src: url('/fonts/GongGothic-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'GongGothicMedium';
    src: url('/fonts/GongGothic-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'GongGothicLight';
    src: url('/fonts/GongGothic-Light.ttf') format('truetype');
}

.gong-bold {
    font-family: 'GongGothicBold', sans-serif;
}

.gong-medium {
    font-family: 'GongGothicMedium', sans-serif;
}

.gong-light {
    font-family: 'GongGothicLight', sans-serif;
}

.gradient-text {
    background: linear-gradient(90deg, #d9bfff, #b299ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body {
    font-family: 'GongGothicMedium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

td button {
    display: block !important;
    margin: 0 auto;
}

/* footer */
footer {
    position: fixed;
    bottom: 0;
    z-index: 2000;
    width: 100%;
    background-color: #f5f5f5;
    padding: 10px 20px 0 20px;
    border-top: solid 1px #eee;
}

/*
 * Sidebar
 */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 48px 0 0; /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

    .sidebar .nav-link.active {
        color: #007bff;
    }

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/*
 * Main content
 */

.main {
    padding: 20px;
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}

    .placeholders h4 {
        margin-bottom: 0;
    }

.placeholder {
    margin-bottom: 20px;
}

    .placeholder img {
        display: inline-block;
        border-radius: 50%;
    }

.modal-dialog {
    margin: 100px auto;
}

.table.table-dual th {
    background-color: #f5f5f5;
}

.col-form-label {
    text-align: right;
}

/* Pagination Bootstrap 3 style */
.pagination {
    height: 36px;
    margin: 18px 0;
}

.pagination ul {
    display: inline-block;
    *display: inline;
    /* IE7 inline-block hack */
    *zoom: 1;
    margin-left: 0;
    margin-bottom: 0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination li {
    display: inline;
}

.pagination a,
.pagination span {
    float: left;
    padding: 0 14px;
    line-height: 34px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-left-width: 0;
}

    .pagination a:hover,
    .pagination .active a,
    .pagination .active span {
        background-color: #f5f5f5;
    }

.pagination .active a {
    color: #999999;
    cursor: default;
}

.pagination .disabled span,
.pagination .disabled a,
.pagination .disabled a:hover {
    color: #999999;
    background-color: transparent;
    cursor: default;
}

.pagination li:first-child a {
    border-left-width: 1px;
    -webkit-border-radius: 3px 0 0 3px;
    -moz-border-radius: 3px 0 0 3px;
    border-radius: 3px 0 0 3px;
}

.pagination li:last-child a {
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
}

.pagination-centered {
    text-align: center;
}

.pagination-right {
    text-align: right;
}

.pager {
    margin-left: 0;
    margin-bottom: 18px;
    list-style: none;
    text-align: center;
    *zoom: 1;
}

    .pager:before,
    .pager:after {
        display: table;
        content: "";
    }

    .pager:after {
        clear: both;
    }

    .pager li {
        display: inline;
    }

    .pager a {
        display: inline-block;
        padding: 5px 14px;
        background-color: #fff;
        border: 1px solid #ddd;
        -webkit-border-radius: 15px;
        -moz-border-radius: 15px;
        border-radius: 15px;
    }

        .pager a:hover {
            text-decoration: none;
            background-color: #f5f5f5;
        }

    .pager .next a {
        float: right;
    }

    .pager .previous a {
        float: left;
    }

    .pager .disabled a,
    .pager .disabled a:hover {
        color: #999999;
        background-color: #fff;
        cursor: default;
    }

/* Awesome Font */
i.fas {
    display: inline-block;
    width: 18px;
    text-align: center;
}

a.disabled {
    /* Make the disabled links grayish*/
    color: #000;
    /* And disable the pointer events */
    pointer-events: none;
}

.item .common {
    color: #999999;
}

.item .uncommon {
    color: #999999;
}

.item .rare {
    color: #00b3ff;
}

.item .epic {
    color: #fc34f2;
}

.item .unique {
    color: #ffb000;
}

.item .legendary {
    color: #ffb000;
}

input.ph-red::placeholder {
    color: red !important;
}

.mailTarget .ready {
    color: black;
}

.mailTarget .sent {
    color: blue;
}

.mailTarget .invalid {
    color: red;
}

/* tooltip */
.utc {
    cursor: pointer;
}

.bg-info-alpha-5 {
    background-color: rgba(23, 162, 184, 0.5) !important;
}

.responsive-logo {
    width: 50%;
    max-width: 100px; /* 기본 최대 크기 */
    padding: 10px;
}

/* 큰 화면 (데스크탑) */
@media (min-width: 1200px) {
    .responsive-logo {
        max-width: 500px;
    }
}

/* 중간 화면 (태블릿) */
@media (min-width: 768px) and (max-width: 1199px) {
    .responsive-logo {
        max-width: 400px;
    }
}

/* 작은 화면 (모바일) */
@media (max-width: 767px) {
    .responsive-logo {
        width: 100%;
        max-width: 250px;
    }
}


.my-200 {
    margin-top: 200px;
    margin-bottom: 200px;
}

/* 테이블 기본 스타일 */
.custom-table {
    text-align: center;
    vertical-align: middle;
    border-color: #6c757d; /* 테두리 색상 조정 */
}

/* 테이블 헤더 (검은색 배경) */
.custom-table thead th {
    background-color: #1c2127; /* 이미지 속 짙은 색 */
    color: #ffffff;
    font-weight: 500;
    border-bottom: none;
    padding: 12px 0;
    font-size: 0.95rem;
}

/* 테이블 본문 행 */
.custom-table tbody td {
    background-color: #f3f5f7; /* 아주 연한 회색 배경 */
    padding: 5px 0;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    vertical-align: middle;
}

/* 버튼 공통 스타일 */
.btn-custom {
    border-radius: 2px; /* 약간의 둥근 모서리 */
    font-size: 0.9rem;
    padding: 5px 0;
    width: 80px;
    border: 1px solid transparent;
    font-weight: 500;
}

/* 초록색 '받기' 버튼 */
.btn-receive {
    background-color: #4cae32; /* 이미지의 선명한 초록색 */
    color: white;
}

.btn-receive:hover {
    background-color: #439c2d;
    color: white;
}

/* 검은색 '완료' 버튼 */
.btn-completed {
    background-color: #212529; /* 짙은 검은색 */
    color: #ccc;
    cursor: default;
}

.btn-completed:hover {
    background-color: #212529;
    color: #ccc;
}

/* --- 레이어 팝업 (Modal) 스타일 --- */
.modal-overlay {
    display: none; /* 기본 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-box {
    background-color: #fff;
    width: 500px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 2px;
    overflow: hidden;
}

/* 팝업 헤더 */
.popup-header {
    background-color: #fff;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 헤더 배경 장식 (캐릭터 대신 그라데이션 및 이미지 플레이스홀더) */
.popup-header::before, .popup-header::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    background-size: cover;
    opacity: 0.5;
}

.popup-header::before {
    left: 0;
}

.popup-header::after {
    right: 0;
}

.popup-title {
    font-size: 2rem;
    font-weight: 900;
    color: #111;
    letter-spacing: 2px;
    z-index: 1;
}

/* 닫기 버튼 (X) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    color: #888;
}

/* 팝업 내용 */
.popup-body {
    padding: 30px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    color:black;
}

/* 아이템 이미지 박스 (금색 테두리 + 글로우 효과) */
.item-box {
    display: inline-block;
    margin-bottom: 20px;
    border: 2px solid #daa520; /* 금색 테두리 */
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.5); /* 빛나는 효과 */
    padding: 5px;
    background: #eef2f5;
}

.item-box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* 축하 메시지 */
.congrats-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.congrats-text strong {
    font-size: 1.2rem;
    font-weight: 800;
}

/* 메시지 박스 (검은색 배경) */
.message-box {
    background-color: #1c2127;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 25px;
    border-radius: 2px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* 팝업 하단 버튼 */
.btn-popup-action {
    background-color: #1c2127;
    border: 1px solid #daa520;
    color: #daa520;
    font-weight: 700;
    padding: 10px 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-popup-action:hover {
    background-color: #daa520;
    color: #1c2127;
}
