/* 템플릿 버튼 */
.custom-outline-btn,
.custom-primary-btn {
    height: 48px;
    padding: 0 20px;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.custom-outline-btn {
    border: 2px solid #f58020;
    color: #f58020;
    background-color: transparent;
}

.custom-outline-btn:hover {
    background-color: #f58020;
    color: #fff;
}

.custom-primary-btn {
    border: 2px solid #f58020;
    background-color: #f58020;
    color: #fff;
}

.custom-primary-btn:hover {
    background-color: #fff;
    color: #f58020;
}

/* table */
table td,
table th {
    color: #444 !important;
    font-weight: 500 !important;
}

table thead {
    background-color: #f58020 !important;
}

table thead th {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.2rem !important;
}

.table-large-text {
    font-size: 1.4rem;
}

/* image 미리보기 */
#fileList {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    max-width: 100%;
}

/* image x 버튼 */
.image-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ccc;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

/* image preview - filelist */
.divider {
    border: none;
    border-top: 1px solid #bbb;
    margin: 32px auto 16px auto;
}

.file-list-wrapper {
    font-size: 1rem;
}

.file-list-wrapper .file-item {
    margin: 10px 0;
}

.file-label {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 10px; !important;
    margin-top: 30px; !important;
    color: #222;
}

.file-item {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.file-item span {
    color: #444;
}

.file-remove-btn {
    margin-left: 12px;
    font-size: 0.95rem;
    padding: 4px 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background-color: #fafafa;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-remove-btn:hover {
    background-color: #e0e0e0;
    border-color: #999;
    color: #111;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-preview-wrapper:empty,
.file-list-wrapper:empty {
    margin-bottom: 8px !important;
    padding: 0 !important;
    height: 0 !important;
    display: none;
}

.image-preview-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    margin-top: 14px;
}

.image-preview-wrapper .file-item {
    display: inline-block;
    margin-right: 10px;
    position: relative;
}

.image-preview-wrapper img {
    max-width: 200px;
    border-radius: 8px;
    vertical-align: top;
}

/* image 스크롤 */
.preview-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    display: block;
    max-width: 100%;
}

.preview-scroll-container .d-inline-block {
    display: inline-block;
}

/* 이미지 모달 */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    padding: 1rem;
}

#imageModal .modal-top-bar {
    width: 100%;
    max-width: 90%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1.5rem;
}

#imageModal .modal-top-bar a,
#imageModal .modal-top-bar span {
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
}

.custom-comment-textarea {
    height: 80px !important;
    resize: vertical;
}

/* question detail 글자 크기 */
.question-detail {
    font-size: 1.7rem;
    line-height: 1.6;
}

.question-detail h4 {
    font-size: 2.4rem;
}

.question-detail h5 {
    font-size: 1.9rem;
    font-weight: bold;
}

.question-detail .comment-title {
    font-size: 1.2rem;
}

.question-detail .comment-meta {
    font-size: 1.1rem;
}

.question-detail .comment-text {
    font-size: 1.3rem;
    color: #666;
}

.info-meta-text {
    font-size: 1.05rem;
}

/* dropdown */
.dropdown-icon {
    cursor: pointer;
    font-size: 1.8rem;
    padding: 0.4rem;
    color: #555;
    transition: color 0.2s ease;
}

.dropdown-icon:hover {
    color: #000;
}

.comment-body {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 0;
    right: 0;
}

