/* Custom minimal overrides for ALIDOC top navigation */
:root {
    --brand-orange: #ff7a1a;
    --brand-orange-dark: #e66700;
}

/* Override primary palette to brand orange without touching other roles */
:root {
    --primary: var(--brand-orange);
    --primary-dark: var(--brand-orange-dark);
    --primary-light: #ffa364;
    --header-height: 56px;
    /* Remove shadows for flatter, minimal UI */
    --shadow-sm: none;
    --shadow: none;
    --shadow-md: none;
    --shadow-lg: none;
}

/* Topnav layout tweaks */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    height: var(--header-height);
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .75rem;
}

/* Ensure page structure without sidebar */
.dashboard-container { display:flex; min-height:100vh; }
.main-wrapper { flex:1; display:flex; flex-direction:column; min-height:100vh; }
.main-content { flex:1; padding: 1.25rem; }

/* Topnav: structure & look */
.topnav-logo { display:flex; align-items:center; gap:0.5rem; }
.topnav-logo img { width:100px; }
.topnav-logo-text { font-weight:700; color:var(--primary); }

.topnav-menu { display:flex; align-items:center; gap:0.25rem; position:relative; }
.topnav-link { padding:0.5rem 0.75rem; color:var(--gray-700); text-decoration:none; border-radius: var(--radius); display:inline-flex; align-items:center; }
.topnav-link:hover, .topnav-link.active { color:var(--primary); background:var(--gray-100); }

/* Header controls */
.header-left { display:flex; align-items:center; gap:.25rem; }
.header-btn {
    background: transparent;
    border: 0;
    padding: .5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.header-btn:hover { color: var(--primary); }

/* Buttons: use brand orange */
.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}


