:root {
    --brand-1: #4f46e5;
    --brand-2: #06b6d4;
    --ink: #1e293b;
    --muted: #64748b;
    --page-bg: #f3f4f8;
}

body {
    background-color: var(--page-bg);
    color: var(--ink);
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Navbar / Brand ---- */
.lsh-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

/* 네비게이션 바 전체를 직접 flex로 제어한다 (브랜드/햄버거/모바일검색/접힘메뉴 4개를 순서대로 배치). */
.lsh-navbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.lsh-brand {
    order: 1;
    margin-right: auto;
}

.lsh-toggler {
    order: 2;
}

/* 모바일 전용 검색창: 로고 줄 바로 아래, 항상 보이는 자기 줄 하나를 차지한다 */
.lsh-search-mobile {
    order: 3;
    flex: 0 0 100%;
}

/* 모바일(< lg): 햄버거로 접힌 메뉴가 세로로 쌓인다.
   display는 부트스트랩의 .collapse.show{display:block} 과 명시도를 맞춰서 덮어써야 한다. */
.lsh-collapse {
    order: 4;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.lsh-collapse.show {
    display: flex;
}

.lsh-nav-links {
    flex-direction: column;
    gap: 0.15rem;
}

.lsh-nav-links .nav-link {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-weight: 600;
    color: var(--ink);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lsh-nav-links .nav-link:hover,
.lsh-nav-links .nav-link:focus {
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--brand-1);
}

.lsh-user-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lsh-toggler {
    border: none;
    padding: 0.3rem 0.5rem;
    box-shadow: none !important;
}

.lsh-badge {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.32);
}

.lsh-badge svg {
    width: 26px;
    height: 26px;
}

.lsh-wordmark {
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 데스크톱(≥ lg): 한 줄 — 로고 / 메뉴 링크 / 검색창(가운데, 늘어남) / 사용자 영역(오른쪽) */
@media (min-width: 992px) {
    .lsh-brand {
        margin-right: 0;
    }

    .lsh-collapse {
        order: 3;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .lsh-nav-links {
        flex-direction: row;
        gap: 0.15rem;
    }

    .lsh-search {
        flex: 1 1 auto;
        max-width: 420px;
        margin: 0 0 0 auto;
    }

    .lsh-user-area {
        flex-wrap: nowrap;
    }

    .lsh-badge {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 11px;
    }

    .lsh-badge svg {
        width: 21px;
        height: 21px;
    }

    .lsh-wordmark {
        font-size: 1.4rem;
    }
}

.lsh-search .form-control {
    border-radius: 999px;
    background-color: #f1f2f6;
    border: 1px solid transparent;
    padding-left: 1rem;
}

.lsh-search .form-control:focus {
    background-color: #fff;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}

.btn-lsh {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-lsh:hover {
    color: #fff;
    filter: brightness(1.06);
}

/* ---- Navbar: 로그인 상태 우측 영역(관리자/사용자 드롭다운) ---- */
.lsh-ghost-btn {
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--ink);
    font-weight: 600;
    background: transparent;
}

.lsh-ghost-btn:hover,
.lsh-ghost-btn:focus {
    background-color: rgba(15, 23, 42, 0.04);
    color: var(--ink);
    border-color: rgba(15, 23, 42, 0.18);
}

.lsh-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: none;
    background: transparent;
    padding: 0.2rem 0.3rem;
}

.lsh-avatar-btn:hover {
    background-color: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
}

.lsh-avatar-btn::after {
    display: none; /* 아바타 옆 기본 화살표 캐럿은 지저분해서 생략 */
}

.lsh-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lsh-avatar-name {
    font-weight: 600;
    color: var(--ink);
}

.lsh-dropdown {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
}

.lsh-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.lsh-dropdown .dropdown-item:hover,
.lsh-dropdown .dropdown-item:focus {
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--brand-1);
}

.lsh-dropdown .dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.lsh-dropdown-header {
    padding: 0.4rem 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---- Weather bar ---- */
.lsh-weather {
    margin-top: 0.85rem;
    padding: 0.55rem 1rem;
    background: #fff;
    border-radius: 999px;
    color: var(--muted);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ---- Content surface ---- */
.lsh-surface {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 12px 28px rgba(15, 23, 42, 0.05);
}

@media (max-width: 576px) {
    .lsh-surface {
        padding: 1.1rem;
        border-radius: 14px;
    }
}

.lsh-surface h3 {
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* ---- Cards / buttons / tables refinement ---- */
.card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
}

.btn {
    border-radius: 10px;
}

.btn.rounded-pill {
    border-radius: 999px !important;
}

.table > :not(caption) > * > * {
    border-color: rgba(15, 23, 42, 0.06);
}

.table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    border-bottom-width: 1px;
}

.table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.035);
}

.alert {
    border-radius: 12px;
    border: none;
}
