.top-nav {
    display: flex;
    flex-direction: column;
}

.top-nav-row {
    padding: 0.25rem 0;
    background-color: #e9ecef;
}

.has-fixed-nav .top-nav-row {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.has-fixed-nav .top-nav-title {
    margin-top: 52px;
}

.top-nav-row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-nav-btn {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-nav-back-button {
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #6c757d;
    border-radius: 0.375rem;
}

.top-nav-home-button {
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #6c757d;
    border-radius: 0.375rem;
    text-decoration: none;
}

.top-nav-translation-button {
    min-width: 90px;
    max-width: 90px;
    flex: 0 0 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #6c757d;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.top-nav-search-button {
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #6c757d;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.top-nav-notification-button {
    position: relative;
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
}

.top-nav-notification-button:disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.top-nav-notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #dc3545;
    border-radius: 10px;
}

.top-nav-account {
    position: relative;
    display: flex;
    align-items: center;
}

.top-nav-account-button {
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
}

.top-nav-account-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 140px;
    padding: 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid #d6d8db;
    background: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    z-index: 1040;
}

.top-nav-account-item {
    display: block;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border-radius: 0.4rem;
    color: #212529;
    text-decoration: none;
    font-size: 0.95rem;
}

.top-nav-account-item:focus {
    background: #f1f3f5;
    color: #212529;
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .top-nav-account-item:hover {
        background: #f1f3f5;
        color: #212529;
        outline: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .top-nav .btn:hover,
    .top-nav-account-item:hover {
        background-color: transparent;
        color: inherit;
    }
}

.top-nav-account-divider {
    height: 1px;
    margin: 0.25rem 0.15rem;
    background: #e2e6ea;
}

.top-nav-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 1.25rem;
    color: var(--bs-secondary-color, #6c757d); /* Bootstrap 5 기준 */
    padding: 0.75rem;
}

.top-nav-title .page-title {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: inherit;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}

@media (min-width: 992px) {
    .top-nav-title {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
