@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
    margin: 0;
    font-family: '-apple-system-font', 'Malgun Gothic';
    font-size: 10pt;
    background-color: #f8f9fa;
}

body,
div,
span,
input,
textarea,
form {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    color: #343a40;
}

input::placeholder,
textarea::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.swal2-container {
    z-index: 2100 !important;
}

.swal2-icon-content {
    font-family: 'Inter', sans-serif;
}

.swal2-x-mark-line-left,
.swal2-x-mark-line-right {
    top: 2.2em !important;
}

.swal2-x-mark-line-left {
    left: 0.8em !important;
}

.swal2-x-mark-line-right {
    right: 0.8em !important;
}

.swal2-success-line-tip {
    left: .6125em !important;
}

.swal2-success-line-long {
    right: .2em !important;
}

.swal2-confirm {
    background-color: #0d6efd !important;
}

.swal2-question {
    border-color: #66a4ff !important;
}

.swal2-question .swal2-icon-content {
    color: #66a4ff !important;
}

a {
    text-decoration: none;
    color: #343a40;
}

#content h3 {
    margin-top: 50px;
}

.wrap {
    transition: margin-left 0.3s ease;
    background: #f8f9fa;
}

.top {
    background-color: #fff;
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    transition: left 0.3s ease;
}

.content {
    padding: 20px;
    min-height: calc(100vh - 55px);
    width: 100%;
    max-width: 800px;
    margin: 55px auto 0 auto;
}

#content {
    min-height: calc(100vh - 55px - 140px);
}

.sidebar-toggle {
    position: fixed;
    top: 10px;
    left: 14px;
    background: none;
    color: #343a40;
    border: none;
    padding: 5px;
    cursor: pointer;
    z-index: 1100;
    display: block;
    border-radius: 10px;
}

.sidebar-toggle:hover {
    background: #ced4da;
}

.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    padding: 60px 10px 0 10px;
    transform: translateX(-100%);
    border-right: 1px solid #dee2e6;
}

/* Common for all screen sizes */
.sidebar.active {
    transform: translateX(0);
}

.sidebar.active~.wrap {
    margin-left: 250px;
}

.sidebar.active~.wrap .top {
    left: 250px;
}

.sidebar nav {
    overflow-y: auto;
    max-height: 100%;
}

#footer {
    background-color: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.footer {
    display: flex;
    gap: 15px;
    font-size: 9pt;
    max-width: 800px;
    margin: 0 auto;
}

.footer div,
.footer a {
    color: #888;
}

.footer a:hover {
    color: #a6a6a6;
}

.footerLogo,
.footerBizInfo,
.footerCustomer {
    flex: 0 0 auto;
    text-align: left;
}

.footerLogo {
    width: 16%;
    padding: 15px 0;
}

.footerLogo img {
    width: 100%;
    height: auto;
    max-width: 50px;
}

.footerBizInfo {
    width: 54%;
}

.footerCustomer {
    width: 30%;
}

.bizInfo {
    color: #888;
}

#login {
    justify-content: center;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    height: 50px;
    align-items: center;
    padding: 15%;
    opacity: .9;
    text-align: center;
}

#login:hover {
    opacity: .8;
}

#login a {
    display: block;
    width: 100%;
    border-radius: 5px;
    background: #0d6efd;
    color: white;
    padding: 12px;
    transition: background 0.3s;
}

#login a:focus {
    background: #0056b3;
}

#login img {
    width: 100%;
    display: block;
}

.logo {
    padding: 0px;
    transition: margin-left 0.3s ease-in-out;
    margin-top: 2px;
    height: 36px;
    position: absolute;
    top: 6px;
    right: 10px;
}

.logo img {
    height: 100%;
    width: auto;
}

.sidebar_back {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: black;
    opacity: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    list-style: none;
    padding: 10px;
    display: flex;
    cursor: pointer;
    color: #6c757d;
    align-items: center;
}

.sidebar li:hover a,
.sidebar li:hover .li_toggle {
    color: #0d6efd;
}

.sidebar li:hover .arrow {
    background-color: #0d6efd;
}

.sidebar .li_toggle {
    color: #343a40;
    display: flex;
}

.sidebar .li_toggle {
    flex-grow: 1;
}