.custom_dropdown{
    position: relative; /* ✅ 기본값으로 돌아가 */
    display: flex; /* ✅ 드롭다운 버튼도 자연스럽게 inline-flex로 */
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 2.2rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 7rem;
    padding: 0.25rem 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.dropdown.show .dropdown-menu,
.custom_dropdown.show .dropdown-menu{
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a,
.dropdown-menu button {
    all: unset;
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #212529;
    cursor: pointer;
    transition: background-color 0.2s ease;
    line-height: 1.5;
    box-sizing: border-box;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* input, textarea 글자 크기 */
input[type="text"] {
    font-size: 1.2rem;
}

textarea {
    white-space: pre-line;
    line-height: 1.5;
    padding: 10px;
    font-size: 1.2rem !important;
}

.custom-textarea-placeholder::placeholder {
    font-size: 1.2rem;
}

/* 엔터 반영 */
.preserve-line {
    white-space: pre-line;
}

/* navigation bar */
.rd-navbar .navbar-navigation-root-link {
    font-size: 1.2rem;
}

.navbar-navigation-dropdown .navbar-navigation-dropdown-link {
    font-size: 1.2rem;
}

.navbar-navigation-dropdown-link {
    font-size: 1.25rem;  /* 🔶 글자 크기 키우기 */
    color: #333;
    display: block;
    transition: background-color 0.2s;
}

.navbar-navigation-dropdown-link:hover {
    color: #ff7a00;
}

.navbar-navigation-root-item.skin-highlight a::before,
.navbar-navigation-root-item.login-highlight a::before,
.navbar-navigation-root-link.icon-link::before{
    display: none !important;
    content: none !important;
}

/* 🔸 분석하기 버튼 기본 상태 */
.navbar-navigation-root-item.skin-highlight a {
    background-color: #ff7a00;
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 10px 16px;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 20px;
}

/* 🔸 hover 시: 배경은 연한 주황, 글자는 진한 주황 */
.navbar-navigation-root-item.skin-highlight a:hover {
    background-color: #e56d00;
    color: white !important;
}


/* 로그인 버튼 스타일 (테두리형) */
.navbar-navigation-root-item.login-highlight a {
    background-color: white;
    color: #ff7a00 !important;
    width: 100%;
    font-weight: bold;
    border: 2px solid #ff7a00;
    border-radius: 12px;
    padding: 8px 16px;
    margin: 4px 8px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}

.navbar-navigation-root-item.login-highlight a:hover {
    background-color: #ff7a00;
    color: white !important;
}

.logout-submenu {
    color: #ff7a00 !important;
    font-weight: bold;
}

.navbar-navigation-root-link.active-nav {
    color: #ff7a00 !important;
    font-weight: bold;
}

.material-symbols-outlined {
    font-size: 40px !important;
    font-weight: lighter !important;
    font-variation-settings:
            'FILL' 0,
            'wght' 100,
            'GRAD' 0,
            'opsz' 40;
    color: #777;
    vertical-align: middle;
}

.rd-navbar-desktop {
    display: flex;
}
@media (max-width: 575.98px) {
    .rd-navbar-mobile {
        display: flex !important;
        flex-direction: column;
        padding-left: 20px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .rd-navbar-mobile {
        display: flex !important;
        flex-direction: column;
        padding-left: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .rd-navbar-mobile {
        display: flex !important;
        flex-direction: column;
        padding-left: 20px;
    }
}
/* ✅ 데스크탑에서는 모바일 sidebar 숨김 */
@media (min-width: 992px) {
    .rd-navbar-mobile {
        display: none !important;
    }

    .rd-navbar-desktop {
        display: flex !important;
    }
}

/* ✅ 모바일에서는 데스크탑 navbar 숨기고, 커스텀 sidebar 보이게 */
@media (max-width: 991.98px) {
    .rd-navbar-mobile {
        display: flex !important;
        flex-direction: column;
        padding-left: 20px;
    }

    .rd-navbar-desktop {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .rd-navbar-desktop {
        display: none !important;
    }
    .rd-navbar-mobile {
        display: flex !important;
        flex-direction: column;
        padding-left: 20px;
    }
}

.my-submenu:hover .my-navbar-dropdown {
    display: block;
}

/* 템플릿이 자동으로 만드는 메뉴 숨기기 */
.rd-navbar-nav-wrap,
.rd-navbar-main-element {
    display: none !important;
}

/* 모바일 사이드바에 버튼 유지 */
.rd-navbar-mobile .mobile-button a {
    display: inline-block;
    width: auto;
    margin: 8px 0;
}

.rd-navbar-mobile {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

/* 사이드바 내 기본 링크는 줄바꿈 및 정렬 */
.rd-navbar-mobile .navbar-navigation-root-item {
    display: block;
    padding: 8px 16px;
}

.navbar-navigation-dropdown-item {
    padding: 10px 20px; /* 더 넉넉한 패딩 */
}

/* 일반 텍스트 링크는 공통 스타일 유지 */
.rd-navbar-mobile .navbar-navigation-root-item:not(.mobile-button) a {
    font-size: 1.2rem;
    color: #333;
}

.rd-navbar-mobile .navbar-navigation-root-item a:hover {
    color: #ff7a00 !important;
}

/* 아이콘 정렬용 */
.rd-navbar-mobile .icon-link .material-symbols-outlined {
    margin-left: 16px;
}

/* 사이드바 하단 고정 및 꽉찬 스타일 */
.sidebar-bottom-button {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    width: auto;
}

.sidebar-bottom-button a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border: 2px solid #ff7a00;
    color: #ff7a00 !important;
    border-radius: 12px;
    font-weight: bold;
    background-color: white;
    transition: background-color 0.3s, color 0.3s;
}

/* Hover 효과 */
.sidebar-bottom-button a:hover {
    background-color: #ff7a00;
    color: white !important;
}

.rd-navbar-mobile .sidebar-bottom-button a.navbar-navigation-root-link:hover {
    color: white !important;
}

.arrow-icon {
    color: #777;
    vertical-align: middle;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 6px; /* 아이콘과 텍스트 사이 간격 */
}

.icon-link .material-symbols-outlined {
    font-size: 18px;
    color: #888;
    vertical-align: middle;
}

.icon-link .arrow-icon {
    font-size: 25px !important;
}

.profile-text {
    font-size: 1.2rem;
    color: #333;
}

/* 🔹 구분선 */
.sidebar-divider {
    border: none;
    border-top: 3px solid #ddd;
    margin: 12px 0;
}

/* 로그인 페이지 */
.login-container {
    max-width: 320px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.login-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.login-buttons {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-login-button {
    height: 50px;              /* 네가 원하는 높이로 */
    width: 100%;
    overflow: hidden;          /* 이미지 넘칠 경우 잘리게 */
    display: flex;
    align-items: center;
}

.social-login-button img {
    height: 100%;              /* 부모 높이에 맞춤 */
    width: auto;
    display: block;
}

.pet-name-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.pet-name-link:hover {
    color: #f58020 !important;/* 원하는 주황색 hex코드 */
}

.custom-outline-btn.selected {
    background-color: #f58020;
    color: white;
}

.custom-outline-btn.selected:hover {
    background-color: #e76f11;
}

/* 체크박스 감추기 */
.pet-checkbox-wrapper input[type="checkbox"] {
    display: none;
}

/* 기본: 모바일용 */
.custom-checkbox-circle {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-radius: 50%;
    background-color: white;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

/* 체크 시 */
.pet-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox-circle {
    background-color: #f58020;
    border-color: #f58020;
}

/* 체크 후 중앙 흰 점 */
.pet-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

/* 체크박스 input 감추기 */
.pet-checkbox-wrapper input[type="checkbox"] {
    display: none;
}

/* 📱 데스크탑용 커짐 */
@media (min-width: 768px) {
    .custom-checkbox-circle {
        width: 52px;
        height: 52px;
        border-width: 5px;
    }

    .pet-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox-circle::after {
        width: 24px;
        height: 24px;
    }
}

.type-button {
    flex: 1; /* 두 버튼 크기 동일하게 */
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #f58020;
    border-radius: 9999px;
    background-color: white;
    color: #f58020;
    transition: all 0.2s ease;
}

.type-button.selected {
    background-color: #f58020;
    color: white;
}

@media (max-width: 768px) {
    iframe.pdf-preview {
        height: 400px !important;
    }
}

body {
    font-family: 'Noto Sans KR', sans-serif !important;
}

/* analyze/wait */
.spinner {
    animation: rotate 1s linear infinite;
    width: 250px;
    height: 250px;
}
.spinner .path {
    stroke: #f58020;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}
@keyframes dash {
    0% { stroke-dasharray: 1,150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90,150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90,150; stroke-dashoffset: -124; }
}

/* notice/list */
tr.important-row {
    background-color: #fffde7 !important;
}

.table-striped tbody > tr.important-row {
    --bs-table-accent-bg: #fffde7 !important;
    background-color: #fffde7 !important;
    color: inherit !important;
}

.important-title {
    font-weight: bold;
}

/* admin/list */
tr.admin-row {
    background-color: #fffde7 !important;
}

.table-striped tbody > tr.admin-row {
    --bs-table-accent-bg: #fffde7 !important;
    background-color: #fffde7 !important;
    color: inherit !important;
}

.active-arrow {
    background-color: #f58020;
    color: white;
    font-weight: 600;
}

/* login */
.social-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 45px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
}

.social-login img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.kakao-login {
    background-color: #FEE500;
    color: #000000;
}

.naver-login {
    background-color: #03C75A;
    color: white;
}

.btn-analyze-centered {
    background-color: #f58020;
    color: white;
    padding: 16px 64px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    display: inline-block;
    margin: 30px auto;
}

/* hover 효과 */
.btn-analyze-centered:hover {
    background-color: #f58020;
    color: white;
    filter: brightness(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

/* 데스크탑 */
@media (min-width: 768px) {
    .btn-analyze-centered {
        padding: 18px 100px;
        font-size: 20px;
    }
}

/* 모바일 */
@media (max-width: 767px) {
    .btn-analyze-centered {
        padding: 14px 48px;
        font-size: 16px;
    }
}

* {
    font-family: 'Jua', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jua', sans-serif;
}






