header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px 20px 40px;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin: 0 auto;
    padding: 0;
    font-size: 20px;
}

.menu li {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    position: relative;
    display: inline-block;
    line-height: 1;
    transition: color 0.3s ease;
}

.menu a::before {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: #ff9800;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover {
    color: #ff9800;
}

.menu a:hover::before {
    width: 100%;
}

.logo a {
    text-decoration: none;
    font-weight: 600;
    font-size: 30px;
    color: #ff9800;
}

.auth {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth a {
    text-decoration: none;
    font-weight: 600;
    color: black;
    font-size: 20px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.auth a:hover {
    color: #ff9800;
}

.auth a + a {
    position: relative;
    padding-left: 14px;
}

.auth a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background-color: #cfcfcf;
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 16px 20px;
}

.footer-content p {
    margin: 2px 0;
    font-size: 14px;
}

.dashboard {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.dashboard-shell {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.dashboard-sidebar {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-content {
    min-width: 0;
}

:root {
    --site-search-shell-height: 64px;
}

.site-search-shell {
    position: relative;
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 40px;
    background: #f2f2f2;
    border-bottom: 1px solid #e7e7e7;
    min-height: 40px;
    transition: opacity 0.2s ease;
    opacity: 1;
}

body.site-search-active .site-search-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.site-search-shell.is-hidden {
    opacity: 1;
}

header.site-header-managed {
    position: relative;
    top: auto;
    z-index: 100;
    box-shadow: none;
}

.site-floating-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background-color: white;
    border-bottom: 1px solid #eee;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition: none;
}

.site-floating-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.site-floating-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px 20px 40px;
    background-color: transparent;
    border-bottom: none;
}

.site-search-inner {
    background: #ffffff;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: min(1000px, 100%);
    max-height: 35px;
}

#globalPublicationSearch {
    border: none;
    background: transparent;
    font-size: 20px;
    color: #1f2937;
    padding: 10px 14px;
    outline: none;
    margin: 0;
}

#globalPublicationSearch::placeholder {
    color: #6b7280;
}

#globalPublicationSearch::-webkit-search-cancel-button,
#globalPublicationSearch::-webkit-search-decoration,
#globalPublicationSearch::-webkit-search-results-button,
#globalPublicationSearch::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

#globalPublicationSearch::-ms-clear,
#globalPublicationSearch::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

#globalSearchClear {
    width: 30px;
    height: 30px;
    margin-right: 6px;
    margin-bottom: 8px;
    border: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

#globalSearchClear:hover {
    background: #e5e7eb;
}

.site-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.97);
    z-index: 900;
    overflow: auto;
}

.site-search-result-wrap {
    width: min(720px, calc(100vw - 48px));
    margin: 148px auto 48px;
}

body.site-search-active .site-search-result-wrap {
    margin: calc(var(--site-search-shell-height) + 25px) auto 48px;
}

.site-search-results {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.site-search-item {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #edf2f7;
    padding: 14px 16px;
}

.site-search-item:last-child {
    border-bottom: none;
}

.site-search-item strong {
    display: block;
    color: #1f2937;
    font-size: 17px;
    margin-bottom: 5px;
    line-height: 1.35;
}

.site-search-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.site-search-item:hover {
    background: #f8fbff;
}

.site-search-message {
    margin: 0;
    padding: 16px;
    color: #64748b;
    font-size: 14px;
}

body.site-search-active {
    overflow: hidden;
}

.image-loading-shell {
    position: relative;
    overflow: hidden;
    background: #eef2f7;
}

.image-loading-shell.is-image-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    border: 3px solid #d6dde7;
    border-top-color: #f49d10;
    border-radius: 50%;
    animation: image-shell-spin 0.8s linear infinite;
    z-index: 1;
}

.image-loading-shell.is-image-empty,
.image-loading-shell.is-image-error {
    background: repeating-linear-gradient(
        -45deg,
        #edf1f6,
        #edf1f6 12px,
        #e6ebf1 12px,
        #e6ebf1 24px
    );
}

@keyframes image-shell-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .site-search-shell {
        padding: 10px 12px;
        min-height: 56px;
    }

    .site-search-result-wrap {
        width: calc(100vw - 24px);
        margin-top: 112px;
    }

    body.site-search-active .site-search-result-wrap {
        margin-top: calc(56px + 8px);
    }

    #globalPublicationSearch {
        font-size: 16px;
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 14px;
    }

    .dashboard-sidebar {
        padding: 14px;
    }

    .sidebar-menu {
        gap: 8px;
    }
}