.writing-section {
    margin-left: 10px;
}

.writing-section li {
    padding: 5px 10px;
    font-size: 9pt;
}

.writing-toggle.toggled .arrow {
    transform: rotate(450deg);
}

.arrow {
    background-color: #202020;
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3e%3cpath d='M3.27989 3.23571L1.53642 4.97917C1.36382 5.15176 1.36383 5.43158 1.53642 5.60417C1.70901 5.77676 1.98882 5.77676 2.16139 5.60417L4.47096 3.29463C4.63371 3.13192 4.63371 2.86809 4.47096 2.70538L2.16139 0.395812C1.98883 0.22325 1.70901 0.22325 1.53642 0.395812C1.36383 0.568437 1.36383 0.84825 1.53642 1.02081L3.27989 2.76429C3.41006 2.89446 3.41006 3.10554 3.27989 3.23571Z'/%3e%3c/svg%3e");
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3e%3cpath d='M3.27989 3.23571L1.53642 4.97917C1.36382 5.15176 1.36383 5.43158 1.53642 5.60417C1.70901 5.77676 1.98882 5.77676 2.16139 5.60417L4.47096 3.29463C4.63371 3.13192 4.63371 2.86809 4.47096 2.70538L2.16139 0.395812C1.98883 0.22325 1.70901 0.22325 1.53642 0.395812C1.36383 0.568437 1.36383 0.84825 1.53642 1.02081L3.27989 2.76429C3.41006 2.89446 3.41006 3.10554 3.27989 3.23571Z'/%3e%3c/svg%3e");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-size: contain;
    display: inline-block;
    width: 8px;
    height: 8px;
    transform: rotate(-90deg);
    transition: transform 0.5s ease-in-out;
}

.subject-list span,
.keywords-list span,
.subtitle-length span,
.content-length-btn {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px 2px;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
}

.subject-list.disabled,
.keywords-list.disabled,
.subtitle-length.disabled,
.input-form.disabled {
    pointer-events: none;
    opacity: 0.8;
}

.subject-list.disabled span:not(.selected),
.keywords-list.disabled span:not(.selected),
.subtitle-length.disabled span:not(.selected),
.input-form.disabled .content-length-btn:not(.selected) {
    opacity: 0.5;
}

.subject-list span:hover,
.keywords-list span:hover,
.subtitle-length span:hover,
.content-length-btn:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.subject-list span.selected,
.keywords-list span.selected,
.subtitle-length span.selected,
.content-length-btn.selected {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    max-width: 200px;
    margin: 0 auto;
    align-items: center;
    cursor: default;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
    width: 100%;
    padding: 5px;
}

.step-indicator .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-indicator .circle {
    width: 30px;
    height: 30px;
    font-weight: bold;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    color: #495057;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3px;
}

.step-indicator .step.active .circle {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    animation: blink 1.5s infinite ease-in-out;
}

.step-indicator .step-description {
    font-size: 9pt;
    color: #777;
}

.step-indicator .step.active .step-name,
.step-indicator .step.active .step-description {
    color: #0d6efd;
    font-weight: bold;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loading-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin: 50px auto 0 auto;
}

.loading-circle.active {
    display: block;
}

.made-title input,
#made-post,
#generated-post {
    width: 100%;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 10px;
    min-height: 40px;
    background: white;
}

.copy,
.copy-button {
    display: block;
    padding: 5px 15px;
    border: 1px solid #0d6efd;
    border-radius: 5px;
    background-color: #fff;
    color: #0d6efd;
    font-size: 9pt;
    cursor: pointer;
    text-align: center;
    margin-left: auto;
    margin-right: 0;
    width: fit-content;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.copy:hover,
.copy-button:hover {
    background-color: #0d6efd;
    color: #fff;
}

div:where(.swal2-container) div:where(.swal2-popup) {
    border-radius: 20px !important;
}

.result-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
}

.image-container {
    position: relative;
    margin-bottom: 20px;
}

