/* Search Bar Component - Full Width Header */
.global-search-container {
    width: 100%;
    background: linear-gradient(135deg, #1a1f32, #151925);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-bar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(20, 25, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.search-bar:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(25, 30, 45, 0.9);
}

.search-bar:focus-within {
    border-color: var(--accent-primary);
    background: rgba(25, 30, 45, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    padding: 4px 0;
}

.search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.search-button {
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 24px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 12px;
    flex-shrink: 0;
}

.search-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.search-button:active {
    transform: translateY(0);
}

.search-button:disabled {
    background: rgba(99, 102, 241, 0.5);
    cursor: not-allowed;
    transform: none;
}

/* Loading state */
.search-bar.loading .search-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Error state */
.search-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 13px;
    display: none;
}

.search-error.show {
    display: block;
}