.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header {
    height: 80px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 20px;
    height: 20px;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(14, 9, 17, 0.6);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-subtle);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item:focus {
    background: var(--bg-elevated);
    outline: none;
}

.search-result-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.header-action-btn .icon {
    width: 20px;
    height: 20px;
}

.header-action-btn .icon svg {
    stroke: currentColor;
}

.badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--status-error);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    padding: 0 4px;
}

.badge-count:empty {
    display: none;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-strong);
}

.login-btn-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn-icon .icon {
    width: 14px;
    height: 14px;
}

.login-btn-icon .icon svg {
    stroke: currentColor;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
}

.alert-success {
    background: rgba(152, 193, 118, 0.1);
    border-color: var(--status-success);
    color: var(--status-success);
}

.alert-error {
    background: rgba(244, 111, 114, 0.1);
    border-color: var(--status-error);
    color: var(--status-error);
}

.alert-info {
    background: rgba(252, 173, 125, 0.1);
    border-color: var(--status-info);
    color: var(--status-info);
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 24px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .header {
        height: auto;
        padding: 12px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-content > .logo-wrapper {
        order: 1;
    }

    .header-search {
        order: 2;
        width: 100%;
        max-width: none;
    }

    .header-actions {
        order: 1;
        gap: 8px;
        margin-left: auto;
    }

    .login-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .header-content {
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }

    .logo-wrapper {
        margin-right: 0;
        margin-left: 0;
        align-self: center;
        flex: 0 0 auto;
    }

    .header-search {
        order: 2;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
    }

    .header-actions {
        order: 1;
        width: auto;
        justify-content: flex-end;
        align-self: center;
        flex: 0 0 auto;
    }

    .login-btn span {
        display: none;
    }

    .header-action-btn,
    .login-btn {
        width: 36px;
        height: 36px;
    }

    .login-btn {
        padding: 0;
        justify-content: center;
    }

    .header-action-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    #tawkchat-container {
        bottom: 16px !important;
        right: 16px !important;
    }
}


