.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
#site-header {
    background: var(--header-bg);
    color: var(--header-text);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--header-text);
    font-size: 16px;
    font-weight: 700;
}

.site-logo:hover {
    color: var(--header-text);
    text-decoration: none;
}

.header-search {
    flex: 0 1 320px;
    margin: 0 24px;
}

.header-search input {
    width: 100%;
    height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--header-text);
    font-size: 13px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.header-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.header-user a {
    color: var(--header-text);
}

.header-user a:hover {
    color: #ffffff;
    text-decoration: none;
}

.header-notif {
    position: relative;
}

.notif-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
#site-nav {
    background: var(--nav-bg);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 12px;
    color: var(--nav-text);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--nav-active);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--nav-active);
    border-bottom-color: var(--primary);
}

.nav-spacer {
    flex: 1;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--breadcrumb-bg);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb .sep {
    margin: 0 6px;
    color: var(--text-muted);
}

/* Main Layout */
#main {
    padding: 16px 0;
}

.main-layout {
    display: flex;
    gap: 16px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
}

/* Footer */
#site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--text-secondary);
}