/* Badge accent alignment with brand */
.badge-primary {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

/* Platform badge readability */
.badge-success { background: #03c75a1a; color: #03c75a; }
.badge-warning { background: #fee50033; color: #6a5700; }
.badge-info { background: #0ea5e91a; color: #0ea5e9; }

/* Anti review highlight */
.anti-row {
    background: rgba(239, 68, 68, 0.06);
    border: 3px solid var(--danger);
}

.table tbody tr.anti-row > td {
    border-top: none;
}

/* rank_report refinements */
.rr-posting a { color: var(--gray-900); }
.rr-posting a:hover { color: var(--primary); text-decoration: underline; }
.stats-value { font-weight: 700; font-size: 1.25rem; }

/* Remove left margin that was for sidebar layout */
.main-wrapper {
    margin-left: 0 !important;
}

/* Bootstrap overrides to maintain our design */
body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Keep our dropdown styles */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: var(--gray-700);
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

/* Fix: Avoid duplicate icon on action menus using RemixIcon ellipsis inside dropdown toggles */
[data-bs-toggle="dropdown"] .ri-more-2-fill::before {
    content: '' !important; /* hide ellipsis dots to keep only Bootstrap caret */
}

/* Center modals robustly across pages */
.modal { display: none; }
.modal.show { display: block; }
.modal-dialog { margin: 0.5rem auto; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }
.modal-backdrop.show { opacity: .4; }

/* Minimal mobile: stack nav items */
@media (max-width: 768px) {
    .topnav-menu { display: none; }
    .topnav-toggle { display:inline-flex; }
    /* Opened state: show dropdown-like full-width menu */
    .topnav-open .topnav-menu { 
        display:flex !important; 
        position: fixed; 
        top: var(--header-height); 
        left:0; right:0; 
        background:#fff; 
        border-bottom:1px solid var(--gray-200); 
        padding:0.5rem 1rem; 
        gap:0.25rem; 
        flex-direction: column; 
        z-index: 1050; 
        margin-left: 0 !important;
    }
}

/* Show by default, hide on desktop */
.topnav-toggle { display:inline-flex; }
@media (min-width: 769px){
    .topnav-toggle { display:none; }
}

/* Desktop open state (kept simple) */
.topnav-open .topnav-menu { display:flex !important; }
/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

.auth-one-bg {
    background-position: center;
    background-size: cover;
    background-image: none;
}

.bg-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    opacity: 0.9;
    background-color: #000000;
    background: #000000;
}

.auth-one-bg .bg-overlay{
    background: #000000;
}

.navbar-menu .navbar-nav .nav-link:hover{
    color: #287cff;
    background: #72a2eb1f;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}


.topbar-user {
    @media (min-width: 768px) {
        background: none;
        border-left: solid 1px #e9ebec;
        border-right: solid 1px #e9ebec;
    }
}

[data-bs-theme=dark] .topbar-user {
    @media (min-width: 768px) {
        background: none;
        border-left: none;
        border-right: none;
    }
}

[data-bs-theme=dark] .navbar-menu {
    border-right: 1px solid #32383e;
    background: #21252b;
}


.mobile-logo {
    display: none;
    @media (max-width: 768px) {
        display: block;
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translate(-50%, 0);
    }

}

.w-25px {
    width: 25px;
}

.w-50px {
    width: 50px;
}

.w-75px {
    width: 75px;
}

.w-100px {
    width: 100px;
}

.w-125px {
    width: 125px;
}

.w-150px {
    width: 150px;
}

.w-175px {
    width: 175px;
}

.w-200px {
    width: 200px;
}

.anti-review{
    background: #ff0000;
    color: #fff;
    font-weight: 900;
}

.anti-review .text-success{
    color: #fff !important;
}
.anti-review .text-warning{
    color: #fff !important;
}

.anti-review .text-primary{
    color: #fff !important;
}


.min-height-100px{
    min-height: 200px;
}

.min-height-200px{
    min-height: 200px;
}

.min-height-300px{
    min-height: 200px;
}

.select2-container--open {
    z-index: 9999999
}

.select2-selection__choice__display{
    color: #000000;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ffffff !important;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    margin-left: 5px;
    margin-top: 5px;
    padding: 0;
    padding-left: 20px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background-color: transparent;
    border: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    color: #999;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    padding: 0 4px;
    position: absolute;
    left: 0;
    top: 0
}

.blog-log-header {
    background: #f6f8fa;
}

.blog-log-sub-info{
    text-align: center;
}

.blog-log-sub-info-border-r{
    border-right: solid #e9ebec 1px ;
}

.position-lg-absolute {
    @media (min-width: 992px) {
        position: absolute !important;
    }
}

.cafe-content img{
    display: none;
}

@keyframes flashEffect {
    0% {
        background-color: transparent; /* 시작 상태에서 배경색 없음 */
    }
    50% {
        background-color: rgba(255, 253, 163, 0.4); /* 중간 상태에서 밝은 노란색 */
    }
    100% {
        background-color: transparent; /* 끝 상태에서 배경색 없음 */
    }
}

.tr-flash {
    animation: flashEffect 1s ease-in-out; /* 1초 동안 반짝임 애니메이션 */
    animation-fill-mode: forwards; /* 애니메이션 끝나면 최종 상태 유지 */
}

.article img {
    max-width: 100%;
    height: auto;
    display: block; /* 블록 요소로 설정하여 중앙 정렬이 적용되도록 함 */
}


.nav-item {
    padding: .35rem .75rem;
}

.nav-link{

    border-radius: 6px;
}

.navbar-menu .navbar-nav .nav-link {
    padding: .35rem .6rem;
}

.menu-title {
    margin-top: 1.25rem;
}

.btn-outline-normal {
    border-color: #ced4da;
    color: #767678;
}

.btn-outline-normal:hover {
    color: #303038;
    border-color: #ced4da;
}

.btn-outline-normal:active {
    color: #303038 !important;
    border-color: #303038 !important;
}

.nav-sm .nav-item{
    padding: 0;
}

.login-page-body {
    background: #2d2c2b;
}

.login-page_wrapper {
    display: flex;
    background: #2d2c2b;
}

.row-login-modal {
    padding-bottom: 197px;
}

.side-menu-list {
    border-left: 1px solid #e9ebec;
}

.review-body{
    display: block;
    width: 100%;
    white-space: nowrap; /* 기본은 한 줄 표시 */
    overflow: hidden;
    text-overflow: ellipsis; /* 길면 말줄임 */
    word-break: keep-all; /* 한국어는 공백 기준 줄바꿈 */
    cursor: pointer;
}

.review-table{
    table-layout: fixed; /* colgroup 폭을 신뢰해서 고정 레이아웃 적용 */
}

/* 긴 내용이 확장되더라도 행 높이가 과도하게 늘어나지 않게 기본 여백 조정 */
.review-table td{ vertical-align: top; }

.review-body.expanded{
    white-space: pre-line; /* 줄바꿈만 유지, 과도한 공백/연속 개행은 접기 */
    word-break: break-word;
    overflow: visible;
}

@media (max-width: 991.98px){
    .review-body{ width: 100%; }
}