button {
    color: #202020;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#persona {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

#persona-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* iOS select box styling */
select {
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSI4IiB2aWV3Qm94PSIwIDAgMTIgOCI+PHBhdGggZmlsbD0iIzg2OGU5NiIgZD0iTTEuNjQ2IDEuNjQ2YS41LjUgMCAwIDEgLjcwOCAwTDYgNS4yOTNsMy42NDYtMy42NDdhLjUuNSAwIDAgMSAuNzA4LjcwOGwtNCA0YS41LjUgMCAwIDEtLjcwOCAwbC00LTRhLjUuNSAwIDAgMSAwLS43MDh6Ii8+PC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    padding-right: 30px;
    border: 1px solid #dee2e6;
    color: #202020;
    padding: 8px;
    font-size: 10pt !important;
    border-radius: 10px;
}

#persona-form select,
#persona-form input[type="number"],
#persona-form input[type="text"],
#persona-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-sizing: border-box;
}

#persona-form textarea {
    min-height: 200px;
}

#persona-form button[type="submit"] {
    background-color: #0d6efd;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

#persona-form button[type="submit"]:hover {
    background-color: #0b5ed7;
}

#persona-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#persona-form .form-row .form-group {
    flex: 1 1 0;
    /* flex-grow, flex-shrink, flex-basis */
    min-width: 80px;
    /* Adjust as needed */
}

/* 페르소나 목록 스타일 */
.persona-list {
    margin-bottom: 30px;
}

.persona-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.persona-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.persona-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.persona-header h3 {
    margin: 0;
    font-size: 16px;
}

.persona-actions {
    display: flex;
    gap: 5px;
}

.persona-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    background: white;
}

.persona-actions button:hover {
    background: #e9ecef;
}

.edit-persona {
    color: #212529;
}

.delete-persona {
    color: #212529;
}

.persona-details p {
    margin: 5px 0;
    font-size: 14px;
}

.edit-persona-container .swal2-html-container {
    margin: 0;
    padding: 10px;
}

.swal2-form {
    text-align: left;
    margin-top: 15px;
}

.swal2-form .form-group {
    margin-bottom: 15px;
}

.swal2-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
}

.swal2-form .swal2-input,
.swal2-form .swal2-textarea {
    width: 100%;
    margin: 5px 0;
    box-sizing: border-box;
}

.swal2-form .swal2-textarea {
    min-height: 100px;
}

#edit-persona-form {
    font-size: 10pt;
}

#edit-persona-form input,
#edit-persona-form select {
    border-radius: 5px;
}

.no-persona {
    text-align: center;
    padding: 50px 0;
}


.swal2-actions button {
    border-radius: 10px;
}

/* 이미지 생성 페이지 스타일 */
.error-message {
    color: #dc3545;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 5px;
    margin-top: 10px;
}

.warning-message {
    color: #856404;
    padding: 10px;
    background-color: #fff3cd;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.info-message {
    color: #0c5460;
    padding: 10px;
    background-color: #d1ecf1;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* 토글 스위치 스타일 */
.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    margin-right: 10px;
    transition: all 0.3s;
}

.toggle-switch:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-checkbox:checked+.toggle-switch {
    background-color: #0d6efd;
}

.toggle-checkbox:checked+.toggle-switch:before {
    transform: translateX(20px);
}

.toggle-description {
    font-size: 9pt;
    color: #6c757d;
    margin-top: 5px;
    margin-bottom: 0;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(720deg);
    }
}

@media screen and (max-width: 799px) {
    .sidebar.active~.wrap {
        margin-left: 0px;
    }

    .footer {
        display: block;
    }

    .footerLogo {
        width: 100%;
        padding: 15px 0;
    }

    .footerBizInfo {
        width: 100%;
    }

    .footerCustomer {
        width: 100%;
    }
}

#persona {
    min-width: 200px;
}

#main-keyword,
#search-keyword,
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-sizing: border-box;
}

#generate-subcategories,
#generate-title,
#generate-content-btn {
    background-color: #0d6efd;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

#generate-subcategories:hover,
#generate-title:hover,
#generate-content-btn:hover {
    background-color: #0b5ed7;
}

#rewrite-form .form-group,
#review-form .form-group {
    margin-bottom: 15px;
}

#rewrite-form label,
#review-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#review-form select,
#review-form input[type="text"],
#review-form input[type="number"],
#review-form textarea,
#rewrite-form select,
#rewrite-form input[type="text"],
#rewrite-form input[type="number"],
#rewrite-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-sizing: border-box;
}

