/* Base/global styles.
   Non-destructive migration pass: copied from legacy.css.
   legacy.css remains loaded last, so behavior stays stable.
*/

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.top-bar {
    height: var(--topbar-height);
    padding: 0 1.5rem;
    background-color: #131b31;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.footer {
    background-color: #fff;
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 1rem;
    font-size: .9rem;
    color: var(--secondary-color);
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.language-dropdown {
    position: relative;
    z-index: 1000;
}

.language-dropdown-menu {
    z-index: 1001;
}

.category-bar {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    z-index: 50;
}

.live-search-bar {
    position: relative;
}

.admin-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cfe8ff;
    background: #e9f4ff;
    cursor: pointer;
    padding: 0;
}

.admin-btn img {
    width: 18px;
    height: 18px;
}

.admin-btn:hover {
    background: #d9ecff;
}

.admin-btn-danger {
    border-color: #ffd2d2;
    background: #ffecec;
}

.admin-btn-danger:hover {
    background: #ffdede;
}

.admin-btn-form {
    margin: 0;
}

.admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.admin-label {
    font-weight: 600;
}