#rewrite-form textarea,
#review-form textarea {
    min-height: 100px;
}

#rewrite-form button,
#review-form button[type="submit"] {
    background-color: #0d6efd;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

#rewrite-form button:hover,
#review-form button[type="submit"]:hover {
    background-color: #0b5ed7;
}

/* 결과 컨테이너 스타일 */
#result-container {
    margin-top: 30px;
    padding: 20px 0;
}

.result-item {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.result-text {
    padding: 10px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 10px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.result-header h3 {
    margin: 0;
}

.copy {
    display: block;
    padding: 5px 15px;
    border: 1px solid #0d6efd;
    border-radius: 5px;
    background-color: #fff;
    color: #0d6efd;
    font-size: 9pt;
    cursor: pointer;
    text-align: center;
    margin: 0;
    transition: all 0.2s ease;
}

.copy:hover {
    background-color: #0d6efd;
    color: #fff;
}


/* 로딩 서클 스타일 */
.loading-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin: 50px auto 0 auto;
}

#loading-container {
    margin-top: 30px;
    text-align: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 새로운 버튼 스타일 */
.reset-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    display: inline-block;
}

.reset-btn:hover {
    background-color: #5a6268;
}

#kakaotalk {
    justify-content: center;
    bottom: 100px;
    left: 0;
    width: 100%;
    display: flex;
    height: 50px;
    align-items: center;
    padding: 15% 15% 10% 15%;
    opacity: .9;
    text-align: center;
}

#kakaotalk a {
    display: block;
    width: 100%;
    border-radius: 5px;
    background: #FEE500;
    color: white;
    padding: 12px;
    transition: background 0.3s;
    color: #202020;
}

#kakaotalk a:hover {
    background: #fff067;
}

/* 멤버십 정보 스타일 */
.sidebar-membership {
    background-color: #f0f7ff;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0 20px 0;
    border: 1px solid #d0e3ff;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.sidebar-membership h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0d6efd;
    font-size: 14px;
    border-bottom: 1px solid #d0e3ff;
    padding-bottom: 8px;
}

.membership-plan {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.membership-badge {
    background-color: #0d6efd;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    margin-right: 8px;
    display: inline-block;
}

.membership-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #495057;
}

.membership-icon {
    margin-right: 8px;
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
}

.membership-icon.calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230d6efd' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
}

.btn-manage,
.btn-subscribe {
    display: block;
    width: 100%;
    padding: 8px 0;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 12px;
}

.btn-manage {
    background-color: white;
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.btn-manage:hover {
    background-color: #f8f9fa;
}

.btn-subscribe {
    background-color: #0d6efd;
    color: white;
    border: none;
}

.btn-subscribe:hover {
    background-color: #0b5ed7;
}

.membership-empty {
    text-align: center;
}

.membership-empty p {
    margin-bottom: 12px;
    color: #6c757d;
    font-size: 12px;
}

/* 포인트 정보 스타일 */
#points-info {
    padding: 15px;
    margin: 10px 15px;
    background-color: #f0f7ff;
    border-radius: 10px;
    border: 1px solid #d0e3ff;
    width: 85%;
}

.points-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.points-label {
    font-weight: bold;
    color: #343a40;
}

.points-value {
    font-weight: bold;
    color: #0d6efd;
    font-size: 1.1em;
}

.charge-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background-color: #0d6efd;
    color: white !important;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.charge-btn:hover {
    background-color: #0b5ed7;
}

.policy-links {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    color: #888;
}

.policy-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    color: #888;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 9pt;
}

.policy-links a:hover {
    color: rgb(112, 112, 112);
}

/* 가이드 페이지 스타일 */
.guide-container {
    max-width: 100%;
    margin: 0 auto;
}

.guide-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.guide-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.guide-section {
    margin-bottom: 50px;
}

.guide-section h2,
.payment-section h2 {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #0d6efd;
}

.payment-section h2 {
    margin-top: 50px;
}

.payment-section h3 {
    margin-top: 20px !important;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2em;
    margin-bottom: 15px;
    color: #0d6efd;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #343a40;
}

/* 결제 정보 페이지 베네핏 카드 스타일 */
.benefit-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.benefit-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: #0d6efd;
    display: inline-block;
}

.beta-notice {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #e8f4ff;
    border-radius: 10px;
    border: 2px solid #0d6efd;
}

.beta-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: #0d6efd;
    display: inline-block;
}

.beta-notice h2 {
    color: #0d6efd;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: #0d6efd;
    display: inline-block;
}

.info-content {
    flex-grow: 1;
}

.info-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-link {
    display: inline-block;
    margin-top: 10px;
    color: #0d6efd;
    text-decoration: none;
    font-weight: bold;
}

.feature-link:hover {
    text-decoration: underline;
}

.sub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.steps-container {
    margin-top: 30px;
}

.step-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.faq-container {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background-color: #f8f9fa;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item.active .faq-question:after {
    content: '-';
}

.faq-answer {
    padding: 15px;
    background-color: white;
    overflow: hidden;
    display: none;
    /* 초기 상태에서 숨김 */
}

.guide-cta {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-top: 50px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0d6efd;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0b5ed7;
}

@media (max-width: 768px) {
    .feature-cards {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.payment-cta {
    margin: 50px 0;
}

/* 레퍼런스 페이지 스타일 */
.reference-container {
    margin-top: 30px;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 10px;
    gap: 20px;
}

.reference-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    grid-row-end: span 30;
    /* 기본 높이, JavaScript로 동적 조정됨 */
}

.reference-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.reference-delete:hover {
    background-color: #ff4d4d;
}

.reference-delete:hover span {
    color: white;
}

.reference-delete span {
    font-size: 18px;
    color: #202020;
    font-weight: bold;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.reference-image {
    width: 100%;
    overflow: hidden;
}

.reference-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.reference-item:hover .reference-image img {
    transform: scale(1.05);
}

.reference-link {
    padding: 15px;
    text-align: center;
}

.reference-link a {
    color: #0d6efd;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reference-link a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.no-reference {
    text-align: center;
    padding: 50px 0;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 768px) {
    .reference-grid {
        grid-template-columns: 1fr;
    }
}

/* 레퍼런스 추가 버튼 스타일 */
.add-reference-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.add-reference-btn:hover {
    background-color: #0b5ed7;
    transform: scale(1.05);
}

/* 레퍼런스 추가 모달 스타일 */
.reference-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.reference-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.reference-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reference-modal-header h3 {
    margin: 0;
}

.reference-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.reference-modal-close:hover {
    color: #343a40;
}

.reference-form-group {
    margin-bottom: 20px;
}

.reference-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.reference-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.image-upload-container {
    border: 2px dashed #dee2e6;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: #0d6efd;
}

.image-upload-container p {
    margin: 0;
    color: #6c757d;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
    display: none;
}

.reference-submit-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.reference-submit-btn:hover {
    background-color: #0b5ed7;
}

.reference-submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 카카오 버튼 스타일을 위한 CSS (예: head.php 또는 공통   
CSS 파일에 추가) */
.swal2-confirm.kakao-confirm-button {
    background-color: #FEE500 !important;
    /* 카카오 노란색 
배경 */
    color: #000000 !important;
    /* 검은색 텍스트 */
    border: 1px solid #FEE500 !important;
    /* 테두리도      
노란색으로 통일 (선택 사항) */
}

.swal2-confirm.kakao-confirm-button:hover {
    background-color: #F0D900 !important;
    /* 호버 시 약간  
어두운 노란색 (선택 사항) */
}

.keyword-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.keyword-input-group:last-child {
    margin-bottom: 0;
}

.keyword-input-group .form-control {
    flex-grow: 1;
}

.delete-keyword-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    flex-shrink: 0;
    font-size: 14px;
    padding: 0;
}

.delete-keyword-btn:hover {
    background-color: #c82333;
}

#add-keyword-btn {
    background-color: #6c757d;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 10pt;
}

#add-keyword-btn:hover {
    background-color: #5a6268;
}

/* 결과 카드 스타일 */
.result-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.result-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #343a40;
}

.result-card p {
    font-size: 0.9em;
    color: #6c757d;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 54px; /* approx 3 lines */
}

/* Custom Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.custom-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 10pt;
    text-align: left;
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.custom-modal-close:hover {
    color: #333;
}

.hidden {
    display: none !important;
}
